From: Oscar F. <of...@wa...> - 2002-04-27 01:54:32
|
Danny Smith <dan...@ya...> writes: > --- Oscar Fuentes <of...@wa...> wrote: > > > > This test case illustrates how you can convert an access violation (a > > Seg Fault on Linux parlance) to a well-behaved C++ expception. If > > anyone knows a better way or are aware of any problem with this > > approach, I would grateful to hear your comments. > > > > BTW, this does not works with gcc 3.0.3 on Cygwin. > > It does work with 3.1 on mingw. Thanks for the info, Danny. GCC 3.1 looks really promising. There is at least one problem with the 'signal' approach for detecting AV's, division-by-zero, etc. It is not thread safe. In any case, my proposed solution needs to go a long way through testing and investigation before entering into production code. -- Oscar |