Where do you declare deck? It should look like this:
not like this:Code:Deck* deck = NULL;
Otherwise deck will have some garbage value in it, and when you try to delete that address -- BOOM!Code:Deck* deck;
This is a discussion on Application freezes up when delete this is called. within the C++ Programming forums, part of the General Programming Boards category; Where do you declare deck ? It should look like this: Code: Deck* deck = NULL; not like this: Code: ...
Where do you declare deck? It should look like this:
not like this:Code:Deck* deck = NULL;
Otherwise deck will have some garbage value in it, and when you try to delete that address -- BOOM!Code:Deck* deck;