Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThe program reads and writes hard disk in a thread heavily, how to make it work when idle? Pin
followait1-Jan-09 18:07
followait1-Jan-09 18:07 
AnswerRe: The program reads and writes hard disk in a thread heavily, how to make it work when idle? Pin
Jijo.Raj1-Jan-09 23:57
Jijo.Raj1-Jan-09 23:57 
QuestionMultithreading Pin
hrishiS1-Jan-09 18:00
hrishiS1-Jan-09 18:00 
AnswerRe: Multithreading Pin
Hamid_RT1-Jan-09 18:09
Hamid_RT1-Jan-09 18:09 
GeneralRe: Multithreading Pin
hrishiS1-Jan-09 18:18
hrishiS1-Jan-09 18:18 
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 

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.