I have a DLL called CommonBOs.DLL containing over 60 business objects. One of the BOs in that DLL is called PropertyBO.
In Visual Studio 2005 SP1, I have a VB2005 StrataFrame project with a form that contains an instance of PropertyBO. Whenever I display the form in design mode the IDE crashes.
I rebuilt and cleaned the project multiple times with the problem continuing to occur.
I started another instance of Visual Studio and attach it to the instance that crashes and sent the debug code to the new instance. I receive the following message.
System.Reflection.TargetInvocationException was unhandled
Message: Property accessor 'Locked' on object 'PropertyBO1' threw the following exception:'The CurrentRow could not be evaluated because the CurrentRowIndex is out of range. Business object record count: 0. CurrentRowIndex: -1.'
I've rebuilt the business objects, recompiled the DLL and replaced the original DLL in the project. If I remove the old and drop the new PropertyBO on the form it causes the same problem. I can reproduce the problem by clicking on the PropertyBO1 instance in design mode. If I drop other BOs from the DLL onto the form no crash occurs.
So far I haven't noticed the IDE crashing unless I'm displaying the form in Design mode.
Any ideas on how to troubleshoot this further?
Thanks!