Solved

Assert error on strcore.cpp

Posted on 2000-03-02
2
1,283 Views
Last Modified: 2013-11-20
When I was try connect with socket, Visual C++ SP6 giving
assertion error.
What is the solution?

Debug Assertion Failed!
Program:D:.................\BULKMAIL.EXE
File:strcore.cpp
Line:154

Abort Retry Ignore



sometimes
Line:53
0
Comment
Question by:cangodel
2 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 100 total points
ID: 2577762
Is it possible that somewhere before place where you allocated memory for CString you have an object which memory was overwritten past allocated size and corrupted CString memory? In that case when Cstring is get destroyed or it value reassinged it crashes when attemps to release memory

Example
char pTest0 = "AAAAAAAAAA";
char* pTest1 = new char[4];
CString* pTest2 = new CString()
strcpy( pTest1, pTest0 );
delete pTest2;
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2578972
MFC has detected that you are writing a bulk mailing program and has stoped you from genreating more spam :-)

Actually, you must have been stuffing about with CString internals.

Without seeing the code it is almost impossible to know when this happened.  Also, setting a breakpoint won't help, as the damage has already been done.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now