Hi,
I recently ported the haret application
(http://www.handhelds.org/moin/moin.cgi/HaRET) to mingwce32. In the
process, I used the c++ compiler, mainly because there were a few
places in the existing msvc code that would catch bad pointer accesses
and handle them gracefully.
In the old code you'd see something like:
__try
{
while (wcount--)
*vaddr++ = value;
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
Complain (C_ERROR ("EXCEPTION while writing %08x to address %08x"),
value, vaddr);
}
Which I converted to:
try
{
while (wcount--)
*vaddr++ = value;
}
catch (...)
{
Output(C_ERROR "EXCEPTION while writing %08x to address %p",
value, vaddr);
}
However, it doesn't work. (A bad memory access causes the program to
terminate.) What can be done to get this working?
-Kevin
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel