First-chance exception at 0x013a28bc in Assignment 2.exe: 0xC0000005: Access violation reading location 0xfdfdfe01.
Unhandled exception at 0x013a28bc in Assignment 2.exe: 0xC0000005: Access violation reading location 0xfdfdfe01.
The program '[3044] Assignment 2.exe: Native' has exited with code -1073741819 (0xc0000005).
is there a way to solve this?
the moment my [branch -> pos[m]][m]
doesn't equate to the same, my program will get the above message.
it only runs properly when
eg. pos[1]][1]
but not
pos[2]][1]
is there a way to solve this or to check if [m] != [m] then exit(-1)?
We'd kind-of appreciate seeing how amount and pos are initialized and how your class is declared. Then, maybe we could help with your segmentation faults. :)