View Single Post
  #1  
Old 09-27-2002, 01:05 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default Delete crashes?!

Alright... I'm having the weirdest problem. Several code snippets are crashing when they use the delete function. I posted about this a bunch of times earlier, though I didn't figure out exactly what was causing it until now.

Examples:

WesQuests.cpp

Code:
	#ifdef WIN32
	delete command; <-- Here
	delete temp; <-- Here
	#endif

linked_list.h

Code:
  current_element->SetNext(0);
  current_element->SetPrev(0);
  if (!DeleteData)
	  current_element->SetData(0);
  delete current_element; <-- Here
The marked lines cause crashes. Oddly enough, the linked_list.h crash only appears occasionaly, while the quest crash appears every time.

I am seriously confused by this, it's making no sense. Can anyone help?
Reply With Quote