Heap Corruption
ATL / WTL / STL
1
Posts
1
Posters
17
Views
1
Watching
-
Sorry about the vagueness of this... but I have to start my shift at the store in a minute... this coding business is my hobby! I've got an application which has two dialogs, I use a deque and Direct2D in one dialog within a thread. Now, if I close the application via handling WM_CLOSE I have no problem but when I try and close it by clicking on 'Close Window' in the task bar or using Alt F4 I get a breakpoint triggered on
if (!HeapFree(select_heap(block), 0, block))
I know it's a long shot since I have given so little detail - but seeing as the difference seems to be in the way I close the app down I was hoping there might be a quick and easy fix for this. Yours hopefully, Ben