Subject: egcs-1.1-cygb19: dll exception bug.
From: [email-masked] (Andrew Lipnitsky)

5 Oct 1998 15:24:16 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
To: Cygnus Solution GnuWin32 Mail List <[email-masked]>

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 [email-masked]

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".