CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    13

    Swap file size problem



    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.



  2. #2
    Join Date
    Apr 1999
    Posts
    5

    Re: Swap file size problem



    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

  3. #3
    Join Date
    May 1999
    Posts
    19

    Re: Swap file size problem

    Hai franklin

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

    Rafi.




    (LookMan)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured