|
From: SourceForge.net <no...@so...> - 2005-01-27 03:15:06
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2961769 By: johngaughan "could you please send me a minimalist but complete working example? I'll compile it and see what happens. It's still possible that my rc3 is broken, as you, Greg, suggested..." #include <exception> #include <iostream> #include <stdexcept> void proc (void) throw (std::range_error) { throw (std::range_error ("No soup for you!")); } int main (void) { try { proc (); } catch (std::range_error &e) { std::cout << e.what () << std::endl; } return 0; } This example catches by reference. Although it is contained in a single executable, it would still work even across EXE/DLL boundaries. If you need more, let me know and I will email you something. I have some more examples but they are a bit more complex (and verbose) than this. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |