| delorie.com/archives/browse.cgi | search |
| From: | ert AT cit DOT org DOT by (Andrew Lipnitsky) |
| Subject: | egcs-1.1-cygb19: dll exception bug. |
| 5 Oct 1998 15:24:16 -0700 : | |
| Message-ID: | <3618B99C.700BEEE8.cygnus.gnu-win32@cit.org.by> |
| Mime-Version: | 1.0 |
| To: | Cygnus Solution GnuWin32 Mail List <gnu-win32 AT cygnus DOT com> |
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 AT cit DOT org DOT by
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |