On Sunday 05 March 2006 08:43, A.J. Venter wrote:
> Well since my last mail on this a few weeks ago, I have made quite a bit of
> progress in my attempts to create a component that will allow me to call a
> tprocess in a thread while retrieving the output "live".
>
> The structure I have no compiles, and can be placed on a form - it is all
> but right. The only trouble is - when I call the run method, it throws an
> access violation, the stack trace places it at line 76 (the line where I
> call FProcessThread.resume), I did a check and the first line of the
> execute method does not ever get executed.
>
Mmmm, I think I know now why this is happening, though now I have even LESS of 
an idea how to prevent it.
I instantiated TProcessThread directly in a test program (obviously this left 
me with no events or such but I was just trying to see if it worked) when I 
call TProcessThread.Create the program dies with error 232 complaining that 
there isn't a thread driver.
I checked the lpr, it calls cthreads. I checked lazarus.pp - that too calls 
cthreads, the only thing I can imagine is that I must somehow call cthreads 
in olpack, putting it in olpack.lpk doesn't work - lazarus recreates the file 
on compile/save apparently, putting it in runinthread.pas doesn't  work 
(probably because it's not early enough in the uses clause) - leaving me 
unable to determine where I SHOULD add it - or is this the IDE telling me 
that what I am trying to do is simply not possible ?

TIA
A.J.
-- 
"there's nothing as inspirational for a hacker as a cat obscuring a bug 
by sitting in front of the monitor" - Boudewijn Rempt
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to