.NET Framework error when I mouse over a newly opened file with OR cross sections

This error had already been mentioned in another thread, but I'm creating a new thread because the mention of this error had been a departure from the original post in that thread. With the help and gracious patience of Phil Chuinard, Jan Slegr, and Reginald Wallace, I was able to get rid of it temporarily. 

I'm using Microstation SS3 8.11.09.608 and GEOPAK SS3 .722.

A short review:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Bentley.Civil.Objects.UI.Coordinates.CoordinatesManager.ConstructSmartPoint(DPoint3d coordinates, SnapDescriptor snapDescriptor, DynamicCrossSectionSpace space, ObjectKey key)
at Bentley.Civil.Objects.UI.Coordinates.CoordinatesManager.ConstructSmartPoint(DPoint3d coordinates, SnapDescriptor snapDescriptor, IViewport viewport, ObjectKey key) 
at Bentley.Civil.Objects.UI.Coordinates.CoordinatesManager.ApplyConstraint(DPoint3d coordinates, SnapDescriptor snapDescriptor, IViewport viewport)
at Bentley.Civil.Objects.UI.Coordinates.CoordinatesManager.OnFixPoint(IEditableButtonEvent cursorEvent)
at Bentley.Civil.CadSystem.Microstation.MstnInputManager.OnPointFilterEvent(_dPoint3d* ptP, Int32 viewIndex, Int32 eventType) 
at Bentley.Civil.CadSystem.Microstation.?A0x62071685.inqmn_PointFilterFunction(_dPoint3d* ptP, Int32 viewIndex, Int32 eventType)
at Bentley.Internal.MicroStation.CoreHook.DispatchNoHandler(UInt32* argStack, UInt32 mysp, IntPtr pFunc) 
at Bentley.Internal.MicroStation.CoreHook.Dispatch(UInt32* argStack, UInt32 mysp, IntPtr pFunc)

5141.msdebug.txt

7217.exception.log

The problem occurs when I've just opened a file with an open cross section view. It occurs only when I mouse over that window. A workaround is that I can turn off the view and turn it back on and it works fine.

I repaired the .NET Framework installation.

It was fixed almost exactly a week earlier (maybe it's on a 7-day periodic return) by removing two cfg files from the loading process, loading Microstation, then returning them to the process. Those two files were descartes.cfg and geopak.3.0.cfg.

Update:

In today's case, I turned off only the geopak.3.0.cfg and left descartes.cfg active and it worked.

To be more precise, doing this disabled the window that the cross section view was in. After I closed the program, re-activated geopak, then turned on that window, I closed the program once more. When I opened it, I half-expected the .NET Framework error to be raised again but it didn't.

Any advice on ridding myself of this for good?

Parents Reply Children
  • Was it the same error, Sean, with all the same parameters listed?

    And Michael, where does this "dynamic section view crash" name come from?
  • That's just how the Bentley support was referring to it when we were trouble shooting on my computer. I should also mention the issue appeared to have something to do with windows user account also. This issue has followed me across three different computers now, and we found that if another windows user login was used on my computer the crash did not occur. So, Bentley recommended that my IT department re-create my windows user account from scratch. My IT department doesn't agree that my windows user account can be creating this issue and have not re-created it. I'm left running in one application window until the situation changes.....
  • Derek, It was the .NET error but there were a few extra parameters listed.

    Michael, coming from the support side I agree with your IT department. I can see where something in your windows profile on the computer may cause an issue but to completely remove you as a user from AD (if your company is using Active Directory to create users) and recreate your account is hard to believe.
  • Then perhaps it has something to do with a setting in %localappdata%\Bentley\MicroStation\8.11\. I'm not sure where to begin to advance from there.

    EDIT: As a test, when I renamed the MicroStation folder mentioned above to _MicroStation, I did not get the error we've been discussing. After renaming it back, I did get this error. Any guesses at which file and setting that offends? I'd guess something featuring the key words civil, dynamic, cross section, and view.

    Following this method, I've established that it's not in the .upf that I'm using, and it's not in the civil nor civil_commands folders.

    EDIT: I've renamed everything in the prefs directory with an underscore at the beginning of the name. Apparently none of it makes any difference. The error still comes up. It only does not come up when I've renamed the MicroStation directory (or perhaps any other directory in the path). So I'm not much closer to finding the solution after all. What I just realized is the all the files in the prefs' parent directory. That's my next test.

  • I just did the same thing you tested, except on my computer the path is %localappdata%\Bentley\PowerInroads\8.11\ and I changed it to _PowerInroads. After restarting I didn't have the "dynamic section view crash" occur either (totally surprised me), I'm looking for differences now between the files in the original folder that I renamed and the new %localappdata%\Bentley\8.11\PowerInroads folder that was just re-created.