Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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... Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 #include #include #include void nv1_fct1(void) throw(std::invalid_argument){ throw std::invalid_argument("Invalid Argument"); } Code C : Main program #include #include #include 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/