This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
egcs-1.1-cygb19: dll exception bug.
- To: Cygnus Solution GnuWin32 Mail List <gnu-win32 at cygnus dot com>
- Subject: egcs-1.1-cygb19: dll exception bug.
- From: Andrew Lipnitsky <ert at cit dot org dot by>
- Date: Mon, 05 Oct 1998 14:20:45 +0200
Hello All!
I have coolview.tar.gz with cygwinb19.dll 07/15/98 and
egcs-1.1-cygb19 (AKA egcs-2.91.57) from
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/egcs.html
I have found that exception which was thrown in dll module will
never be caught in main program module.
For example following code does not work:
// in foo.dll
void foo() {
throw 7;
}
// in bar.exe
__declspec (dllimport) void foo();
int main() {
try {
foo();
}
catch (int i) {
cerr << "exception!!!" << endl;
}
}
This program fail quietly.
But if function foo() is located in bar.exe then
all work fine.
Good bye.
Andrew Lipnitsky ert@cit.org.by
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".