This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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]

My program restarts six times under Cygwin when run under rxvt/xterm


Hello,

This is a simple program that I compile as a console application in Visual Studio 2005 :
----------------------------------------------
#include <windows.h>
#include <stdio.h>


LONG WINAPI my_exception_filter (LPEXCEPTION_POINTERS exceptionInfo)
{
printf ("*** my_exception_filter ***\n");
return EXCEPTION_EXECUTE_HANDLER;
}


int main(int argc, char *argv[]) { printf ("\n*** SetUnhandledExceptionFilter ***\n"); SetUnhandledExceptionFilter (my_exception_filter);


printf ("*** RaiseException ***\n");
RaiseException(EXCEPTION_NONCONTINUABLE_EXCEPTION , EXCEPTION_NONCONTINUABLE, 0, NULL);
}
----------------------------------------------


If I run this program in standard Windows CMD window, it prints whatever it should, and terminates.

If I run this program under CYGWIN, the result depends:
- in standard window (the one that is open by picking "Cygwin bash shell" link in the menu) - the program exits after printing
- if I start rxvt or xterm from the standard window, and then run this program in rxvt/xterm window, the program restarts 5 times, each time it prints what it should.


Can somebody check my sanity and confirm that this problem is reproducible anywhere else?

I'm on Windows XP SP2, all the latest patches, etc.
Cygwin version is 1.5.24 (the latest).

Any help is greatly appreciated.

Thank you,
Alex

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


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