Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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?
SuggestionRe: Buffer overrun at _CRT_DEBUGGER_HOOK in dbghook.c (using log4cxx) Pin
Richard MacCutchan16-Apr-14 5:33
mveRichard MacCutchan16-Apr-14 5:33 
GeneralRe: Buffer overrun at _CRT_DEBUGGER_HOOK in dbghook.c (using log4cxx) Pin
Dropkicked Murphy16-Apr-14 8:51
Dropkicked Murphy16-Apr-14 8:51 
AnswerRe: Buffer overrun at _CRT_DEBUGGER_HOOK in dbghook.c (using log4cxx) Pin
Stephen Hewitt17-Apr-14 18:57
Stephen Hewitt17-Apr-14 18:57 
QuestionCreating View without document? Pin
prasanth_mv16-Apr-14 2:43
prasanth_mv16-Apr-14 2:43 
QuestionRe: Creating View without document? Pin
Maximilien16-Apr-14 3:31
Maximilien16-Apr-14 3:31 
QuestionRe: Creating View without document? Pin
Richard MacCutchan16-Apr-14 5:24
mveRichard MacCutchan16-Apr-14 5:24 
AnswerRe: Creating View without document? Pin
ptse17-Apr-14 3:30
ptse17-Apr-14 3:30 
GeneralRe: Creating View without document? Pin
prasanth_mv5-May-14 19:28
prasanth_mv5-May-14 19:28 
QuestionMicrosoft Project Kind of free Application developed in MFC or C# Pin
sma123#15-Apr-14 20:12
sma123#15-Apr-14 20:12 
AnswerRe: Microsoft Project Kind of free Application developed in MFC or C# Pin
CPallini15-Apr-14 20:34
mveCPallini15-Apr-14 20:34 
QuestionOutlook Addins Question Pin
None_li15-Apr-14 15:50
None_li15-Apr-14 15:50 
QuestionCStaic SetWindowText() blinking problem [Solved] Pin
econy14-Apr-14 6:55
econy14-Apr-14 6:55 
QuestionRe: CStaic SetWindowText() blinking problem Pin
David Crow14-Apr-14 9:04
David Crow14-Apr-14 9:04 
AnswerRe: CStaic SetWindowText() blinking problem Pin
econy14-Apr-14 9:21
econy14-Apr-14 9:21 
GeneralRe: CStaic SetWindowText() blinking problem Pin
CPallini14-Apr-14 9:44
mveCPallini14-Apr-14 9:44 
GeneralRe: CStaic SetWindowText() blinking problem Pin
econy15-Apr-14 4:54
econy15-Apr-14 4:54 
GeneralRe: CStaic SetWindowText() blinking problem Pin
CPallini15-Apr-14 6:10
mveCPallini15-Apr-14 6:10 

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.