in reply to Win32::SerialPort Error: Overlapped-I/O operation is in progress

$mw->messageBox( ... ) surely overwrites $^E. The "overlapped" 'error' is often found in $^E, probably because some common, internal task that perl.exe performs generates that result.

Once you grab $^E's contents sooner, your next problem will likely be figuring out which method call is the one that is failing. But you should be able to get the real failure reason, which may be enough to point a finger somewhere.

- tye        

Replies are listed 'Best First'.
Re^2: Win32::SerialPort Error: Overlapped-I/O operation is in progress ($^E too late)
by Dr. Mu (Hermit) on Mar 27, 2005 at 22:13 UTC
    Good point. So I put the test right after the new Win32::SerialPort($PortName), and that's where it failed, with the same error message.
      Did new Win32::SerialPort($PortName) return undef? $^E is only meaningful if it did.
        Yes, it returned undef.