Am I right in thinking that, if you are using a separate thread to perform a process it should not call any code in the main thread?
I have a situation where a process is consuming a lot of time so have moved it into its own thread, however the problem is that the process requires a lot of the variables held on a datamodule attached to the main form. Some are plain variables others are calculated properties but all are static in that they are determined when the application starts and then do not change. The question I have is, if I refer to the variables on the main form am I then tying the thread back into the main thread, thus removing any potential gain? I have only really played with threading in the past so don't have an instinctive feel for it yet. Also would the answer be different if just accessing say integers as opposed to calculated properties? Michael Darling Solution Developer ROOM Solutions Ltd mailto:[EMAIL PROTECTED] -------------------------------------------------------- Room Solutions Limited is a leading supplier of solutions and services to non-life commercial insurance markets. Room Solutions Limited is registered in England and Wales with company number 2503575. Its registered office is at 100 New Bridge Street, London EC4V 6YA, United Kingdom. CONFIDENTIALITY NOTICE/DISCLAIMER This email and any attachments are confidential, protected by copyright/intellectual property rights and may be legally privileged. The information transmitted is intended only for the person or entity to which it is addressed. If you are not the intended recipient, dissemination or copying of this email is prohibited. If you have received this in error, please notify us by forwarding this email to the following address: [EMAIL PROTECTED] , and then delete the email completely from your system. This email and any attachments have been scanned for computer viruses by a market leading anti-virus system. However, it is the responsibility of the recipient to conduct its own security measures. No responsibility is accepted by ROOM Solutions Limited for loss or damage arising from the receipt or use of this email and any attachments. No responsibility is accepted by ROOM Solutions Limited for personal emails. ROOM Solutions Ltd, http://www.roomsolutions.net -------------------------------------------------------- ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

