You have a couple of odd problems. Might be easier to help if you sent the code to the list.
Steve >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of >David Hamilton >Sent: Monday, October 15, 2001 4:00 AM >To: '[EMAIL PROTECTED]' >Subject: [rtl] Crashing when deleting C++ objects! > > >Hmmm! >I've got a simple C++ program running under rtlinux. When I >stop it with >rmmod, my systems locks up. I've narrowed this down to a >delete call in one >of my destructors. Actually this is my only delete call >executed in a thread >(deletes called directly from cleanup_module work ok). >There is nothing wrong with the code (it will fail even if the object >destructors do nothing). >Perhaps, I'm not linking correctly with the definitions of new >and delete >included in the rtl_cpp.h file!? > >Which brings me to a question. Why do the new and delete >functions have to >be declared at all? Aren't they part of the C++ programming >language. Are >the standard C++ versions unacceptable to RTLinux? Perhaps my code is >linking to the normal C++ definitions of new and delete and >that is why the >system crashes. > >Any help/advice appreciated. >David > >-- [rtl] --- >To unsubscribe: >echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR >echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] >-- >For more information on Real-Time Linux see: >http://www.rtlinux.org/ > > -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
