﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Error during deleting BO record in a Form</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:39:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26135.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have a form with a ParentBO and 3 children (I´m using DevExpress grid with BBS).&lt;BR&gt;When I try to delete the record by Form, appears this message below.&lt;/P&gt;&lt;P&gt;I´ve been looking for some configurations on my BOParent or Form and .. Nothing....:crying:&lt;BR&gt;This occurs&amp;nbsp;when BoChildren are filled or not.&lt;BR&gt;&lt;BR&gt;Some help guys?&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------&lt;BR&gt;NullReferenceException&lt;BR&gt;&amp;nbsp; Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Business&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.DeleteChildRecords(Boolean OnlyMarkAsDeleted)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.DeleteCurrentRow(Boolean CheckSecurity, Boolean OnlyMarkAsDeleted)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Delete(Boolean OnlyMarkAsDeleted, Boolean CheckSecurity)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdDelete_Click(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;--------------------------------------------------------------------------------------------------------&lt;BR&gt;</description><pubDate>Mon, 08 Mar 2010 09:20:34 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26329.aspx</link><description>Cool :cool:  Glad you got it figured out!</description><pubDate>Mon, 08 Mar 2010 09:20:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26311.aspx</link><description>Guys, &lt;/P&gt;&lt;P&gt;I discovered what the problem was.&lt;BR&gt;I had a BO configured with a wrong parent... :blush:&lt;/P&gt;&lt;P&gt;Sorry..&lt;/P&gt;&lt;P&gt;Tks again</description><pubDate>Fri, 05 Mar 2010 17:15:29 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26187.aspx</link><description>Good to hear.  Thanks for your help, Ivan! :)</description><pubDate>Wed, 24 Feb 2010 08:48:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26164.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;I tested with a form nears of it and works fine.&lt;BR&gt;Today I will check all configurations before debug SF Source.&lt;/P&gt;&lt;P&gt;Tks</description><pubDate>Tue, 23 Feb 2010 08:17:56 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26154.aspx</link><description>[quote]&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;P&gt;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.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: How can I do that?&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Luiz,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.</description><pubDate>Mon, 22 Feb 2010 12:20:06 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26152.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;P&gt;1. Does this happen when you are not bound to a grid?&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: Primary BO is bound to form and others three BOs are bound to grids.&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;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.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: How can I do that?&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;Or&lt;BR&gt;&lt;BR&gt;3. Create a sample that reproduces the problem and post it so we can look at this ourselves.&lt;BR&gt;&lt;FONT color=#dd3333&gt;R: I´m working in another form to see if this problem occurs.&lt;BR&gt;&lt;BR&gt;Tks&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Mon, 22 Feb 2010 11:11:10 GMT</pubDate><dc:creator>Luiz Lima</dc:creator></item><item><title>RE: Error during deleting BO record in a Form</title><link>http://forum.strataframe.net/FindPost26146.aspx</link><description>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.&lt;br&gt;
&lt;br&gt;
1. Does this happen when you are not bound to a grid?&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
Or&lt;br&gt;
&lt;br&gt;
3. Create a sample that reproduces the problem and post it  so we can look at this ourselves.&lt;br&gt;</description><pubDate>Mon, 22 Feb 2010 09:15:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>