on 09-16-2011 10:34 AM
We have recently upgraded to the latest patch level 8.81 SP00 PL08 and an add-on that function correctly in PL06 now crashes in this patch.
Using debug, we have narrowed the error down to a loadfromdatasource method being called on a matirix object, as below:
oForm.DataSources.DataTables.Item("mytable").ExecuteQuery("select Itemname from oitm where " & scond)
oForm.Refresh()
omatxtmp.Clear()
omatxtmp.Columns.Item("uidDesc").DataBind.Bind("mytable", "itemname")
Try
omatxtmp.LoadFromDataSource()
Catch ex As Exception
End Try
This happens in debug and causes SAP Business One to completely crash, creating a dump file.
Does anyone have any suggestions on how to overcome this problem?
Regards
Robert
Hi
Use omatxtmp.LoadFromDataSourceEX() method instead of LoadFromDataSource and check
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same problem here. I thought at first it has to do with changing the panelevel of the form. But now I am sure its the LoadFromDataSource() function.
Did anybody open a supportticket for this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
More Info on the exception thrown:
System.Runtime.InteropServices.COMException was caught
ErrorCode=-2147417851
Message="The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
Source="Interop.SAPbouiCOM"
StackTrace:
at SAPbouiCOM.IMatrix.LoadFromDataSource()
at rootnsBrookbank.cmodBrook.oApplication_ItemEvent(String FormUID, ItemEvent& pVal, Boolean& BubbleEvent) in C:\Development\SAP\BrookBank_new15_09_11\cmodBrook.vb:line 172
InnerException:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.