Dear Paul,

   Have you tried to moved your declaration of thread to 
AfterConstruction of the form ?
because creating a Thread on construction form is some times could 
caused you a pain why ? because it is possible that the thread accessing 
variable that
possible not created yet.so it is better safe to create the thread on 
AfterConstruction Procedure or.. u can create a trigger from the form 
ex: when showing the form then create the thread.

regards,
Eddy Wijaya


VCL,Tips,Snippet All Delphi And Codegear Related Could Be Found here
http://www.alldelphi.com

Paul Bennett wrote:
>
> Hi All,
> Can anyone help with this one?
>
> I have an application written using D7 Ent. which runs fine on XP and
> 98SE. Currently the application loads its data from a CD, but the
> powers that be have decided that they would like to network the
> application and download the data periodically across the LAN.
>
> In order to achieve this I have created a small helper class
> (TAutoDownload) which is owned and created by the main form. This
> helper class is created during the Form Creation procedure and freed
> by the Form Destructor.
>
> TAutoDownload contains 2 TThread objects, 1) a Timer Thread, and 2)
> the thread that handles the actual download of the Data Files. Both
> threads are created as and when required by the Class.
>
> The new application works fine when running on XP, but as soon as I
> try to run it under 98' it crashes with the following error:
>
> Error Creating Form: Thread Error: The Parameter is incorrect (87).
>
> As far as I can tell this error occurs during the Main Forms Creation
> (but before any of the FormCreate code executes - ie the code never
> gets as far as a breakpoint on the first line of the FormCreate
> procedure).
>
> I've done a Google on TThread Errors, Delphi 7 and Win98, but the only
> hit that seems to be relevant refers to bug in the TThreads destructor
> method. I have implemented the suggested change, but it has had no effect.
>
> Any ideas would be very welcome.
>
> TIA
>
> Paul.
>
> 
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 270.4.0/1508 - Release Date: 6/18/2008 
> 9:08 PM
>   

Reply via email to