Mon Jan 17 14:39:21 2011: Request 64575 was acted upon. Transaction: Correspondence added by j...@activestate.com Queue: Win32-Daemon Subject: RE: [rt.cpan.org #64575] Start callback not called with Strawberry Perl 5.10 / 5.12 Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: ha...@strotbek.com Status: open Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=64575 >
On Mon, 17 Jan 2011, Haiko Strotbek via RT wrote: > > Ok, my former patch is useless - my suspicion pointed into the right > direction: I found out that adding 'extern "C"' to the DllMain() > signature fixes the problem and the DllMain() function is called. Thanks for persisting in hunting this down! It indeed looks like DllMain() is treated specially by VC to always use the "C" naming convention, but MinGW doesn't copy that special treatment. > Unfortunately I don't know if VC is able to compile the modified code so > perhaps the makefile script has to adjust it according to the compiler. Adding the additional extern "C" should be a no-op in VC, so the fix should be trivial. I'll make another release after looking at the 64-bit issues as well. Cheers, -Jan