On Fri, Jan 22, 2010 at 1:40 PM, Rick McGuire <[email protected]> wrote: > On Fri, Jan 22, 2010 at 4:25 PM, Mark Miesfeld <[email protected]> wrote:
>> In thread 2, it is guaranteed that the SendMessage() is invoked before >> any DetachThread() is done. But, it is not guaranteed that it has >> returned from myMethod(). Is that going to cause problems? When, it >> does return, dlgProcContext will not be used again. > > That will not work. DetachThread() can only be called for a thread > context that a) was obtained via AttachThread() and b) there is > nothing active on the thread. If there is an active method call, then > this cannot be used (which is why I don't really recommend trying to > do a detach from the same thread). Okay, thanks Rick. It makes sense the more I've been thinking about it. I found I had problems by putting a sleep in the method call and then closing the Windows dialog. Nothing crashed but the interpreter would not terminate properly. -- 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
