URGENT - Halt dxl execution without having DOORS hanged

All,

I am facing a problem with respect to halting DXL execution.

In my code, I am checking if any particular attribute of a object is null.
If the attribute is null, the DXL throws up this message box which has 2 options (Yes & No)

Yes - Should proceed the DXL execution
No - Should halt the DXL execution

The problem that I face is, when "No" is clicked, the DOORS program gets hanged although Task Manager shows it a running. Below is the sample code...

==============================================================================
// Code

string featureButtons[] = {"Yes", "No"}
int y = messageBox ("Feature: " objectID " does not have Inclusion Rules. Would you like to see the remaining error? ", featureButtons,msgQuery)
if (y==1)
{
halt
}
==============================================================================

Any help is highly appreciated
SystemAdmin - Thu Aug 27 05:40:12 EDT 2009

Re: URGENT - Halt dxl execution without having DOORS hanged
dpechacek - Thu Aug 27 09:41:00 EDT 2009

The halt() command should not(and does not for me) cause DOORS to hang.

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Re: URGENT - Halt dxl execution without having DOORS hanged
dpechacek - Thu Aug 27 09:41:26 EDT 2009

dpechacek - Thu Aug 27 09:41:00 EDT 2009
The halt() command should not(and does not for me) cause DOORS to hang.

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

What version are you on?

AAI Services, Textron
dpechacek@aai.textron.com
David.Pechacek@gmail.com

Re: URGENT - Halt dxl execution without having DOORS hanged
SystemAdmin - Thu Aug 27 09:43:49 EDT 2009

dpechacek - Thu Aug 27 09:41:26 EDT 2009
What version are you on?

AAI Services, Textron
dpechacek@aai.textron.com
David.Pechacek@gmail.com

DOORS 8.3 version....

Re: URGENT - Halt dxl execution without having DOORS hanged
dpechacek - Thu Aug 27 10:03:49 EDT 2009

SystemAdmin - Thu Aug 27 09:43:49 EDT 2009
DOORS 8.3 version....

And just running the halt() command in the DXL Editor window causes DOORS to lock up and hang for you?

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Re: URGENT - Halt dxl execution without having DOORS hanged
SystemAdmin - Thu Aug 27 10:14:14 EDT 2009

dpechacek - Thu Aug 27 10:03:49 EDT 2009
And just running the halt() command in the DXL Editor window causes DOORS to lock up and hang for you?

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

No ... It didnt do anything... no hanging at all ;-)

why is it giving when i use the same logic in the complete program.

Regards,
Raj, S

Re: URGENT - Halt dxl execution without having DOORS hanged
dpechacek - Thu Aug 27 10:23:58 EDT 2009

SystemAdmin - Thu Aug 27 10:14:14 EDT 2009
No ... It didnt do anything... no hanging at all ;-)

why is it giving when i use the same logic in the complete program.

Regards,
Raj, S

I suspect your problem lies elsewhere. That quick script you posted works fine for me. Granted it doesn't do anything after the halt so you can't see anything from it but it doesn't hang DOORS as you originally posted.

You are expecting just the DXL execution to stop and DOORS to stay open right?

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Re: URGENT - Halt dxl execution without having DOORS hanged
SystemAdmin - Fri Aug 28 00:52:32 EDT 2009

dpechacek - Thu Aug 27 10:23:58 EDT 2009
I suspect your problem lies elsewhere. That quick script you posted works fine for me. Granted it doesn't do anything after the halt so you can't see anything from it but it doesn't hang DOORS as you originally posted.

You are expecting just the DXL execution to stop and DOORS to stay open right?

AAI Services, Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Yes, I need to stop exectution if I click No.... Continue dxl execution if i click Yes using message box function....

Kindly help

Re: URGENT - Halt dxl execution without having DOORS hanged
llandale - Fri Aug 28 09:38:40 EDT 2009

Have read the thread through 27-Aug. Your code works for me in v9.2 and other versions, verified with two print statments; one before halt and one at the end.

You don't happen to have some sort of ...

void halt()
{ while(true);
}


... function defined, overriding the standard halt? No, of course not.

Perhaps you have multiple threads running, but frankly I don't know how to do that. Perhaps you need to hide() the dialog box before halting. This isn't running in batch mode, is it? As part of some eval_ code? Perhaps its Karma, for failing to line up Hot Dogs (10 to a pack) with Buns (8 to a pack).

 

 

  • Louie

 

 

Re: URGENT - Halt dxl execution without having DOORS hanged
David_G_Bond - Thu Sep 10 09:25:42 EDT 2009

llandale - Fri Aug 28 09:38:40 EDT 2009

Have read the thread through 27-Aug. Your code works for me in v9.2 and other versions, verified with two print statments; one before halt and one at the end.

You don't happen to have some sort of ...

void halt()
{ while(true);
}


... function defined, overriding the standard halt? No, of course not.

Perhaps you have multiple threads running, but frankly I don't know how to do that. Perhaps you need to hide() the dialog box before halting. This isn't running in batch mode, is it? As part of some eval_ code? Perhaps its Karma, for failing to line up Hot Dogs (10 to a pack) with Buns (8 to a pack).

 

 

  • Louie

 

 

Do you happen to be using a progress bar? If so, that is the problem. You need to add a progressStop (or more than one if you are using more than one progress bar) before you halt.

  • David Bond

Re: URGENT - Halt dxl execution without having DOORS hanged
SystemAdmin - Thu Sep 10 09:48:19 EDT 2009

David_G_Bond - Thu Sep 10 09:25:42 EDT 2009
Do you happen to be using a progress bar? If so, that is the problem. You need to add a progressStop (or more than one if you are using more than one progress bar) before you halt.

  • David Bond

Thanks it worked... Yes, The problem is with the progress bar not stopped.