SQLite and File access problem
as part of routine i'm doing, i'm making copy of db if user simple save (for backup purposes). use sourcefile.copyto( destination, true ); , works fine. however, after i'm trying sourcefile.movetotrash (or delete, either one) , keep getting 3013 error, indicating file in use, assume. before trying delete file, i've closed connections db , have no filestreams open anywhere. i've tried doing deleteasync() , doesn't trick either.
any suggestions on avoiding 3013 error when go delete existing file? i've tried calling sourcefile.cancel() nothing.
finally got not closing connection setting null, deleting file, creating new connection.
More discussions in Archived Spaces
adobe
Comments
Post a Comment