Tue Jan 11 13:27:22 2011: Request 64575 was acted upon.
Transaction: Correspondence added by ha...@strotbek.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 >


> I find that hard to believe.  Did you sprinkle some OutputDebugString()
> calls into the function and then watch either with the Sysinternals
> Debug viewer, or Visual Studio etc. to see where the control flow
> goes through.  If DllMain() isn't called, then all the other initializations
> in the DLL_PROCESS_ATTACH entry in the switch statement won't happen
> either.

Perhaps I made a mistake:
I #defined DEBUG in all header files and added these lines at Daemon.xs:955
                        {
                            char szBuffer[256];
                            sprintf( szBuffer, "Main thread ID: %lu",
gMainThreadId );
                            ALERT( szBuffer );
                        }

and these at Daemon.xs:918
        {
            char szBuffer[256];
            sprintf( szBuffer, "Started for reason: %lu", fdwReason );
            ALERT( szBuffer );
        }

but none of the messages appear in the debug output file.

Is there something wrong with this?


I also verified that the patch definitely works - and since I tried two
different versions of Strawberry Perl I don't think that it's my fault
in any way.

Reply via email to