﻿<?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 when add new</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 10:41:48 GMT</lastBuildDate><ttl>20</ttl><item><title>Error when add new</title><link>http://forum.strataframe.net/FindPost22467.aspx</link><description>Hi,&lt;br&gt;
When I try to add new row, it hit the error below. It only happens with the Business.dll that fix the memory leak problem. Please advice. Thank you&lt;br&gt;
&lt;br&gt;
[codesnippet][NullReferenceException: Object reference not set to an instance of an object.]&lt;br&gt;
   MicroFour.StrataFrame.Business.BusinessBindingSource.BusinessObject_CurrentView_ListChanged(Object sender, ListChangedEventArgs e) +30&lt;br&gt;
   System.ComponentModel.ListChangedEventHandler.Invoke(Object sender, ListChangedEventArgs e) +0&lt;br&gt;
   System.Data.DataView.OnListChanged(ListChangedEventArgs e) +356&lt;br&gt;
   System.Data.DataView.IndexListChanged(Object sender, ListChangedEventArgs e) +27&lt;br&gt;
   System.Data.DataView.IndexListChangedInternal(ListChangedEventArgs e) +75&lt;br&gt;
   System.Data.DataViewListener.IndexListChanged(ListChangedEventArgs e) +60&lt;br&gt;
   System.Data.Index.&lt;OnListChanged&gt;b__2(DataViewListener listener, ListChangedEventArgs args, Boolean arg2, Boolean arg3) +6&lt;br&gt;
   System.Data.Listeners`1.Notify(T1 arg1, T2 arg2, T3 arg3, Action`4 action) +149&lt;br&gt;
   System.Data.Index.OnListChanged(ListChangedEventArgs e) +164&lt;br&gt;
   System.Data.Index.OnListChanged(ListChangedType changedType, Int32 newIndex, Int32 oldIndex) +57&lt;br&gt;
   System.Data.Index.RecordStateChanged(Int32 oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, Int32 newRecord, DataViewRowState newOldState, DataViewRowState newNewState) +230&lt;br&gt;
   System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2) +151&lt;br&gt;
   System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception&amp; deferredException) +4818040&lt;br&gt;
   System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent) +40&lt;br&gt;
   System.Data.DataRow.SetNewRecord(Int32 record) +21&lt;br&gt;
   System.Data.DataRow.EndEdit() +4816925&lt;br&gt;
   System.Data.DataRow.set_Item(DataColumn column, Object value) +338&lt;br&gt;
   System.Data.DataRow.set_Item(String columnName, Object value) +24&lt;br&gt;
   MicroFour.StrataFrame.Data.DataBasics.InitializeNewRow(DataRow NewDataRow, StringCollection IgnoredFields, Dictionary`2 FieldNativeTypes) +231&lt;br&gt;
   MicroFour.StrataFrame.Business.BusinessLayer.NewRow() +529&lt;br&gt;
   MicroFour.StrataFrame.Business.BusinessLayer.Add(Boolean CheckSecurity) +127&lt;br&gt;
   Vfs.Generic.UI.Web.Strataframe.Forms.DataEntryBasePage.Add(Boolean checkSecurity) +34&lt;br&gt;
   Vfs.Generic.UI.Web.ExtendedControls.MaintenanceToolbar.HandleMenuItemClick(Object source, MenuItemEventArgs e) +471&lt;br&gt;
   DevExpress.Web.ASPxMenu.ASPxMenuBase.OnItemClick(MenuItemEventArgs e) +78&lt;br&gt;
   DevExpress.Web.ASPxMenu.ASPxMenuBase.RaisePostBackEvent(String eventArgument) +326&lt;br&gt;
   DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10&lt;br&gt;
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13&lt;br&gt;
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175&lt;br&gt;
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565&lt;br&gt;
&lt;br&gt;
[/codesnippet]</description><pubDate>Mon, 30 Mar 2009 04:22:41 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Error when add new</title><link>http://forum.strataframe.net/FindPost22513.aspx</link><description>Hi,&lt;br&gt;
Sorry, it is my mistake. It is working fine at this moment after I replaced the latest Business.dll.&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Mon, 30 Mar 2009 04:22:41 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Error when add new</title><link>http://forum.strataframe.net/FindPost22482.aspx</link><description>The one thing that is common, even for me, is to go after a new release when something begins to fail.&amp;nbsp; However, the change that we made has nothing to do with an add in any way.&amp;nbsp; We changed the enumerator which is only used in two places in the framework.&amp;nbsp; 1.) When using a BO through a BBS or WBBS 2.) When using the GetEnumumerator() on the BO.&amp;nbsp; Neither of these have anything to do with adding a new record.&lt;/P&gt;&lt;P&gt;Additionally, we have actually pushed this release out into the field on our medical product and there are no issues, especially in this area.&amp;nbsp; &lt;/P&gt;&lt;P&gt;At this point, the only thing I can recommend is a sample that reproduces the error.&amp;nbsp; You can change the sample that you sent previously with this change.&amp;nbsp; But adding a new record and the change we made should not have anything to do with each other.</description><pubDate>Fri, 27 Mar 2009 08:54:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error when add new</title><link>http://forum.strataframe.net/FindPost22475.aspx</link><description>Hi,&lt;br&gt;
No, it is not adding in grid. However, I have grid that bind to same BO in same aspx which another tab. &lt;br&gt;
I have 2 tab pages, 1st tab page contains grid is to allow user to select/filter record. User can click a link in column to show record details. once clicked, it will switch to data entry page to show record details using AJAX UpdatePanel. After that, user click on new button to add new record, aspx is postback and error posted occurred. Also FYI, this was working all the time before using the fix memory leak business dll.&lt;br&gt;
&lt;br&gt;
Please advice. Thank you</description><pubDate>Thu, 26 Mar 2009 09:02:13 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Error when add new</title><link>http://forum.strataframe.net/FindPost22472.aspx</link><description>How are you adding a new record?&amp;nbsp; Is this in a grid?&amp;nbsp; Can you provide more detail plase?</description><pubDate>Thu, 26 Mar 2009 07:54:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>