As usual, your suggestion solves the problem. Once I freed the 2 datasets(both use the same ".db" file) I know was used before the execution reaches the zip routine, the error with access rights disappear. In this aspect, trouble is solved, thank you.
The application has various methods that allocate open a TSQLDataset that points to the same ".db" file I'm pretending to save in my zip routine. All of these methods are closed with Close method. Depending on user options I'm thinking that I will have various copies of TSQLite3Dataset created and open. Am I right? If affirmative, how you suggest I control the execution to allow me apply the Free method on each of these TSQLite3Dataset copies? And later apply the Create again if the user return to one of those methods that allocated a copy of TSQLite3Dataset and are(the method) created in memory? Maybe my programming technique must be changed... Or what? Cheers Ricardo ----- Original Message ----- From: Felipe Monteiro de Carvalho Sent: 10/26/11 05:01 AM To: Lazarus mailing list Subject: Re: [Lazarus] Problem with access rights in Windows Mobile? I suppose that Close will close the file conection (correct me someone, if I am wrong) Maybe you would try something more agressive, for example, free all datasets and check if the zip works. Then progressively stop freezing datasets until you find the one causing the problem. (although it should really be the one that use this file, so just testing on it might be just as good) -- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
