Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multithreading Pin
hrishiS1-Jan-09 18:30
hrishiS1-Jan-09 18:30 
AnswerRe: Multithreading Pin
Roger Stoltz1-Jan-09 22:17
Roger Stoltz1-Jan-09 22:17 
QuestionBuffer? Pin
dec821-Jan-09 16:46
dec821-Jan-09 16:46 
AnswerRe: Buffer? Pin
«_Superman_»1-Jan-09 17:54
professional«_Superman_»1-Jan-09 17:54 
AnswerRe: Buffer? Pin
Hamid_RT1-Jan-09 18:17
Hamid_RT1-Jan-09 18:17 
AnswerRe: Buffer? Pin
Michael Dunn2-Jan-09 13:17
sitebuilderMichael Dunn2-Jan-09 13:17 
QuestionVista magnification API Pin
Hans Dietrich1-Jan-09 13:46
mentorHans Dietrich1-Jan-09 13:46 
QuestionEmergence! 0xC0000005: Access Violation again [modified] Pin
whiteclouds1-Jan-09 12:57
whiteclouds1-Jan-09 12:57 
Hi, thomas!
Thanks for your reply.
I think I had found the reason. After I delete some variables that aren't be used any more, the exception is missing. But another exception is occur same as this when I use the code following:
time_t  ltime;      // local time
struct tm *gmt; // Greenwich Mean Time
png_time ttime; // png format
time (&ltime);  // get the local time---EXCEPTION 0xC0000005 OCCUR HERE!
gmt = gmtime (&ltime);  // convert to gmt
png_convert_from_struct_tm (&ttime, gmt);  // convert to png format
        png_set_tIME (png_ptr, info_ptr, &ttime);

I trace this exception into MFC and I found when a function named _mlock was invoked in the __tzset function, the exception occur. The related code like this:
_mlock( _TIME_LOCK );

I don't know the reason and hope you or others can give me some suggestion. Thank you!
By the way: if the title of this message offend someone, I'm very sorry because this event is an emergency really.Mad | :mad:

Regards!

whiteclouds

modified on Thursday, January 1, 2009 8:20 PM

GeneralRe: Emergence! 0xC0000005: Access Violation again Pin
Luc Pattyn1-Jan-09 13:11
sitebuilderLuc Pattyn1-Jan-09 13:11 
GeneralRe: Emergence! 0xC0000005: Access Violation again Pin
whiteclouds1-Jan-09 14:20
whiteclouds1-Jan-09 14:20 
GeneralRe: Emergence! 0xC0000005: Access Violation again Pin
Luc Pattyn1-Jan-09 14:48
sitebuilderLuc Pattyn1-Jan-09 14:48 
GeneralRe: Emergence! 0xC0000005: Access Violation again Pin
whiteclouds3-Jan-09 14:54
whiteclouds3-Jan-09 14:54 
GeneralRe: Emergence! 0xC0000005: Access Violation again Pin
Luc Pattyn3-Jan-09 15:50
sitebuilderLuc Pattyn3-Jan-09 15:50 
QuestionMenu Items Pin
BobInNJ1-Jan-09 11:09
BobInNJ1-Jan-09 11:09 
AnswerRe: Menu Items Pin
Richard Andrew x641-Jan-09 11:27
professionalRichard Andrew x641-Jan-09 11:27 
GeneralRe: Menu Items Pin
BobInNJ1-Jan-09 12:31
BobInNJ1-Jan-09 12:31 
GeneralRe: Menu Items Pin
Richard Andrew x641-Jan-09 12:35
professionalRichard Andrew x641-Jan-09 12:35 
GeneralRe: Menu Items Pin
BobInNJ1-Jan-09 12:40
BobInNJ1-Jan-09 12:40 
AnswerRe: Menu Items Pin
Richard Andrew x641-Jan-09 12:39
professionalRichard Andrew x641-Jan-09 12:39 
GeneralRe: Menu Items Pin
BobInNJ1-Jan-09 12:56
BobInNJ1-Jan-09 12:56 
QuestionAmcap C++ source code! Pin
Hadi Dayvary1-Jan-09 9:40
professionalHadi Dayvary1-Jan-09 9:40 
AnswerRe: Amcap C++ source code! Pin
Jijo.Raj1-Jan-09 10:19
Jijo.Raj1-Jan-09 10:19 
GeneralRe: Amcap C++ source code! Pin
Hadi Dayvary1-Jan-09 20:57
professionalHadi Dayvary1-Jan-09 20:57 
Question"C++" Base64 De/En coding Class Pin
Joseph Marzbani1-Jan-09 8:36
Joseph Marzbani1-Jan-09 8:36 
AnswerRe: "C++" Base64 De/En coding Class Pin
Mark Salsbery1-Jan-09 8:46
Mark Salsbery1-Jan-09 8:46 

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.