PDA

View Full Version : Very interesting Error QFile and QDir



hazad
20th November 2013, 10:36
Hi every body!

I develop a application, and now that is running wrongly and I can’t understand what is going on?

the Problem is i explain step by step below:

1-> Create new personel Data for database : Created Success
2-> Save it to “C:/Program Files<x86>/AYT Enerji Beta2/DataBase/Product” : Saving Success ( I checked it )
3->Load it fom “C:/Program Files<x86>/AYT Enerji Beta2/DataBase/Product” : Loading Success
4->Delete DataBase Folder.
5->I checked wether DataBase folder is exist. Deleting Success ( I checked )
6->Start the application again and when load database, All data is loaded and I can see on my application
7->on console screen I add a piece of code for watch where the application load data from path.
8->on console screen i saw the “C:/Program Files<x86>/AYT Enerji Beta2/DataBase/Product” path.
9-> DataBase Folder should be deleted
10-> I checked again the Folder in explorer, DataBase Folder doesn’t exist but Application load data from this folder and all data correctly and completely come back.

how this can be even if i deleted the folder?

Problem is still going on although i restarted my pc.

http://s18.postimg.org/4yrlxht7d/Ads_z.png

anda_skoa
20th November 2013, 11:24
Are you sure it is the same path? The path in explorer looks different than the one in the console log.
Have you checked on the console or with a different program than explorer?

Cheers,
_

hazad
20th November 2013, 11:29
yes i checked it with xplorer2 program. DataBase doesn't exist still in this program.