
May 11th, 2005, 03:48 AM
|
 |
Contributing User
|
|
Join Date: Sep 2004
Location: Romania
Posts: 173
Time spent in forums: 1 Day 45 m 53 sec
Reputation Power: 5
|
|
MultiThreading issue
I'm trying to create a multithreaded application and beside the fact that I have to use Synchronize() everytime I call VCL procedures or set properties (which I got used to) ... I have a big problem ...
While transforming my old app to this new shiny multithreaded one I realised that my old app used some procedures with 5-6 parameters (ex: procedure(par1,par2, ...) and if I try to convert that procedure call to a Synchronize call (ex: Synchronize(procedure(par1,par2, ... ))
Code:
[Error] uThread1.pas(199): Incompatible types: 'TThreadMethod' and 'procedure, untyped pointer or untyped parameter'
Is there anything I can do to avoid that, besides moving the procedure to the main form ?
__________________
If i've been helpful, please add to my reputation.
My unfinished site: http://www.dever.ro
Last edited by SilverDB : May 11th, 2005 at 06:55 AM.
|