John:
Sorry I wasn't so clear. It only adds text to the textbox when their is valid
data in the register. The text box should (and does) only accumulate 5-6
lines of text in it over any 3-4 hour period...
...my code poles every 10 seconds but only adds text when necessary...
thanks,
russ
Quote:
>Russell,
>With the statement " text1.text = text1.text & newtext & vbCrLf" in the
>application, you're going to run into a problem at some point. The textbox
>is going to fill up. If every 10 seconds your adding text1 to text1 even
>if you only get 1 register result it's going to multiply...
>John
>> Hi:
>> My current project seems to eat memory when it runs for long periods
>(over
>> night). I'de appreciate any pointers etc. after you read the following
>> description of my project and problem.
>> My project is a small program that poles a com port every 10 seconds
>(using
>> timer control). It reads a register from an isdn terminal adapter and if
>that
>> register has a certain value it will read several other registers and
>display
>> the results in one of two text boxes on my form (caller id program).
>> All that is on my form are the two text boxes...they are simply updated
>with
>> text1.text = text1.text & newtext & vbCrLf.
>> Before I start my program I check CPanel/System/Performance tab and it
>reports
>> 97% free resources. After I start my program I check again and it
>reports 92%
>> free resources. I let the program run for several hours and check it
>> again...still 92%.
>> What could be happening overnite? My hard drives spin down after an hour
>or
>> so...could this somehow affect my program?
>> My code has several subroutines and functions...several are
>public...nothing
>> unusual. I thought that after a sub was called its temporary variables
>where
>> destroyed?
>> thanks,
>> russ
>> --------------------
>> Russell W. Patterson
>> Tennessee Valley Authority
>> Transmission/Power Supply, System Protection
>> Chattanooga, Tennessee, USA (Eastern Time Zone)
>> phone: 423-751-6857, fax: 423-751-2110
>> --> sci.engr.electrical.sys-protection <--
>> http://www.tva.gov/progroup/seesuse/homepage.htm
--
--------------------
Russell W. Patterson
Tennessee Valley Authority
Transmission/Power Supply, System Protection
Chattanooga, Tennessee, USA (Eastern Time Zone)
phone: 423-751-6857, fax: 423-751-2110
--> sci.engr.electrical.sys-protection <--
http://www.tva.gov/progroup/seesuse/homepage.htm