J
James Neave
Hi,
I have an app that holds a FileStream pointing to
/FlashDisk/Data/OSL.txt.
When the handheld performs a download, the data captured by my
application is loaded onto a PC via Bluetooth SPP.
But this file must be kept unique, created on the PC and deleted off
the HHC.
Thing is, no matter what I do, once the application is running, I
cannot delete the file. No matter what I Dispose, Close, Finalize,
Collect or Nullify, the file cannot be deleted programatically or
manually until the last line of the application passes and it ends.
Just so you know:
A static property holds a reference to a class which holds a reference
to a class which holds the StreamWriter, 'Reader and FileStream.
Several other classes get a reference to the OSL Writer through the
Static Property.
But even at the last line of code in the app, when every object has
been explicity Disposed, I still can't delete that file.
I'm still trying to recreate the problem in a simplified app, no luck
so far.
Regards,
James.
I have an app that holds a FileStream pointing to
/FlashDisk/Data/OSL.txt.
When the handheld performs a download, the data captured by my
application is loaded onto a PC via Bluetooth SPP.
But this file must be kept unique, created on the PC and deleted off
the HHC.
Thing is, no matter what I do, once the application is running, I
cannot delete the file. No matter what I Dispose, Close, Finalize,
Collect or Nullify, the file cannot be deleted programatically or
manually until the last line of the application passes and it ends.
Just so you know:
A static property holds a reference to a class which holds a reference
to a class which holds the StreamWriter, 'Reader and FileStream.
Several other classes get a reference to the OSL Writer through the
Static Property.
But even at the last line of code in the app, when every object has
been explicity Disposed, I still can't delete that file.
I'm still trying to recreate the problem in a simplified app, no luck
so far.
Regards,
James.