473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Memory leak with Dataset?

Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in
a row and bring back the information into a DataSet, the application will
crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the error
states...

Any ideas what could be happening or do I need to post the code? There is a
bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller
Nov 15 '05 #1
6 2342
It appears that, for some reason, I am running out of memory.... That is
just a guess. The problem happens more frequently when I am trying to do
multiple things at once. If I leave the application alone, it runs fine.
Don't know if this helps the analysis, but thought I mention it....

Andrew Mueller
"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in a row and bring back the information into a DataSet, the application will
crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the error states...

Any ideas what could be happening or do I need to post the code? There is a bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller

Nov 15 '05 #2
More tests....

I ran performance monitor on memory and there was plenty left.... The
application continues to crash now whether or not I am running another
application. It appears that after it crashes one time, it is more apt to
do it again. Does garbage collection work properly? Is there some portion
of my RAM which is now somewhat corrupt (in memory)? I cannot explain why
it would do this.

It ran fine 10 times before I tried loading other applications. Once I
did this, it crashed. Once it crashed, it continued to crash each time I
ran the program.

It crashes during the portion where it retrieves information from OLEDB
and brings back a calculated value. That is the only thing that is
happening at the time.

Andrew Mueller

"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in a row and bring back the information into a DataSet, the application will
crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the error states...

Any ideas what could be happening or do I need to post the code? There is a bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller

Nov 15 '05 #3
The error DEFINITELY happens when:

I set focus to another application. Whether that be Exporer, or
anything else, that is when it will crash for sure. No amount of error
trapping appears to catch the error.

Andrew Mueller

"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in a row and bring back the information into a DataSet, the application will
crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the error states...

Any ideas what could be happening or do I need to post the code? There is a bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller

Nov 15 '05 #4
Can anyone verify a possible problem??

I belive that if I create new OleDbDataAdapter objects often, I get the
error that I am seeing. It only happens occassionally, though. Mainly, as
I mentioned before, when I am focusing on other applications.

Thanks in advance,

Andrew Mueller

PS - At this point, it seems to have helped that I only create one
connection and change the Select statement only. This is a change because I
added to the Method within the class so that all the data iteration is done
within the class (as opposed to in the Call)
"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in a row and bring back the information into a DataSet, the application will
crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the error states...

Any ideas what could be happening or do I need to post the code? There is a bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller

Nov 15 '05 #5
Try trapping the Application.ThreadException event. It will give you any
exception that WindowsForms catches in its code. It might be a genuine bug,
but without more information it will be impossible to tell.
--
Justin Rogers
DigiTec Web Consultants, LLC.

"Andrew Mueller" <am******@ins3.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
The error DEFINITELY happens when:

I set focus to another application. Whether that be Exporer, or
anything else, that is when it will crash for sure. No amount of error
trapping appears to catch the error.

Andrew Mueller

"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.

What appears to be happening is that when I perform a lot of queries in
a row and bring back the information into a DataSet, the application will crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the

error
states...

Any ideas what could be happening or do I need to post the code? There

is a
bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller


Nov 15 '05 #6
I know this sounds stupid.... But, I am a novice, and I am unsure how to do
this with a service application.

It seems there are a bunch of examples on the web for Windows Forms
applications, but none for services. Can you point me in the right
direction??

Thanks in advance,

Andrew Mueller

"Justin Rogers" <Ju****@games4dotnet.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
Try trapping the Application.ThreadException event. It will give you any
exception that WindowsForms catches in its code. It might be a genuine bug, but without more information it will be impossible to tell.
--
Justin Rogers
DigiTec Web Consultants, LLC.

"Andrew Mueller" <am******@ins3.com> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
The error DEFINITELY happens when:

I set focus to another application. Whether that be Exporer, or
anything else, that is when it will crash for sure. No amount of error
trapping appears to catch the error.

Andrew Mueller

"Andrew Mueller" <am******@instechnet.com> wrote in message
news:u$*************@tk2msftngp13.phx.gbl...
Hello all,

There is a message below 'Application Error... When querying data'.
What appears to be happening is that when I perform a lot of
queries
in
a row and bring back the information into a DataSet, the application
will crash. It will not crash every time, though.

It has a problem writing to certain memory locations, is what the

error
states...

Any ideas what could be happening or do I need to post the code?

There is
a
bit of code, so I did not want to post it right away.

Thanks in advance!!

Andrew Mueller



Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kim Petersen | last post by:
Memory leak - malloc/free implementation - GC kicking in late - know bug - or ? Using python-2.2.2-26 on RH9 (shrike) x86 -fully patched The following program slowly eats up more and more...
8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
13
by: Nikolay Petrov | last post by:
I've got this issue: When I start my application it takes a lot of memory. I guess this is caused by CLR. That's fine. But every time the app performs an action (open new form, load data in...
3
by: Emmanuel Gehin | last post by:
When I use the following code in VB.NET : Public Function test() As String Try Dim da1 As OdbcDataAdapter Dim i As Int32 Dim tfem As DataTable For i = 0 To 1000 da1 = New...
23
by: James | last post by:
The following code will create memory leaks!!! using System; using System.Diagnostics; using System.Data; using System.Data.SqlClient; namespace MemoryLeak
18
by: diffuser78 | last post by:
I have a python code which is running on a huge data set. After starting the program the computer becomes unstable and gets very diffucult to even open konsole to kill that process. What I am...
5
by: Frank Rizzo | last post by:
Hello, I have a very frustrating issue I've been working on. I have a routine that does the following: 1. Load a large (declared local to the function) DataSet from the database. It contains...
12
by: Simon | last post by:
Hi all, I'm having a baffling problem with a windows service that I'm working on. Basically, I am using a typed dataset to insert a large number of rows into an SQL Server 2005 database. But...
22
by: Simon | last post by:
Hi all, I have a huge memory leak problem in what is really very simple data insert code. In my app I'm trying to use a typed dataset to insert into a database. It adds quite a few rows (say...
11
by: Aleks Kleyn | last post by:
I wrote application on asp.net 2.0 using dataset. One dataset I put in session collection and other (which is small and common for other users) I put in application. I expected that it will get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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...

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.