Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: suppress windows error

by RMGir (Prior)
on Mar 05, 2010 at 12:18 UTC ( #826953=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://826953]
help
Chatterbox?
[Discipulus]: The Count of Moret; The Red Sphinx is a single book appeared with different titles. it is one of the best and alot of understimed Dumas book.
choroba has only read the first two
[Discipulus]: if i can suggest La Reine Margot too is a great book and obviously The Count of Monte Cristo that is a chef-d'œuvre

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-05-24 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?