C++ crash on getting pointer -


i'm guessing it's leading nowhere, null pointer or something, i'm checking beforehand

both of these snippets crash:

//snippet 1 dword *address = (dword*)(base + 0x54);  if (address)     address = (dword*)(*address + 0xc);  if (address)     address = (dword*)(*address + 0x8);   //crashes here   //snippet 2 dword address = *(dword*)(base + 0x54);  if (address)     address = *(dword*)(address + 0xc);  if (address)     address = *(dword*)(address + 0x8);   //crashes here 

am doing wrong? in advance

access violation!

you're touching parts of memory forbidden program. dereferencing pointer points unknown place undefined behavior.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -