Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: marin_israel

I'm not sure.  This would be going into the fringe/fuzzy area of my programming knowledge.  Although I have been writing iLogic rules and VBA macros for many years, and have Visual Studio installed, I don't have much add-in programming experience, due to corporate restrictions (no employees have admin rights on their own PC's).

I have used some basic techniques to release references in the past, but I'm not really a 'master' programmer by degree or profession...I've just learned a lot over the years through research/exploration as needed to accomplish specific automation goals.

I doubt doing something as simple as oView = Nothing, after your done with variables would do the trick, that would be too easy.  So here are a few related links I've bookmarked along the way that may or may not help in this situation.  (These are Microsoft websites, so you'll need to change the C# drop-down near the top right corner of the pages to VB.)

Marshal.ReleaseComObject(Object) Method 

Object Lifetime 

IDisposable.Dispose Method 

https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/nothing 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)