Results 1 to 2 of 2

Thread: About File write operation

  1. #1
    Join Date
    Feb 2007
    Posts
    63
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default About File write operation

    Hi all,
    I have an application in whhich i have to contineously write binary data in a file.
    This appliocation is to be run for more than one hour and so the file size will be more.

    Now when i was running the application i found that my RAM space is contineously decreasing as i am performing the file operation and the system hangs once the RAM is full.

    My doubt is that when the file write operation is done, is it first wriiten to RAM and then while closing the file it is copied to Harddisk or is some other way.?????????

    how do i solve the problem.

    Regards
    Raghvendra

  2. #2
    Join Date
    Oct 2007
    Posts
    7
    Thanked 1 Time in 1 Post

    Default Re: About File write operation

    The frequency of writing data back to the file is dependent on the operating system and the hard-disk driver, but at any case it uses the RAM only as a buffer; it shouldn't fill up the RAM.

    My guess is that you keep everything in memory after you wrote it, instead of discarding written data. You might have another kind of memory leak. At any rate, I don't think it's the writing to disk that hangs your system.

Similar Threads

  1. structures to a file (read and write)
    By baray98 in forum Qt Programming
    Replies: 5
    Last Post: 10th February 2008, 20:12
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. FSWriteFork in MAC OS to write data to a file.
    By vishal.chauhan in forum General Programming
    Replies: 5
    Last Post: 2nd July 2007, 06:48
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. who can give me a tutorials of write .pro file
    By fengtian.we in forum Qt Programming
    Replies: 5
    Last Post: 20th May 2007, 16:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.