hi,
once I had a problem with threads in a non-threaded application (!),  
because Windows (each version in its own way!) creates threads anyway  
to speed up (and crash) loading time, the problem was an incorrect  
version of a self-registering DLL, that's not what you get here but  
the timing is the same, you can do nothing on Delphi IDE or on your  
code because the error appears before any code is executed; I found  
the problema using MadExcept, you can try this or Eurekalog.
Carlos

Quoting Paul Bennett <[EMAIL PROTECTED]>:

> 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.
>
>



Reply via email to