delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/30/11:22:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3E8719BC.4020809@noos.fr>
Date: Sun, 30 Mar 2003 18:22:20 +0200
From: Vaillant Etienne <vaillant DOT etienne AT noos DOT fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030212 Debian/1.2.1-9woody1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019