Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi, Thank you for source code. I have recompile SF and run my program and able to reproduce my problem again. Below is the call stack, please advice: > SaleBusinessObject.dll!JK.Inventory.Sale.BusinessObject.SaleDetailsBO.SubTotal.get() Line 463 + 0x34 bytes C#
SaleBusinessObject.dll!JK.Inventory.Sale.BusinessObject.SaleDetailsBO.Field_SubTotal_Descriptor.GetValue(object component = {JK.Inventory.Sale.BusinessObject.SaleDetailsBO}) Line 1056 + 0x2c bytes C#
[External Code]
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessBindingSource.OnListChanged(System.ComponentModel.ListChangedEventArgs e = {System.ComponentModel.ListChangedEventArgs}) Line 123 + 0x1b bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessBindingSource.BusinessObject_IsDirtyChanged(Object sender = {JK.Inventory.Sale.BusinessObject.SaleDetailsBO}, System.EventArgs e = {System.EventArgs}) Line 705 + 0x21 bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.raise_IsDirtyChanged(Object sender = {JK.Inventory.Sale.BusinessObject.SaleDetailsBO}, System.EventArgs e = {System.EventArgs}) Line 1071 + 0x21 bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.OnIsDirtyChanged(Boolean DirtyShouldBe = True) Line 1086 + 0x12 bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.CurrentView_ListChanged(Object sender = {System.Data.DataView}, System.ComponentModel.ListChangedEventArgs e = {System.ComponentModel.ListChangedEventArgs}) Line 2431 + 0x10 bytes Basic
[External Code]
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.NewRow() Line 6312 + 0x23 bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.Add(Boolean CheckSecurity = True) Line 7610 + 0xa bytes Basic
MicroFour StrataFrame Business.dll!MicroFour.StrataFrame.Business.BusinessLayer.Add() Line 7580 + 0xe bytes Basic
POSApplication.exe!JK.POS.UI.Windows.Forms.POSForm.AddSale() Line 94 + 0xe bytes C#
POSApplication.exe!JK.POS.UI.Windows.Forms.POSForm.cmdNew_ItemClick(object sender = {DevExpress.XtraBars.Ribbon.RibbonBarManager}, DevExpress.XtraBars.ItemClickEventArgs e = {DevExpress.XtraBars.ItemClickEventArgs}) Line 88 + 0x7 bytes C#
[External Code]
MicroFour StrataFrame UI.dll!MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication() Line 220 + 0x8 bytes Basic
POSApplication.exe!JK.POS.Application.AppMain.Main() Line 40 + 0x6 bytes C#
[External Code] Below is the code at AddSale()
private void AddSale()
{
this.Add();
saleDetailsBO.Add();
}
Thank you
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
OK...if you login to the My Account area, you should be able to see the Source Code Setup for the 1.6.5 beta. This way you can be running on the beta and still get the source code.
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
Chan, There is no reason that we could not publish this code. I need to get it ready on this side and try to have it posted by tomorrow.
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
I have successfully reverted back all SF assemblies. And now my application is working fine. So, I am sure something goes wrong with the latest 1.6.1 as posted at forum. Either my mistake or SF source code bug. How could I clarify this?
I tried to disassembly MicroFour Strataframe Business.dll, but failed
System.IndexOutOfRangeException: Index was outside the bounds [of] the array.
at Reflector.CodeModel.Memory.ParameterDeclarationCollection.get_Item(Int32 index)
at ᜢ.ᜀ.ᜁ(IEventDeclaration A_0)
at ᜢ.ᜀ.ᜃ(ITypeDeclaration A_0)
at ᜢ.ᜀ.ᜀ(INamespace A_0)
at ភ.ᜀ(ITypeDeclaration A_0, String A_1, ILanguageWriterConfiguration A_2)
Imports MicroFour.StrataFrame
Imports MicroFour.StrataFrame.Data
I need to changes of Browse Dialog Date setting. Please help.
Thank you
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
Any possible to get the full source code for 1.6.1 (as posted at forum) so that I could debug?
You helps are much appreciated.
Thank you
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi.
Just curious, any ideas why didn't the error happen in prior version? Anything changed?
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi, > InventoryBusinessObject.dll!JK.Inventory.Product.BusinessObject.ItemsBO.CategoryID.get() Line 452 + 0x2e bytes C# InventoryBusinessObject.dll!JK.Inventory.Product.BusinessObject.ItemsBO.Field_CategoryID_Descriptor.GetValue(object component = {JK.Inventory.Product.BusinessObject.ItemsBO}) Line 1841 + 0x29 bytes C# [External Code] InventoryApplication.exe!JK.Inventory.Application.AppMain.Main() Line 45 + 0x6 bytes C# [External Code] I checked my code again, and found that as you suspected it might be caused by data binding. It works fine If I just
ItemsBO loBO = new ItemsBO();
loBO.Add();
In my project, the error happen at least two fields which :- 1. Bind to SF's check box 2. Custom lookup control inherited from DevExpress lookupedit. How should I check next?
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Is there more to the stack trace, or is what you posted in the first post all of it? I'm wondering if we could get back to what is causing the binding to update immediately after you add the new row... the binding shouldn't be updating until after all of the values are initialized and the SetDefaultValues() is called.
|
|
|
Chan
|
|
Group: Forum Members
Posts: 533,
Visits: 2K
|
Hi,
1) Are you explicitly setting the value of the Recalled field to DBNull.Value in the SetDefaultValues()?
No, I doesn't set DBNull.Value to recalled field. Beside, the error occurred BEFORE SetDefaultValues event fired.
2) Are any of the other fields in the new row DBNull.Value also, or just the Recalled field?
It happen to ALL fields.
3) Is it trying to cast a DBNull.Value to a Boolean, or something else?
To Boolean. The same problem happen to other fields as well, which is integer.
Please advice. It is urgent.
Thank you
|
|
|
StrataFrame Team
|
|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
1) Are you explicitly setting the value of the Recalled field to DBNull.Value in the SetDefaultValues()? 2) Are any of the other fields in the new row DBNull.Value also, or just the Recalled field? 3) Is it trying to cast a DBNull.Value to a Boolean, or something else?
|
|
|