>add ptcwrapper to uses list.
Thank you, that worked!
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
add ptcwrapper to uses list.
I get reopengraph.pas(32,23) Error: Identifier not found "TPTCWrapperThread"
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
I thought I would try to get my demo program to work. When I try to compile it
with
//manually create the ptcwrapper thread
PTCWrapperObject := TPTCWrapperThread.Create;
I get reopengraph.pas(32,23) Error: Identifier not found "TPTCWrapperThread"
Demo program below... Any ideas?
James
{$mode
>As a workaround, you can manually take care of the ptcwrapper object like
>this, in between closegraph and initgraph calls, but first ask yourself, do
>you really need this?
Thanks for figuring out what is going on. I don't really need to close it and
reopen it. I can work around by just hidi
I think I figured it out. It hink ptcgraph was not designed with that
functionality in mind. If you take a look at the ptcgraph unit, it has
initialization and finalization sections where the ptc wrapper object is
created and freed. That happens only at application start and finish not
during r
On Linux 64bit, reopening of a second window works fine, as expected. On
Windows it does not, and behaves as you reported. This is most likely
related to the use of a separate thread (TPTCWrapperThread) in ptcgraph.
As far as I know graph and wincrt do not use threads. I suspect that on
windows
I ran into an unexpected issue with ptcgraph. If I use closegraph, I cannot
re-open a new ptcgraph window with Initgraph. It looks like it opens the
second graph window but then closes it immediately after.. my program is
then appears to be locked up after this happens.. no errors, just locked up