in reply to Net::Server::Fork on Win32: Memory access error on pattern match

You can get rid of the console even with the Cygwin perl. See this. I don't have any idea how to make the systray icon with that perl though.

The regexp problem might be solved by updating to Perl 5.8. The fork() creates threads under Windows (at least the normal port. I know next to nothing about cygwin) and the interpreter threads were not very stable in Perl 5.6.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature

  • Comment on Re: Net::Server::Fork on Win32: Memory access error on pattern match
  • Download Code

Replies are listed 'Best First'.
Re2: Net::Server::Fork on Win32: Memory access error on pattern match
by bbfu (Curate) on Apr 08, 2003 at 19:33 UTC

    Yeah, I kind of figured it was an issue with fork being emulated with threads, but I was thrown off and confused by the fact that it worked fine as long as the connections were all concurrent and the fact that the problem didn't arise if sockets weren't involved.

    As it turns out, you were correct. The issue was some sort of interaction between sockets and the fork emulation that aggrivated the bug in the regexp engine mentioned explicitly in perldoc perlfork (not sure why I didn't think to check there originally). Upgrading to 5.8.1 fixed it completely (both issues, actually).

    Thanks!

    bbfu
    Black flowers blossom
    Fearless on my breath