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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -