I have a weird problem
I made a function that allows me to select all the entities on a certain layer. This function has been working perfectly for a while (I use it very often).
Today, I wrote a simple program to manipulate the text elements on a certain layer.
Every time I try to run my program, it crashes and I get the following error message:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The program crashes in the function to select the items mentioned above after the following line of code:
Dim bt As BlockTable = myT.GetObject(db.BlockTableId, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead, False)
I tried to copy the text elements in a new DWG but I still get the same error message.
Any idea?