[Oorexx-devel] Native API and thread context question

2012-08-26 Thread Mark Miesfeld
Hi Rick, I realized I might be doing something wrong in ooDialog. Maybe not strictly wrong but using up more memory than I should be. As you probably know, in Windows, you have the window message processing loop. I do an attach thread when the loop is initialized for a dialog and keep the

Re: [Oorexx-devel] Native API and thread context question

2012-08-26 Thread Rick McGuire
Mark, Your analysis is spot on. The argument array and any argument objects you construct are protected by the thread context you request them from until you either detach the context or tell the context to release the reference. This is necessary to prevent any object references you might be