My code cannot run in debug mode (i use VS 2005).
When try to run debug, there is a dialog say
"HEAP[...]: Heap block at ... modified at ... past requested size of 1
Windows has triggered a breakpoint in TestBug.exe.
This may be due to a corruption of the heap, and indicates a bug in TestBug.exe
or any of the DLLs it has loaded.
The output window may have more diagnostic information"
My code just a default simple hello world, dialog type with this function only.
Expand|Select|Wrap|Line Numbers
- void CTestBugDlg::OnBnClickedOk()
- {
- // TODO: Add your control notification handler code here
- int a = 0;
- static LPDIRECTINPUTA pDirectInputA = NULL;
- HRESULT hret = DirectInputCreateA(AfxGetInstanceHandle(),
- DIRECTINPUT_VERSION,
- &pDirectInputA,
- NULL);
- OnOK();
- }
I have proper correct setting path of .h and lib, dll of dinput already.
More over this code was run fine in this PC 2 week agos,
and i did not change the code until today. (that i want to continue my work)
And this code can run on another PC.
On my PC in cant run in my account only, if try to run it in another account it can run normally. It can also run without debugging.
And i notice strange order of loading required dll when start debug too.
Anyone know what happen to me, does my VS corrupt?