Click to See Complete Forum and Search --> : Swap file size problem


Franklin
March 31st, 1999, 11:27 PM
Can any one help me out to get rid of this problem?


I have developed a windows 95 based MFC application using VC++ ver 4.0 for

PCB diagnosys. In this application I am using different types of data

structures starting from simple arrays upto MFC collections. Also whenever

the user issues a 'Test' command the software will test the board and create

test report for the user. For each board tested, three files are creaed of

size about 10242 bytes each. I know that the smallest space of the hard disk

occupied by a file depends upon the cluster size, which is 32,768 bytes in my

hard disk. But the problem is that the size of swap file created by the O.S

increases abnormally in direct proportion with the no. of boards tested.

And, at one point the system hangs up as its left with very least space in

the hard disk. Please note that I have two partions in my hard disk namely

'C' and 'D' of size 2.0GB each. The software is installed in drive 'D' and

the abnormally consumed space belongs to drive 'C'.


Withe regards,

Franklin.


Please give me a solution.

Orlando
April 1st, 1999, 01:03 AM
Hi,

Do you need to keep the data live after a baord has tested??

can you not join the 3 sets of data per board into a single file of @30K

and save it to disk under for example using the board serial number as the

filename???


Why keep the data live once a board has been tested??? This way when the 100th

board has been tested, the data for the first or second board isn't hanging around using up RAM.


Only a suggestion :)

rafi
April 26th, 1999, 10:34 AM
Hai franklin

Hope ur File has to be deleted
for each testing sice ur using
a rapid type of aplication.

Rafi.




(LookMan)