AnsweredAssumed Answered

Attempted to read/write protected memory

Question asked by Joseph Regan on Sep 10, 2015
Latest reply on Sep 11, 2015 by Simon Turner

Good Afternoon,

I have a program that has worked for several years that analyzes all dimensions of a drawing.


In a particular drawing, the system runs through 4 dimensions before it crashes with a

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt." error.


I have recently upgraded to solidworks 2015.

The DLL version is


Here is some code:


swDispDim = swView.GetFirstDisplayDimension5

swDim = swDispDim.GetDimension

swTol = swDim.Tolerance


if swTol.Type = Nothing Then  <--------------- On the fourth dimension, this is where the Read/Write error will occur, when trying to read the value of swTol.Type


Any Ideas?

Thank you very much for your time!