StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Error during deleting BO record in a FormExpand / Collapse
Author
Message
Posted 02/20/2010 9:05:45 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/19/2010 1:51:24 PM
Posts: 66, Visits: 724
Hi,

I have a form with a ParentBO and 3 children (I´m using DevExpress grid with BBS).
When I try to delete the record by Form, appears this message below.

I´ve been looking for some configurations on my BOParent or Form and .. Nothing....
This occurs when BoChildren are filled or not.

Some help guys?

--------------------------------------------------------------------------------------------------------
NullReferenceException
  Object reference not set to an instance of an object.

Source     : MicroFour StrataFrame Business

Stack Trace:
   at MicroFour.StrataFrame.Business.BusinessLayer.DeleteChildRecords(Boolean OnlyMarkAsDeleted)
   at MicroFour.StrataFrame.Business.BusinessLayer.DeleteCurrentRow(Boolean CheckSecurity, Boolean OnlyMarkAsDeleted)
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Delete(Boolean OnlyMarkAsDeleted, Boolean CheckSecurity)
   at MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdDelete_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--------------------------------------------------------------------------------------------------------

Post #26135
Posted 02/22/2010 9:15:08 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
Well, there is not enough information for me to work with here. It almost seems like something is being re-evaluated in the grid, but I cannot tell for sure.

1. Does this happen when you are not bound to a grid?
2. Build the StrataFrame source code in debug mode so that we can at least see a line number which might clue us in. A NullReferenceException is a totally ambiguous exception to work off of here.

Or

3. Create a sample that reproduces the problem and post it so we can look at this ourselves.
Post #26146
Posted 02/22/2010 11:11:10 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/19/2010 1:51:24 PM
Posts: 66, Visits: 724

1. Does this happen when you are not bound to a grid?
R: Primary BO is bound to form and others three BOs are bound to grids.

2. Build the StrataFrame source code in debug mode so that we can at least see a line number which might clue us in. A NullReferenceException is a totally ambiguous exception to work off of here.
R: How can I do that?

Or

3. Create a sample that reproduces the problem and post it so we can look at this ourselves.
R: I´m working in another form to see if this problem occurs.

Tks

Post #26152
Posted 02/22/2010 12:20:06 PM


Strategic Support Team Member

Strategic Support Team Member

Group: StrataFrame Users
Last Login: Today @ 11:07:38 AM
Posts: 1,044, Visits: 13,058

2. Build the StrataFrame source code in debug mode so that we can at least see a line number which might clue us in. A NullReferenceException is a totally ambiguous exception to work off of here.
R: How can I do that?

Luiz,

Install the source code using the EXE provided in the Downloads. Open the StrataFrame source code solution, place it in Debug mode, and then build it. There is a .bat file that will register the DLLs in the GAC.

To place it in Debug mode, have a look at your VS Build menu, and see if you can find the "Configuration Manager..." option. If not, go to Tools, Options, Projects and Solutions, General and check the "Show advanced build configurations". Then, have a look at it and you will find the Debug/Release configuration option.

Post #26154
Posted 02/23/2010 8:17:56 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/19/2010 1:51:24 PM
Posts: 66, Visits: 724
Guys,

I tested with a form nears of it and works fine.
Today I will check all configurations before debug SF Source.

Tks

Post #26164
Posted 02/24/2010 8:48:31 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
Good to hear. Thanks for your help, Ivan!
Post #26187
Posted 03/05/2010 5:15:29 PM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/19/2010 1:51:24 PM
Posts: 66, Visits: 724
Guys,

I discovered what the problem was.
I had a BO configured with a wrong parent...

Sorry..

Tks again

Post #26311
Posted 03/08/2010 9:20:34 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
Cool Glad you got it figured out!
Post #26329
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor, Dustin Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:22am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.