I've recently had some problems with join and detach from the threads library when using threads with WxPerl. From what I can tell, there are two things I've been using that seem to cause problems in some ways. Both occur when the thread is created from an event handler.
My program has a class derived from the Wx::Frame class and that is one of the things that seems to cause a problem. When detaching or joining the thread created from an event handler, I get a "Scalars leaked: 1" message on the console. I'm not completely sure yet, but I think I don't get that message if the frame was creating without creating a derived class. The other issue seems to come from AuiManager. If I have an AuiManager on the frame in that program, the program crashes if I try to detach or join the thread created from an event handler. I am still trying to isolate the problem, but it does appear to be related to WxPerl or wxWidgets. One of the times it crashed, I attached a debugger and found that it had crashed in one of the wxWidgets dll files, so that's why I'm posting it here instead of wherever I should report problems with the threads module. This was on Strawberry Perl 5.10.0.1 using WxPerl 0.83 with wxWidgets 2.8.8 on Windows Vista SP1. I haven't tested it on a non-Windows system yet, but I may do that later. -ShadowFlare
