This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Share exception between shared lib and an application...


Hi,

Currently, I'm going to run an application on Cygwin from GNU/Linux...
But I have a problem : exceptions between shared lib and an application
isn't support by Cygwin...

To verify this, I made the following exemple :

Code C : share lib
#include <iostream>
#include <exception>
#include <stdexcept>
#include <string>

void nv1_fct1(void) throw(std::invalid_argument){
    throw std::invalid_argument("Invalid Argument");
}

Code C : Main program
#include<iostream>
#include<exception>
#include<stdexcept>

void nv1_fct1(void);

int main(int argc, char **argv){
    try{
        nv1_fct1();
    }
    catch(std::invalid_argument &e){
        std::cout << e.what() << std::endl;
    }
    return 0;
}

And, when I run this sample, a core dump is issued.... :(

So, I have a set of questions :
    - When do you think share exceptions will be supported by Cygwin ?
(is there a date ?)
    - If I want to implement share exceptions in Cygwin, where do I have
to check in source code in order to do it myself ? (file, function...)

Thank you
Etienne




-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


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