Microstation V8i SS3 8.11.09.608, Geopak SS3 .722
When I open a fresh instance of Microstation. I select the file to work in. All my tools appear and even Civil AccuDraw comes up. And then this error.
************** Exception Text ************** System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.ListControl.set_DataSource(Object value) at System.Windows.Forms.ComboBox.set_DataSource(Object value) at Bentley.DesignLinksApp.ProjectDialog.ReloadProjectPicker(Boolean setActiveProject) at Bentley.DesignLinksApp.DesignLinksApp.TreeListSourceChanged(Boolean SynchWithActiveProject) at Bentley.DesignLinksApp.DesignLinksApp.OnNewDesignFile(AddIn addIn, NewDesignFileEventArgs __unnamed001) at Bentley.MicroStation.AddIn.NewDesignFileEventHandler.Invoke(AddIn sender, NewDesignFileEventArgs eventArgs) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at Bentley.Internal.MicroStation.EventHandlerSet.Fire(Object eventKey, Object sender, EventArgs e) at Bentley.MicroStation.AddIn.raise_NewDesignFileEvent(AddIn sender, NewDesignFileEventArgs eventArgs) at Bentley.MicroStation.AddIn.generateNewDesignFileEvent(SByte* filenameP, Int32 when) at Bentley.Internal.MicroStation.CoreHook.DispatchNoHandler(UInt32* argStack, UInt32 mysp, IntPtr pFunc) at Bentley.Internal.MicroStation.CoreHook.Dispatch(UInt32* argStack, UInt32 mysp, IntPtr pFunc)
8625.Exception.log, 4405.msdebug.txt
When I click continue, of course the automatic reporting windows come up. And then if I click to ignore, it continues to work normally.
This began just this morning. When I left my computer last night it seemed to be fine.
I've found that this error is raised each time I open a different file.
Also, I've uninstalled Microstation and Geopak and reinstalled both. The error persists, so it must be in the files that persist after an installation is removed.
I've established that if I don't load one of my APPL cfgs, this exception is not raised. This cfg is one provided by my state. This cfg consists of only a few lines which set the preferences and a few other variables. It looks like the offense was in my user preference file. I can only wonder what the problem was. If I ever find out I'll try to remember to pass it on.
If the source was any internal (and invisible) corruption, it was dispelled by clicking on the Defaults button in the Workspace > Preferences window and saving.
After taking some screenshots for simplicity in getting back to my old preferences, I was able to set all of the ones that mattered to me and it works fine again. The offending setting must have been deep in some other preference tabs and trees that I don't need (that I know of).
For posterity, and in case anyone is interested to see whether this triggers anything on their own system: rwd (offending).upf
Somehow this is a workaround--deleting the upf and replacing it with the default one as Microstation loads. But from what I can tell, it doesn't last forever.
As noted, here was my process: