http://www.perlmonks.org?node_id=826953


in reply to suppress windows error

What does the error popup say?

If it's giving you a chance to debug the application, you can suppress it with _CrtSetReportMode (in C - I doubt the Win32 module supports that).

You can get more info at the doc page.

Perhaps you can use Inline::C to call

_CrtSetReportMode(_CRT_ASSERT, 0); _CrtSetReportMode(_CRT_ERROR, 0); _CrtSetReportMode(_CRT_WARN, 0);
Note that this just changes where the warnings go to - if an assertion failed, your process is still going to die, but at least it can be restarted right away without needing a human to click a button...

Mike