From: SourceForge.net <no...@so...> - 2005-01-24 15:15:19
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2955747 By: jose_navarro Hi! I have a problem that seems to be a classic one, but I haven't been able to solve it following the hints given in older messages. I have a dll including a sample class. One of the methods, let's call it "excep" in this class throws an exception under some circumstances. Then, I have a main program (obviously, not included in the DLL) that uses that class. When this main program invokes excep (using the corresponding try / catch clauses) is when the problem appears: my main program is unable to catch the exception and it ends abnormally. As I said before, I scanned the archives for solutions and apparently found one. The trick is to create a dll version of libgcc.a. Andrew Begel gave detailed instructions to do it for Mingw's gcc 2.95.3-6 on his post here: http://sourceforge.net/mailarchive/message.php?msg_id=1072882 Unfortunately, these instructions don't work anymore for the current candidate release of MinGW (3.2.0 rc3). The contents of the libgcc.a library seems not to be the same than in the version used in the previous post, so, some of the steps to take do not work... Could anyone (even Andrew Bregel, if he's still around) post DETAILED instructions about how to build libgcc.a as a DLL and how to integrate it in my MinGW environment? My current project depends on the ability to throw exceptions from classes stored in DLLs and trapped by programs using these DLLs... Thanks alot for your interest and time. Regards, Jose. ______________________________________________________________________ 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 |