Solved

Assert error on strcore.cpp

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Strange date stored 22 177
VBA "SendKeys" Syntax for Multiple Keystrokes 7 126
has77  challenge 9 99
canBalance challenge 34 105
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.

730 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