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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -