Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlong double... Pin
Link260028-Sep-05 7:10
Link260028-Sep-05 7:10 
AnswerRe: long double... Pin
Christian Graus28-Sep-05 7:38
protectorChristian Graus28-Sep-05 7:38 
AnswerRe: long double... Pin
toxcct28-Sep-05 21:14
toxcct28-Sep-05 21:14 
GeneralRe: long double... Pin
Link260030-Sep-05 2:19
Link260030-Sep-05 2:19 
Questionget html from the net Pin
hamavreg228-Sep-05 6:53
hamavreg228-Sep-05 6:53 
AnswerRe: get html from the net Pin
vikas amin28-Sep-05 23:12
vikas amin28-Sep-05 23:12 
Questioncrash on the end of release mode Pin
valerie9928-Sep-05 4:15
valerie9928-Sep-05 4:15 
AnswerRe: crash on the end of release mode Pin
carks28-Sep-05 6:04
carks28-Sep-05 6:04 
Hi,

ptrIdxName = m_csIdxFile.GetBuffer( L_tmpnam + 1 );


This line looks dangerous! L_tmpnam may not be initialized.
which would assign an unpredictable amount of mem. in release mode.
The memory pointed to by ptrIdxName might easily be corrupted by the
"GetTempFileName" call on the next line... the problem might only manifest itself when the class destructor deallocates the memory at object destruction time.

Why not try a simpler way of doing this instead of GetBuffer/ReleaseBuffer like...

TCHAR filename[MAX_PATH];
GetTempFileName( ,,, filename );
m_csIdxFile = filename;

Cheers,

Dave


GeneralThanks. I've tried your suggestion Pin
valerie9928-Sep-05 10:58
valerie9928-Sep-05 10:58 
GeneralRe: Thanks. I've tried your suggestion Pin
prasad_som28-Sep-05 19:28
prasad_som28-Sep-05 19:28 
GeneralHere is another part of code Pin
valerie9929-Sep-05 3:54
valerie9929-Sep-05 3:54 
QuestionSecurity Certificate Store(CertOpenStrore) Pin
sunit528-Sep-05 3:56
sunit528-Sep-05 3:56 
QuestionPowerPoint Device Context Hook? Pin
douglasjordan28-Sep-05 3:55
douglasjordan28-Sep-05 3:55 
Questionmouse driver source for a standard usb mouse Pin
Anonymous28-Sep-05 3:55
Anonymous28-Sep-05 3:55 
QuestionA program to monitor web pages/sites as and when u visit them... Pin
erajsri28-Sep-05 3:29
erajsri28-Sep-05 3:29 
QuestionHow to start yahoo Konfabulator widget from MFC ? Pin
Amarelia28-Sep-05 3:26
Amarelia28-Sep-05 3:26 
AnswerRe: How to start yahoo Konfabulator widget from MFC ? Pin
David Crow28-Sep-05 4:24
David Crow28-Sep-05 4:24 
AnswerRe: How to start yahoo Konfabulator widget from MFC ? Pin
Maximilien28-Sep-05 4:43
Maximilien28-Sep-05 4:43 
QuestionNeed help: Printer Lifemeter Pin
eXtwo28-Sep-05 3:21
eXtwo28-Sep-05 3:21 
AnswerRe: Need help: Printer Lifemeter Pin
David Crow28-Sep-05 4:28
David Crow28-Sep-05 4:28 
QuestionHow to delete entry in start menu? Pin
fggfhfhgfg28-Sep-05 2:58
fggfhfhgfg28-Sep-05 2:58 
AnswerRe: How to delete entry in start menu? Pin
David Crow28-Sep-05 3:13
David Crow28-Sep-05 3:13 
GeneralRe: How to delete entry in start menu? Pin
Arno The Avatar28-Sep-05 4:05
sussArno The Avatar28-Sep-05 4:05 
QuestionHelp me with displaying capture image Pin
SimCom28-Sep-05 2:06
SimCom28-Sep-05 2:06 
AnswerRe: Help me with displaying capture image Pin
Cedric Moonen28-Sep-05 2:26
Cedric Moonen28-Sep-05 2:26 

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.