Board index » cppbuilder » CriticalSection() ??
Dumboo
![]() CBuilder Developer |
CriticalSection() ??2003-11-21 01:57:36 PM cppbuilder38 hi there i m having multiple thread running which are calling some member function of Main Form without using Synchronize/Critical Section since the member function does not uses any of the VCL/CLX Components all it does depending upon certain states display appropriate MessageDlg(..) which is occasionally giving problem similar to the one when we dont use Synchronize(..) while accessing VCL members, eg: "Canvas does not allow drawing" maybe the root of my problem, lies in not using Synchronize, is it so ? any suggestion y ?? also can i use TCriticalSection instead of Synchronize(..) i know i could have tested it myself, but since the bugs appear occasionally(rarely), i thought it better to ask here also regards -Dumboo |