Sto realizzando un gioco in c++, usando la libreria SDL.
Sto usando visual c++ express 2010.
Quando tento di chiudere il programma ho il seguente messaggio:
"Windows has triggered a breakpoint in nomeprogramma.exe.
This may be due to a corruption of the heap, which indicates a bug in nomeprogramma.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while nomeprogramma.exe has focus.
The output window may have more diagnostic information."
E nella finestra che riporta il messaggio su citato, ho 2 pulsanti: "break" e "continue".
Insomma per terminare il programma devo per forza andare su Debug->Stop debugging, altrimenti non termina.
Ho notato che l'errore si verifica appunto quando viene chiamato il distruttore di un oggetto, che alla fine deve essere appunto, eliminato.
Come faccio a risolvere il problema? Sto impazzendo...