Solved

URGENT Assertion error while closing Activex component

Posted on 2002-04-04
5
526 Views
Last Modified: 2013-11-20
Hi

I have created Active-X component using MFC , i have tested it using vb-6 and vc-6 its working fine , BUT when i am using my control in vb-6 and press stop button during
design time i receive the following error

"Debug Assertion FAILED!"
File: cmdtarg.cpp
Line: 52

while terminating the vb client application(client.exe)i don't get any such assertion errors.

how to solve this error.
0
Comment
Question by:vcppmfc
5 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 100 total points
ID: 6917718
MSDN Says

BEHAVIOR: ASSERT in Cmdtarg.cpp, line 52 (destructor for CCmdTarget), but OK if ignored
REASON: Ref count is off by one
HANDLING: None--this is a flaky problem that shouldn't be handled.
AFFECTED CONTROLS: Common Dialogs Control, Crystal Report Control, Grid Control, PICS Date Edit Control
Additional notes: Only seen if a previously added control caused problems-- hard to reproduce.

Roshmon
0
 

Author Comment

by:vcppmfc
ID: 6933498
Yeh i searched for some of the error handling documents.Atlast i found a document saying that its an microsoft bug and we need to add service pack for Visual studio.Thanks for trying.
0
 

Expert Comment

by:JOHNTHEISS
ID: 10814135
I am getting the same thing, and the company will freak in putting upgrades in.  Can you tell me where you saw that this is a bug and what the fix is?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question