Dynamically T_Magic
#5

Yeah, that was the first thing I tried, but it also crashed the game server since you essentially delete the main reference of the address in memory. I got an access violation, and then I realized I needed to update all the address that refer to the struct in memory ... at least i thought .... open to discussion on it, have you tried by yourself ? 

 

When you perform tthis action, the orginal address of the list is destroyed 

delete[] m_list;

 

and doing something like this is horrible

 

CMagicProtoList::~CMagicProtoList()
{
}



just end up reassigne the new value to the default structure was fine.



Messages In This Thread
[No subject] - by Scura - 05-30-2024, 03:45 PM
[No subject] - by Scura - 05-30-2024, 05:14 PM
[No subject] - by Scura - 05-30-2024, 05:33 PM
[No subject] - by CyberClaus - 05-30-2024, 06:42 PM
[No subject] - by Scura - 05-30-2024, 08:42 PM
[No subject] - by CyberClaus - 05-31-2024, 02:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)