This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.1-cygb19: dll exception bug.


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]