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>