Results 1 to 2 of 2

Thread: Not enough space to save file

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Not enough space to save file

    Hi,

    I have a code that writes a Project configuration into a XML file. If there is no space available to save it, the application crash. I've searched Qt doc to find some solution but I didn't find it.
    Note that I'm not able to know the space needed to save the configuration because it can store binary data into it that makes it grow.

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Not enough space to save file

    There are many ways to write to a file. You will need to post a small example that demonstrates the problem. All of the Qt functions I am aware of fail gracefully on out-of-space conditions.

Similar Threads

  1. Save model to file
    By matulik in forum Newbie
    Replies: 4
    Last Post: 11th May 2010, 23:02
  2. How to save an image (png) into a xml file
    By richardander in forum Qt Programming
    Replies: 8
    Last Post: 9th October 2009, 09:57
  3. Replies: 1
    Last Post: 26th July 2009, 15:08
  4. Restrict user from entering space in Save As File Name
    By jyoti kumar in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 12:47
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

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.