thanx for the suggestions but i still hvnt been able to solve the problem
:( ... i think it wud help if i explain what i am trying to do... basically
i hv to prevent a file from being accessed by two users (on different pcs)
simultaneously.. so i want to create a temp file as soon as one user
accesses that file.. now when someone else tries to open it, i first check
if the temp file is present or not...if it is, then i dont allow the other
user to access the file... this part is fine... but the problem is removing
the temp file in case the program crashes... coz if the file is not removed
then no user will be able to access it again unless the temp file is
manually deleted....
i tried creating a class which represents this file and tried to delete the
temp file in the dispose function.. but the file wasnt deleted in case of
program crashing...
this is why i wanted to know if there can be temp files created and
destroyed along with a particular process...
thanx again for the help
harsh
"Harsh Vardhan Singh" <ha*******************@yahoo.com> wrote in message
news:O6*************@TK2MSFTNGP15.phx.gbl...
hi,
i am trying to create a temporary file associated with a particular
process. For instance, i have a windows application which will create a
temp file as soon as it this program is executed. Now i want this temp
file to be destroyed if this application is closed / crashes. Is this
possible?
Please help.
Thanks in advance,
Harsh