|
Re: C++ exceptions: msg#00004gnu.cegcc.devel
On Sun, 2007-07-01 at 09:41 -0400, Kevin O'Connor wrote: > On Fri, Jun 22, 2007 at 09:37:21PM +0200, Danny Backx wrote: > > The null.C example however - when used with my exception handling code - > > shows a dialog from my new exception handler, but never makes its way to > > the C++ exception handler. > > Have you figured out a way to raise a c++ exception from the wince > handler? Actually I was just getting there minutes ago. > > Running the null.C program on Linux creates a coredump too, no exception > > handler is called. > > Invalid memory accesses don't cause exceptions under Linux. > > Also, it appears gcc may optimize out c++ exception handlers if it > doesn't think the code can create an exception. It thinks it is > running under a linux like environment and the optimizer wont even try > to handle memory raised exceptions. > > > I assumed that the goal is to have the system level exception (from use > > of a null pointer) be caught by the C++ exception handler. Am I wrong ? > > That is certainly what I'd like to see. :-) Ok, attached is the source of my current test program. Comments most welcome. You'll understand that this is just a proof of concept. I've put the executable file on http://danny.backx.info/download/throw.exe.gz so the E-mail isn't too big. You cannot compile this yet, it relies on unpublished stuff. Let me know what you think. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/_______________________________________________ Cegcc-devel mailing list Cegcc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/cegcc-devel |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: C++ exceptions: 00004, Kevin O'Connor |
|---|---|
| Next by Date: | Serial port (COM1) and fileio?: 00004, Eduard Heimann |
| Previous by Thread: | Re: C++ exceptionsi: 00004, Kevin O'Connor |
| Next by Thread: | Re: C++ exceptions: 00004, Pedro Alves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |