This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Asynchronous exceptions


Hi,

anybody has working example of catching asynchronous exceptions on
cygwin 2.95-3?

I tried:

int main()
{
         try
         {
                 BadFunc();
         }
         catch(...)
         {
                 printf( "Badfunc was really bad!\n" );
         }
}

void BadFunc()
{
         BYTE* p = NULL;
         *p = 0;
}

Althought I complied with -fexceptions -fasynchronous-exceptions, it
just prints out the cygwin/gcc runtime error message and produces stack
dump.

Does cygwin support that?

Jindroush (jindroush@seznam.cz)
http://jindroush.atari.org - Home of Atari Cartridge Dumping Project.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]