Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron5-Aug-08 19:07
ptr_Electron5-Aug-08 19:07 
GeneralRe: Timer is getting frized on a particular functin call Pin
Naveen5-Aug-08 19:17
Naveen5-Aug-08 19:17 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron5-Aug-08 19:29
ptr_Electron5-Aug-08 19:29 
GeneralRe: Timer is getting frized on a particular functin call Pin
Naveen5-Aug-08 19:36
Naveen5-Aug-08 19:36 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron5-Aug-08 20:09
ptr_Electron5-Aug-08 20:09 
GeneralRe: Timer is getting frized on a particular functin call Pin
Naveen5-Aug-08 20:14
Naveen5-Aug-08 20:14 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron5-Aug-08 21:43
ptr_Electron5-Aug-08 21:43 
AnswerRe: Timer is getting frized on a particular functin call Pin
Jijo.Raj5-Aug-08 19:09
Jijo.Raj5-Aug-08 19:09 
ptr_Electron wrote:


it is woking fine untill a specific function call is reached. and during the execution
of that function, say for about 1 min, the OnTimer is not called, after the function call, it is working
normally.


Because your gui thread is busy in your function call. Only after that next message from message queue will be processed.

If the timer event is so critical for you, better go for waitable timer kernel object. You've to spawn a new thread and should wait for the timer on that thread. This link might be helpful -
http://msdn.microsoft.com/en-us/library/ms687012(VS.85).aspx[^]
http://www.adp-gmbh.ch/win/misc/timer.html[^]

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron5-Aug-08 21:29
ptr_Electron5-Aug-08 21:29 
GeneralRe: Timer is getting frized on a particular functin call Pin
Jijo.Raj5-Aug-08 21:51
Jijo.Raj5-Aug-08 21:51 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron6-Aug-08 1:38
ptr_Electron6-Aug-08 1:38 
GeneralRe: Timer is getting frized on a particular functin call Pin
ptr_Electron6-Aug-08 3:05
ptr_Electron6-Aug-08 3:05 
Questioninterface to proxy object in COM Pin
George_George5-Aug-08 16:30
George_George5-Aug-08 16:30 
AnswerRe: interface to proxy object in COM Pin
Stephen Hewitt5-Aug-08 16:59
Stephen Hewitt5-Aug-08 16:59 
GeneralRe: interface to proxy object in COM Pin
George_George5-Aug-08 21:23
George_George5-Aug-08 21:23 
GeneralRe: interface to proxy object in COM Pin
Stephen Hewitt5-Aug-08 21:27
Stephen Hewitt5-Aug-08 21:27 
GeneralRe: interface to proxy object in COM Pin
George_George5-Aug-08 21:43
George_George5-Aug-08 21:43 
GeneralRe: interface to proxy object in COM Pin
Stephen Hewitt5-Aug-08 21:45
Stephen Hewitt5-Aug-08 21:45 
GeneralRe: interface to proxy object in COM Pin
George_George5-Aug-08 21:52
George_George5-Aug-08 21:52 
Questionquestion about bits field structure in C Pin
kcynic5-Aug-08 15:54
kcynic5-Aug-08 15:54 
AnswerRe: question about bits field structure in C Pin
hoxsiew5-Aug-08 16:40
hoxsiew5-Aug-08 16:40 
GeneralRe: question about bits field structure in C Pin
kcynic5-Aug-08 16:56
kcynic5-Aug-08 16:56 
QuestionON_MESSAGE vs linker Pin
greghint5-Aug-08 14:28
greghint5-Aug-08 14:28 
GeneralRe: ON_MESSAGE vs linker [modified] Pin
fantasy12155-Aug-08 15:59
fantasy12155-Aug-08 15:59 
AnswerRe: ON_MESSAGE vs linker Pin
Mark Salsbery6-Aug-08 5:36
Mark Salsbery6-Aug-08 5:36 

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.