Click here to Skip to main content
15,914,409 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
Mircea Puiu11-Oct-05 0:57
Mircea Puiu11-Oct-05 0:57 
AnswerRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
David Crow11-Oct-05 2:46
David Crow11-Oct-05 2:46 
AnswerRe: ON_UPDATE_COMMAND_UI Help me !!! Pin
tirucapricorn12-Oct-05 18:37
tirucapricorn12-Oct-05 18:37 
QuestionHow to get the total sectors of physical disk Pin
bghuang10-Oct-05 23:57
bghuang10-Oct-05 23:57 
AnswerRe: How to get the total sectors of physical disk Pin
Devendra Vaja11-Oct-05 0:08
Devendra Vaja11-Oct-05 0:08 
GeneralRe: How to get the total sectors of physical disk Pin
bghuang11-Oct-05 2:47
bghuang11-Oct-05 2:47 
GeneralRe: How to get the total sectors of physical disk Pin
Devendra Vaja14-Oct-05 23:36
Devendra Vaja14-Oct-05 23:36 
QuestionException while deletion -- scalar deleting destructor Pin
Divick10-Oct-05 23:50
Divick10-Oct-05 23:50 
Hi all,
I am writing a simple application in VS.NET 2003 which uses my own dll (vz.dll). The dll is for my C++ library which the application uses. See the scenario below:

app (my own application) --> uses vz.dll (a C++ API exporting its class functions, my own classes). I am building the DLL with /MTd flag enabled rather than using flag /MDd. Also I am calling the constructor within the DLL with new.

Debugging the application, when I exit the application I do deletion of my data(calling delete on an instance created using new) I get the following exception with the stack trace

Unhandled exception at 0x7c822583 in app.exe: User breakpoint

ntdll.dll!7c87512a()
ntdll.dll!7c8754d1()
ntdll.dll!7c8409a8()
kernel32.dll!77e6b28e()
kernel32.dll!77e755b9()
vzclient.dll!_CrtIsValidHeapPointer(const void * pUserData=0x01da27a0)
Line 1807 C
vzclient.dll!_free_dbg_lk(void * pUserData=0x01da27a0, int nBlockUse=1)
Line 1132 + 0x9 C
vzclient.dll!_free_dbg(void * pUserData=0x01da27a0, int nBlockUse=1)
Line 1070 + 0xd C
vzclient.dll!operator delete(void * pUserData=0x01da27a0) Line 54 +
0x10 C++
vzclient.dll!vzTMRenderAction::`scalar deleting destructor'() +
0x3c C++
app.exe!CleanVolumizer() Line 438 + 0x34 C++

I commented out the deletion of the data which was causing this. After which I am still getting the same exception

Unhandled exception at 0x7c822583 in app.exe: User breakpoint.

But now the location of exeption has shifted to dbgheap.c when the _CrtIsValidHeapPointer returns.

Though it seems to me a heap corruption but I have no clue why it is happening and where. I also tried using gflags utility but not of much use.

Please help me, I am stuck.
Any help/ suggestion is welcome.

Thanks in advance,
Divick
AnswerRe: Exception while deletion -- scalar deleting destructor Pin
Roger Stoltz11-Oct-05 0:18
Roger Stoltz11-Oct-05 0:18 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Divick11-Oct-05 4:47
Divick11-Oct-05 4:47 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Roger Stoltz11-Oct-05 7:02
Roger Stoltz11-Oct-05 7:02 
AnswerRe: Exception while deletion -- scalar deleting destructor Pin
Tim Smith11-Oct-05 4:01
Tim Smith11-Oct-05 4:01 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Divick11-Oct-05 21:59
Divick11-Oct-05 21:59 
GeneralRe: Exception while deletion -- scalar deleting destructor Pin
Divick12-Oct-05 1:26
Divick12-Oct-05 1:26 
Questionlaunch googleTalk from Browser Pin
Anonymous10-Oct-05 22:40
Anonymous10-Oct-05 22:40 
Questionl Pin
Anonymous10-Oct-05 22:39
Anonymous10-Oct-05 22:39 
AnswerRe: l Pin
Prakash Nadar11-Oct-05 6:24
Prakash Nadar11-Oct-05 6:24 
QuestionHow to draw the gradient of 3 colors with rotation? Pin
CoolStarLee10-Oct-05 22:14
CoolStarLee10-Oct-05 22:14 
AnswerRe: How to draw the gradient of 3 colors with rotation? Pin
Mircea Puiu11-Oct-05 0:54
Mircea Puiu11-Oct-05 0:54 
QuestionModeless dialog communicating with parent dialog Pin
fjlv200510-Oct-05 20:44
fjlv200510-Oct-05 20:44 
AnswerRe: Modeless dialog communicating with parent dialog Pin
karmendra_js10-Oct-05 21:11
karmendra_js10-Oct-05 21:11 
AnswerRe: Modeless dialog communicating with parent dialog Pin
fjlv200510-Oct-05 23:26
fjlv200510-Oct-05 23:26 
GeneralRe: Modeless dialog communicating with parent dialog Pin
karmendra_js10-Oct-05 23:58
karmendra_js10-Oct-05 23:58 
GeneralRe: Modeless dialog communicating with parent dialog Pin
karmendra_js11-Oct-05 0:11
karmendra_js11-Oct-05 0:11 
Questionfile filtering Pin
karmendra_js10-Oct-05 20:24
karmendra_js10-Oct-05 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.