It depends if it was created on another thread. If not, then not an issue. The fact that the window is not visible is not an issue.
Even so it still depends on what is being done. You need to identify if objects are talking across threads, if so then some kind of synchronisation is required. Myles. -----Original Message----- From: Rohit Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 February 2004 16:46 To: NZ Borland Developers Group - Delphi List 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
