Business Object causing Visual Studio IDE to crash


Author
Message
Michael Cobb
Michael Cobb
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 26, Visits: 1K
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!

Replies
Michael Cobb
Michael Cobb
StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)StrataFrame Novice (50 reputation)
Group: Forum Members
Posts: 26, Visits: 1K
I understand what you are saying but this is just a generated BO with no additional code being dropped on a brand new SF Maintenance Form that contains only SF generated code itself.  I'm not using any custom control other than SF controls and there is no custom code in the BO in order to perform a data read.  If I simply change the name of the column I created in verification Step 2 in my previous post, the IDE does not crash.  If I change it back, the IDE crashes.  In each case, the steps I go through are identical.

To give you some more detail, the steps I took to recreate this are exactly the same as in your tutorial with the only difference being that I added a column called Locked (when the IDE crashes) and LockedTst (when it doesn't crash) to the Customers table in the StrataFrame sample database before beginning Tutorial_Win_VB_2 (Adding a Business Object).  I am able to successfully complete this tutorial with no problems.  I skipped Tutorial_Win_VB_3 and resumed at the beginning of Tutorial_Win_VB_4 (Adding a Form) using the same project.  When I begin Tutorial_Win_VB_5 (Adding Controls & Binding Data) with the same project and get to Step 3, as soon as I drop the CustomersBO item on the CustomerMaintenance form, the IDE crashes.

This is why I based my assumption that the problem must be related to something in SF-- you should be able to reproduce it there as well.  Would you be willing to try adding a column called Locked to your Customers table and run through your tutorials as I did?

If you weren't able to reproduce it at your end I would be surprised. 

Thanks!

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Can you supply a sample versus us going back and forth over the forum?  It would probably speed things up.  Thanks. Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search