Solved

Assert error on strcore.cpp

Posted on 2000-03-02
2
1,278 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

19 Experts available now in Live!

Get 1:1 Help Now