Thanks for everybody's help.
Yes, I was using a control with Interval value set to 100mS. The subroutine
I mentioned is the timer handler. Maybe I should give a brief description
about what the program doing. Program continuously read data from a COM port
(9600-baud rate) and parses the data with the protocol. The data packages
come from a microprocessor and could be any of following: four channels of
A/D, front panel key strokes, rotary encoder actions and life ticks. All
these are graphically displayed on the screen and refresh with the incoming
data. Every thing worked great except that memory problem. I thought that
was a priority issue I tried to change the process priority to High or even
Real Time. There was no any difference.
Today I tried to change the interval value to 250mS and 500mS. I also
changed the Comm port maximum read count from 20 to 200. That seemed fix the
problem. I will try to use the flag on Tuesday. It is for sure that error
will not appear if I set interval greater than 500mS. But the screen
response would be too slow. I am trying to figure out the minimum Interval
value for the program.
Btw, the program is for hardware testing. It will only run on the platform
we designed. It is a 1GHz Intel compatible VIA processor. I did not have any
threading in my program although I can see process has 11 threads under the
task manager.
I did not create any objects. The program is in old C style because I
thought that is the most efficient way for this type of real time display. I
will keep learning from your suggestions.
I do appreciate your response.
Dave
"Larry Serflaten" <se*******@usinternet.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
"M. Posseth" <mi*****@nohausystems.nl> wrote
So it is always good coding practice to clean up your own mess (...)
I think that this was more what Herfried was mentioning
I think so too, but I was just attemtping to say they shouldn't be
making a mess, in the first place! <g>
If they don't create any objects (in the Tick event) then there won't
be any that need disposing.
LFS