Stack overflow solution

Hi,
I had a problem, but found a solution; so why this post.
it is just to informe users but also the Suomi developer.

I use a PCS500 with sw version 1.2 from a long time ago, and it worked fine.

When I wanted to use more I tried to use the Excel and VB options.
But it did not work on V1.1.

So I downloaded V4.03; and yes the excel example worked; but only for 40 minutes.
After that time the message “Oscilloscope stack overfow” was diplayed and the the program freesed and halted.
I tested this over and over again, on several PC’s and operating systems with thesame result.

The message " Stack overflow" is an error which occurres when a sw loop is not terminated as it should be,
and is re-started over and over again, until the normal buffer dimensioned for it is full.
So, the software written has got a major bug.

My interest is to use the unit and the xxx.dll for my own perpose, so I have googled to find older versions of the program without the bug.
I never had problems with my vintage version 1.1.
However this version does not give me the VB/Excel uses.

On the internet I found an older version 1.34 and this one is working ok.
No freeses or stalls and no “stack overflows” .

So, something has gone wrong between V 1.34 and 4.03

I hope this information will help.
best ragards,
Michiel Vtrac Klaassen.

In Brief;
V1.1 from 2001; ok but no VB/Excel support
V1,34 from 2003; ok and also Vb/Excel support


V4.03 from 2003; “stack overflow” error after 45 minutes in normal use: in that short time there is VB/Excel support.

Thank you for the feedback.

[quote=“spector”]So, something has gone wrong between V 1.34 and 4.03

I hope this information will help.[/quote]Indeed, the information helped!
Now the problem is located to this version:
2.05 from 2007:
The cause to the problem was this modification:
“CPU usage in Run and Single mode reduced.”

The problem seems to be related to a special high resolution Delphi timer component.
This timer is normally used to give precise time base for the transient recorder.
In the PCS500 this timer component was also used to control the data acquisition process and display update in the oscilloscope mode. For some strange reason there can happen memory leak as a side effect.

In the oscilloscope mode the memory leak seems to stop if the “Run” button is released for a moment and pressed again.

Now the problem is fixed.
The display update is done using a standard Windows timer.
Here is the link to download updated version:
box.net/shared/c9nis5ro05if3oop9ptk