PDA

View Full Version : Not enough space to save file



^NyAw^
24th May 2010, 12:48
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,

ChrisW67
24th May 2010, 23:14
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.