Sorry that my post was not very clear.
I did not opeen any file, only using the Mappoint .Save() function to save
an html-formatted map to the folder. I guess at this point the newly written
file is still open. It will be ok if I do not attempt to save the same
filename again during a VB runtime session. I need to know how to close the
file completely after saving/writing it to the folder so that I can access
it again during the session.
Thanks
Bill
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oo**************@TK2MSFTNGP09.phx.gbl...
"Bill Nguyen" <bi*****************@jaco.com> schrieb: When my app attempts to save a particular file in
the same VB session, I got an error message . If I
close the app and run again, the file is overwritten ok. I guess I need
to
close the file handle somehow to avoid this error but don't know how.
How do you open the file? Make sure you call the 'Close' method of the
'StreamWriter'/... and dispose image objects based on the file.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>