Hi Rick,

Do you have any insight on this problem?

I have a thread context pointer to directly invoke the Rexx method in
a Rexx dialog from the Windows dialog procedure thread.  If the
invoked Rexx method is still active when the user closes the dialog
and the main portion of the program ends, the interpreter never
terminates.  The termination semaphore is never posted, even though
the invoked Rexx method finishes and DetachThread() completes.

It seems to me, when the invoked Rexx method finishes and
DetachThread() is called, then the interpreter should terminate.  I
realize you probably need an example program, but here's some debug
print out from the program.  Maybe this is enough:

C:\hang.on.terminate>userTestDT.rex
Matched WM_NOTIFY going to invoke ONDTPCLOSEUP threadID=2992
In Rexx method ONDTPCLOSEUP.       Thread ID: 2992
Matched WM_COMMAND going to queue OK threadID=2992
In Rexx method OK.                 Thread ID: 496
Leaving Rexx method OK.            Thread ID: 496
delDialog() hDlg=00000000001503A2
Going to DestroyWindow(dlg)
Leaving Rexx main program          Thread ID: 496
Leaving Rexx method ONDTPCLOSEUP.  Thread ID: 2992
Dropped out of message loop, WindowUsrLoopThread threadID=2992
Going to call DetachThread, WindowUsrLoopThread threadID=2992
InterpreterInstance::detachThread() activity=000007FFFF5F6830
isAttached=1 isActive=0 isNested=1
InterpreterInstance::detachThread() allActivites items=2 terminating=1
Leaving WindowUsrLoopThread threadID=2992

At this point, things are hung.  You need to use taskmanager to kill
the rexx process.

If it's not enough, then I need to commit some ooDialog code.  Then I
could either send you the example program, or open a bug and attach
the program.  Whatever is easier for you.

--
Mark Miesfeld

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to