 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Detlef Stute Guest
|
Posted: Mon Jul 21, 2003 12:23 pm Post subject: Re: graphics not displaying after recieving data from serial |
|
|
Hi Bruce,
do you draw into the canvas or status bar in the thread? Than you have to
use the function Synchronize().
Detlef
"Bruce Larrabee" <zorwizard (AT) lycos (DOT) com> schrieb im Newsbeitrag
news:3F179658.9020301 (AT) lycos (DOT) com...
| Quote: |
I'm using draw methods like MoveTo and LineTo to draw on a Canvas.
I'm recieving data through a serial port from a digitizer. The port is
in a seperate thread.
Under WindowsXP, after the first byte comes in from the serial port all
the graphics drawn on the Canvas disapear and it is no longer possible
to draw to the Canvas. (you can draw but nothing ever appears again)
No other part of the program seems to be affected. For example the data
from the serial port still appears in the status bar, in real time.
There has never been any problem using Win98 or Win95.
Can anyone help?
Bruce Larrabee
|
|
|
| Back to top |
|
 |
Bruce Larrabee Guest
|
Posted: Tue Jul 22, 2003 3:49 am Post subject: Re: graphics not displaying after recieving data from serial |
|
|
Thanks much for your response... B) I've been studying this and your
suggestion makes a lot of sense. (I had the same thought this weekend.)
I'm going to try that as soon as I get back on the digitizer, probably
tomorrow. This code has always worked fine under Win98? But I'll
definitely try this tomorrow. I'll post my results.
Oh, btw, the status bar displays the X, Y & Z coordinates from the
digitizer, and that still is working fine... But that code doesn't
actually get called from the I/O thread. The drawing code, drawing to
the Canvas does get called from the I/O thread. Very perceptive of you.
Have you done this sort of thing?
Thanks,
Bruce
|
|
| Back to top |
|
 |
hongbin.fei Guest
|
Posted: Fri Oct 10, 2003 8:10 am Post subject: Re: graphics not displaying after recieving data from serial |
|
|
Use TCAD at:
http://www.codeidea.com
"Bruce Larrabee" <zorwizard (AT) lycos (DOT) com> ????
news:3F1CB44D.8030105 (AT) lycos (DOT) com...
| Quote: | Thanks much for your response... B) I've been studying this and your
suggestion makes a lot of sense. (I had the same thought this weekend.)
I'm going to try that as soon as I get back on the digitizer, probably
tomorrow. This code has always worked fine under Win98? But I'll
definitely try this tomorrow. I'll post my results.
Oh, btw, the status bar displays the X, Y & Z coordinates from the
digitizer, and that still is working fine... But that code doesn't
actually get called from the I/O thread. The drawing code, drawing to
the Canvas does get called from the I/O thread. Very perceptive of you.
Have you done this sort of thing?
Thanks,
Bruce
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|