System.ArgumentOutOfRangeException on changing Active

System.ArgumentOutOfRangeException on changing Active

Postby belidzs » Wed 31 Mar 2010 14:46

Another bug concerning the PgSqlDataTable's Active property. When the code reaches this procedure, it hangs _sometimes_.
I would say every 3 out of 5 times. This is happening on all the configurations my client has, and also on my test machine.

If you require any other data, please let me know!

private void refreshTimer_Tick(object sender, EventArgs e)
{
//foablakban levo adatok automatikus frissitese
projektek_sajat_foablakTable.Active = false;
projektek_sajat_foablakTable.Active = true;
esemenyek_sajat_foablakTable.Active = false;
esemenyek_sajat_foablakTable.Active = true;
}


And the trace:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at Devart.Common.DbDataTable.a(ListChangedEventArgs A_0)
at Devart.Common.DbDataTable.FillPage(Int32 startRecord, Int32 maxRecords, Object[] parameterValues)
at Devart.Common.DbDataTable.a(Int32 A_0, Int32 A_1)
at Devart.Common.DbDataTable.Open()
at Devart.Common.DbDataTable.set_Active(Boolean value)
at Aperitif.MainForm.refreshTimer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3603 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Aperitif
Assembly Version: 3.0.0.0
Win32 Version: 3.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/Aperitif.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
DevExpress.XtraEditors.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/DevExpress.XtraEditors.v9.3.DLL
----------------------------------------
Devart.Data
Assembly Version: 5.0.21.0
Win32 Version: 5.0.21.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/Devart.Data.DLL
----------------------------------------
Devart.Data.PostgreSql
Assembly Version: 4.65.62.0
Win32 Version: 4.65.62.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/Devart.Data.PostgreSql.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
DevExpress.Utils.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/DevExpress.Utils.v9.3.DLL
----------------------------------------
DevExpress.Data.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Documents%20and%20Settings/zkalina/Local%20Settings/Apps/2.0/N151YTDA.5HZ/8PBCYXCR.397/aper..tion_4ea5754906bfcdeb_0003.0001_abf920eb0f9cb582/DevExpress.Data.v9.3.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Deployment
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/10.5.3700.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/10.5.3700.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/10.5.3700.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.KeyCode
Assembly Version: 10.5.3700.0
Win32 Version: 10.5.1.2285
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.KeyCode/10.5.3700.0__692fbea5521e1304/CrystalDecisions.KeyCode.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Microsoft.Office.Interop.Word
Assembly Version: 11.0.0.0
Win32 Version: 11.0.8161
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Word/11.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Word.dll
----------------------------------------
belidzs
 
Posts: 29
Joined: Wed 30 Sep 2009 12:07

Postby StanislavK » Thu 01 Apr 2010 09:38

Please specify the definitions of database tables and PgSqlDataTable objects used in the sample. If possible, please send us a test project with which the problem can be reproduced. We couldn't reproduce it at the moment.
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48


Return to dotConnect for PostgreSQL