S
simchajoy2000
Hi,
I have found that sometimes and usually on an inconsistent basis,
VB.NET projects will hold onto objects after I have disposed of them in
code doing something like:
object.close
object = nothing
A good example of this is an connection object to an Excel spreadsheet
- even after disposing of this object, the project is still holding
onto it and if you try to access the Excel file later, it tells you
that you can only view it in read-only mode because it is being
accessed elsewhere. This is just one example and I have noticed it
periodically with other objects as well. It's beginning to be a
problem and I was wondering if anyone knows how I could go into memory
directly and get rid of the object if it's still hanging out there
after I have disposed of it. Is that possible?
Thanks!
Joy
I have found that sometimes and usually on an inconsistent basis,
VB.NET projects will hold onto objects after I have disposed of them in
code doing something like:
object.close
object = nothing
A good example of this is an connection object to an Excel spreadsheet
- even after disposing of this object, the project is still holding
onto it and if you try to access the Excel file later, it tells you
that you can only view it in read-only mode because it is being
accessed elsewhere. This is just one example and I have noticed it
periodically with other objects as well. It's beginning to be a
problem and I was wondering if anyone knows how I could go into memory
directly and get rid of the object if it's still hanging out there
after I have disposed of it. Is that possible?
Thanks!
Joy