logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Function to delete *DetectedBy_

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Teakor



Joined: 25 Jun 2014
Posts: 4

PostPosted: Wed Jul 30, 2014 8:15    Post subject: Function to delete *DetectedBy_ Reply with quote

Hello everybody. I created a function to delete the entire list of those who have detected a specific trap.
To do this I delete the contents of the variable unsigned __ int32 *DetectedBy_; but unfortunately by some problems.

if I use the command delete[] trg->DetectedBy_; visible when the trap back crashes nwserver.

if I use the command trg->DetectedBy_ = new unsigned __ int32[0];
when I close nwserver crashes.

Any idea on how to solve the problem? Unfortunately I do not have much familiarity with C + +.

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group