Hello,
I am making a QML application and it loads .mmpk files into a MobileMapPackage to display downloaded data. I have a page where it displays all of the availabe files and allows the user to switch between different .mmpk's. I do this by setting the MobileMapPackage to a new MobileMapPackage item and set the path to the new file. I also allow renaming and deleting of files, given that they aren't currently opened. The problem is when I try to delete or rename a file that I had previously opened since the app was opened, it fails because, as far as I can tell, the .geodatabase file within the .mmpk is still being accessed by my application. I was able to tell, because the recursive delete of the .mmpk deletes everything except for that .geodatabse file. In my testing of this problem, I can clearly see that it is updating the MobileMapPackage and I even tried manually calling the garbage collector, gc(), but that still didn't allow me to properly delete the file. Does anyone know how I could release control from the file?
Thanks,
Keith