static FXint FX::FXException::setGlobalErrorCreationCount ( FXint  no  )  [static]

Returns:
The previous setting
Parameters:
no The new setting (0=create none (the default), negative number imply randomness)
Sets a new global error creation count for the current thread. Under debug builds, all FXERRH() assertion tests call an internal routine which increments a count which if passed, triggers the exception anyway. This permits bulletproofing your code and testing that it handles exceptions being thrown correctly (for best use, combine with your favourite memory leak detector etc).

Probably the most useful setting is to negative numbers which internally sets the actual count to a random number between 1 and abs(val). Setting to zero disables the feature.

The exceptions will keep being thrown until disabled ie; the count restarts or rerandomises.


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:33:37 2009 for TnFOX by doxygen v1.4.7