PDA

View Full Version : Why its happening ????



Tahir Ahmed
April 12, 2006, 11:55:31
The senerio i am working "i have to close client application from server, i m just passing a msgs which is calling onOK() but this exeption occurs"
I am having the following Message.
"User breakpoint called from code at 0x77f7f570"


The thread 0xD90 has exited with code 1 (0x1).
HEAP[SS2.exe]: Invalid Address specified to RtlValidateHeap( 00320000, 00327738 )
The program 'd:\Tahir\SS2.exe' has exited with code 0 (0x0).

Can anyBody tell me what is happening. I m trying it but not succeeded yet.

Stefan Geissler
April 18, 2006, 09:09:54
Hello Tahir.


The error message says, that parts of memory are tried to be deleted, but they have been deleted previously. Thus they are no more accessable..

What happens, if the onok message is called directly from your program, not with an external message? Are you sure, that the correct onok() is called? If the CDialog::OnOK() is called, then may be the memory is not cleared correctly in your application, because its OnOK() is not called.