Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting an object

Status
Not open for further replies.

revit

Programmer
Oct 27, 2001
36
IL
I am trying to delete an array which every element in it is a red-black tree.
when i tring to delete one of the red-black tree object which is an element in the array i get an segmentation fault which appears only when i run it under windows and not unix.
how can i fix it?
Thanks.
 
If all non-standard elements You try to delete (red-black tree object etc.) have right destructors, this error may occures if You write over array size before You delete elements or You try to delete class's Members within it's class or You try to delete somewahat by bad Pointer. By writing over reserved size an Error is not allways showed, and You can become an Error by deleting only.
Some another errors can cause this Error too (compiler - specific).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top