Hi Ron,
I make extensive use of the serial control in a couple of my large
applications, and I'm not getting the lockup. Specifically, one of my
apps (<http://www.adpartnership.net/ScopeDriver/>) sends data at
pretty frequent intervals (commands spaced at between 5 and 15 ticks)
to a telescope.
Have you tried commenting out the code that plays the QuickTime
audio, just to isolate this as a contributing factor? Are you keeping
the serial port open the entire time, or attempting to open and close
it each time you write?
Steve
====================================================
== Stephen E. Hutson, AquilaDigital Partnership ==
== http://www.adpartnership.net ==
====================================================
On Feb 11, 2006, at 9:17 p.m., Ron Benditt wrote:
I've got a multi-column listbox with a bunch of data in it. One of
the columns contains "time" data. The other columns contain data
that are to be written to a serial control. I've got a timer that
constantly looks to see if its time to send the data of the next row,
based on the "time" column. When its time to send the data, I change
the list index of the listbox. This in turn, sends the data by a
bunch of serial.write calls in the listbox's change method.
All of this works... for fairly slow time intervals. If my data
needs to be sent very fast (.200 seconds between row times), I've
found that the program will periodically "lock up" for about 10
seconds and then resume. When I say "lock up", I mean that the user
interface does not respond at all during that period, including
button presses, menu selections, and movieplayer controls that are
playing temporarily stop.
Ok... I've got more information to report... The lockup that I see
does not only just occur in my application; it is system-wide. All
application actions halt during this period. Also, at the advice
of Joe Huber, I ran Activity Monitor to get a better idea of what
is going on. When my lockups occur, the cpu activity of the system
spikes to 100%. It is kernel_task that does this. And... there is
always a small spike in the disk read activity. Looking at the
page swaps, it does not appear that memory is being swapped when
this is happening.
I am streaming QuickTime audio in a MoviePlayer control all the
while this is going on. Knowing that MoviePlayer controls read
from the disk as they are playing, I just put in some declares to
make my audio load fully into RAM prior to playing. This was no
help at all. The Activity Monitor shows no reading going on like
there was before, however there is some disk writing going on but
it does not occur when my lockups happen. And the lockups still
happen.
I'm totally at a loss as to why the system activity is spiking.
Could it be an issue with the serial control communicating to the
OS in RB2006 that did not happen in 5.5.5?
Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>