Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: windows socket programming Pin
jschell23-Apr-14 9:14
jschell23-Apr-14 9:14 
QuestionMultiple selection on Tree Control Pin
dliviu21-Apr-14 2:50
dliviu21-Apr-14 2:50 
SuggestionRe: Multiple selection on Tree Control Pin
David Crow21-Apr-14 5:10
David Crow21-Apr-14 5:10 
GeneralRe: Multiple selection on Tree Control Pin
dliviu21-Apr-14 23:53
dliviu21-Apr-14 23:53 
GeneralRe: Multiple selection on Tree Control Pin
dliviu22-Apr-14 1:28
dliviu22-Apr-14 1:28 
GeneralRe: Multiple selection on Tree Control Pin
Mohsin Munawar22-Apr-14 23:34
Mohsin Munawar22-Apr-14 23:34 
GeneralRe: Multiple selection on Tree Control Pin
dliviu23-Apr-14 1:09
dliviu23-Apr-14 1:09 
GeneralRe: Multiple selection on Tree Control Pin
dliviu6-May-14 1:08
dliviu6-May-14 1:08 
GeneralRe: Multiple selection on Tree Control Pin
Mohsin Munawar6-May-14 17:35
Mohsin Munawar6-May-14 17:35 
QuestionHow to write registry after log in windows with mfc? Pin
cedricvictor17-Apr-14 22:48
cedricvictor17-Apr-14 22:48 
SuggestionRe: How to write registry after log in windows with mfc? Pin
Jochen Arndt17-Apr-14 22:57
professionalJochen Arndt17-Apr-14 22:57 
GeneralRe: How to write registry after log in windows with mfc? Pin
cedricvictor17-Apr-14 23:45
cedricvictor17-Apr-14 23:45 
QuestionRe: How to write registry after log in windows with mfc? Pin
David Crow18-Apr-14 3:15
David Crow18-Apr-14 3:15 
AnswerRe: How to write registry after log in windows with mfc? Pin
cedricvictor18-Apr-14 5:34
cedricvictor18-Apr-14 5:34 
GeneralRe: How to write registry after log in windows with mfc? Pin
David Crow18-Apr-14 6:47
David Crow18-Apr-14 6:47 
GeneralRe: How to write registry after log in windows with mfc? Pin
Heng Xiangzhong21-Apr-14 15:10
Heng Xiangzhong21-Apr-14 15:10 
GeneralRe: How to write registry after log in windows with mfc? Pin
David Crow21-Apr-14 17:01
David Crow21-Apr-14 17:01 
GeneralRe: How to write registry after log in windows with mfc? Pin
Heng Xiangzhong21-Apr-14 17:10
Heng Xiangzhong21-Apr-14 17:10 
QuestionCMap oject copy operation Pin
econy17-Apr-14 4:58
econy17-Apr-14 4:58 
SuggestionRe: CMap oject copy operation Pin
Richard MacCutchan17-Apr-14 5:32
mveRichard MacCutchan17-Apr-14 5:32 
AnswerRe: CMap oject copy operation Pin
CPallini17-Apr-14 7:06
mveCPallini17-Apr-14 7:06 
QuestionWhat are these files in folders of this os? Pin
johan1111117-Apr-14 0:54
johan1111117-Apr-14 0:54 
QuestionRe: What are these files in folders of this os? Pin
Richard MacCutchan17-Apr-14 5:30
mveRichard MacCutchan17-Apr-14 5:30 
AnswerRe: What are these files in folders of this os? Pin
johan1111117-Apr-14 7:03
johan1111117-Apr-14 7:03 
QuestionBuffer overrun at _CRT_DEBUGGER_HOOK in dbghook.c (using log4cxx) Pin
Dropkicked Murphy16-Apr-14 2:59
Dropkicked Murphy16-Apr-14 2:59 
That sums it up pretty much - The line method executed before is

C++
void Writer::DoWrite(QString auditEntry){
    QByteArray ba = auditEntry.toLatin1();
    char* aestr = ba.data();
    std::string aestdstr(aestr);

    log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger("RMAT");
    LOG4CXX_INFO(logger, aestdstr);//Buffer overrun happens somewhere in this method call
}


I did the search work - Yes, aestdstr is terminated with '\0'. I'm running out of ideas here. The detailed error message is called

Quote:
A buffer overrun has occurred in app.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

For more details please see Help topic 'How to debug Buffer Overrun Issues'.


Fun fact is that no one has ever seen the help topic 'How to debug Buffer Overrun Issues' (here[^]).
Any thoughts on the issue?

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.