473,469 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error using Dataadapter.Fill when getting a big amount of Data

1 New Member
Hi !

I get the error below sometimes when retrieving a big amount of data using Datadapter.Fill(dataset,"table"). But when I send the command Fill again, there is no error. Is it a fault of IBM.Data.DB2.iSeries; Version: v1.0.3705 (is there an newer one for OS/400 Version ist V5R3 ?) or is it a hardware faoult (memory of as400 or pc) ?

br mike

Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.

Quellfehler:


Zeile 91: _DataSet = New DataSet()
Zeile 92: _DataAdapter = New iDB2DataAdapter(_Command)
Zeile 93: _DataAdapter.Fill(_DataSet, "table")
Zeile 94:
Zeile 95: Catch ex As Exception


Quelldatei: C:\VSPROJECTS\db2dataaccess\db2dataaccess\db2.vb Zeile: 93

Stapelüberwachung:


[AccessViolationException: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.]
IBM.Data.DB2.iSeries.CwbDc.DcDnResultDataGetRows(I nt32 functionNumber, IntPtr requestDataHandle, MpDcRowCount& parms, MpDcData[] data) +0
IBM.Data.DB2.iSeries.CwbDc.GetRows(IntPtr requestDataHandle, MpDcRowCount& parms, MpDcData[] data) +37
IBM.Data.DB2.iSeries.iDB2DataReader.GetDcRow(IntPt r dataPtr, Int32 row, MpDcData[] dcData, UInt32 block) +224

[iDB2DCFunctionErrorException: Eine unerwartete Exception ist aufgetreten. Type: System.AccessViolationException, Message: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist..]
IBM.Data.DB2.iSeries.iDB2DataReader.GetDcRow(IntPt r dataPtr, Int32 row, MpDcData[] dcData, UInt32 block) +427
IBM.Data.DB2.iSeries.iDB2DataReader.GetValues(Obje ct[] values) +270
System.Data.ProviderBase.CommonLanguageSubsetDataR eader.GetValues(Object[] values) +10
System.Data.ProviderBase.SchemaMapping.LoadDataRow () +30
System.Data.Common.DataAdapter.FillLoadDataRow(Sch emaMapping mapping) +140
System.Data.Common.DataAdapter.FillFromReader(Data Set dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +153
System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +172
System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +175
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
db2dataaccess.db2.runSPDS(String SotredProcedure) in C:\VSPROJECTS\db2dataaccess\db2dataaccess\db2.vb:9 3

[Exception: .runSPDS(string SQL)]
db2dataaccess.db2.runSPDS(String SotredProcedure) in C:\VSPROJECTS\db2dataaccess\db2dataaccess\db2.vb:9 6
ClassLibrary.Bestellungen.grdBestellungenFill(Int3 2 pbtrb, String part1, Int32 phkun, Int32 pfkun, Int32 pskun, Int32 pbkun, Int32 partn, String pfarb, Int32 pkz03, String pstatus, Int32 pvert, String pakt, String pluse) in C:\VSProjects\wbiPortal\ClassLibrary\Bestellungen. vb:62

[TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht.]
System.RuntimeMethodHandle._InvokeMethodFast(Objec t target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +358
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.Inv okeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
System.Web.UI.WebControls.ObjectDataSourceView.Exe cuteSelect(DataSourceSelectArguments arguments) +2040
System.Web.UI.DataSourceView.Select(DataSourceSele ctArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.Perform Select() +149
System.Web.UI.WebControls.BaseDataBoundControl.Dat aBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
frmBestelluebersicht.setFilter() in C:\VSProjects\wbiPortal\wbi\frmBestelluebersicht.a spx.vb:345
frmBestelluebersicht.Page_PreRenderComplete(Object sender, EventArgs e) in C:\VSProjects\wbiPortal\wbi\frmBestelluebersicht.a spx.vb:282
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2012724
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1566




--------------------------------------------------------------------------------
Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.42; ASP.NET-Version:2.0.50727.210
Mar 7 '07 #1
0 4525

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Troy | last post by:
We recently installed the .Net framework on a windows 2000 server. Shortly after that we experienced intermitant problems running a web based program that accesses an Access 2002 database. The...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
2
by: James Wallace | last post by:
I hope that someone can help me out there with this problem. I get an itermittant problem with our web page that occurs about once every 10 to 15 days where the only way to fix the problem is to...
4
by: dtblankenship | last post by:
Hello everyone, I know this question has been asked many times in the forums, and after spending a few days reading, I am still confused as to the answer. I have a ListBox (lstBox),...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
3
by: John J. Hughes II | last post by:
I have a SqlDataAdapter.Fill filling a standard dataset and my code is returning the below error. The "Error Loading data" is just a message my code displays. "Error:" is the Exception.Message...
0
by: Danny | last post by:
Hi, we just have launched our first beta version of our new product page which was developed with ASP.NET. Now we noticed that we sometimes get the error attached below. After a little web...
1
by: Danny | last post by:
Hi guys, I sometimes get the following error on my ASP.NET webpage. Server Error in '/' Application. -------------------------------------------------------------------------------- ...
0
MrMancunian
by: MrMancunian | last post by:
How to create a database connection without using wizards Introduction I've seen a lot of questions on the net about getting data from, and saving data to databases. Here's a little insight how...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.