Quote:
Originally Posted by lanman92 After commenting out my code... I have it throwing an access violation, 0x00000 trying to access 0x0000000. No clue why this is happenening. Here's what I have for code. Code: void __cdecl sendpacket(CDataStore* packet)
{
oSendPacket(packet);
}
|
If that is throwing an access violation at 0x00000000, it's indicative of your packet variable being null at runtime, add a check to see if it's null before you try to use it in the oSendPacket function or try to find out why it's null.
If it is a null pointer issue this would fix it :
Code:
void __cdecl sendpacket(CDataStore* packet)
{
if(packet != 0)
{
oSendPacket(packet);
}
}
The reason it throws an access violation is because that address is most definitely not in the address space of the actual application (even with the pseudo addresses windows creates for each application so we don't need to deal with huge adresses constantly) and when you try to modify it, it will flip out.
If you say it happens when you close WoW, it's probably got something to do with the fact that the WoW buffer of packets is empty, and you're trying to grab one more than what exists.
Just my thoughts on it