[fpc-pascal] Can't close and reopen ptcgraph
Stefan V. Pantazi
svpantazi at gmail.com
Fri Jun 23 18:17:56 CEST 2017
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, the ptc thread is not properly terminating for some reason.
On 06/23/2017 11:20 AM, James Richters wrote:
> 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. test program is below. If I comment out ptcgraph and
> ptccrt and uncomment graph and wincrt, it works as expected.
More information about the fpc-pascal