Rohit,
  no, not true at all....

  When you receive WM_TIMER messages, they come in through the app's message
loop which is running in the main VCL thread.

  You can run into the problems to (which I believe) you allude if you you
use SetTimer with a null window handle and use a callback proc instead, but
very few programs use this kind of timer.

HTH
Trevor

----- Original Message ----- 
From: "Rohit Gupta" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 25, 2004 4:46 PM
Subject: [DUG] Critical Sections


> When a windows timer (created with SetTimer) is used with a non-
> visible window (created with AllocateHWnd).  It receives
> WM_TIMER messages...  Is it safe for this method/event to access
> the VCL ?
>
> It appears to me that this should be using entercriticalsection for the
> RTL.  Is this true ?
> Regards
>
> Rohit
>
> ====================================================
> ==================
> CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New
> Zealand
> PH    (649) 489-2280
> FX    (649) 489-2290
> email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> ====================================================
> ==================
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to