I wrote a macro to create a BOM and then it was then sorted. This was created as .vbproj and then I used build to create a .dll file which the macro could run from. It worked fine on my old PC and now I've upgraded i am getting this error.
"System.AccessViolationException was unhandled by user code
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Also I have noticed if I am running this macro from Microsoft Visual Studio for Applications then this macro doesn't stop debugging and I have to hit stop. This wasn't something that used to happen so any idea why that is happening as well?