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 6 2351
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******@inste chnet.com> wrote in message
news:u$******** *****@tk2msftng p13.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
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******@inste chnet.com> wrote in message
news:u$******** *****@tk2msftng p13.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
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******@inste chnet.com> wrote in message
news:u$******** *****@tk2msftng p13.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
Can anyone verify a possible problem??
I belive that if I create new OleDbDataAdapte r 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******@inste chnet.com> wrote in message
news:u$******** *****@tk2msftng p13.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
Try trapping the Application.Thr eadException 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******** ******@TK2MSFTN GP12.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******@inste chnet.com> wrote in message news:u$******** *****@tk2msftng p13.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
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****@games4d otnet.com> wrote in message
news:uQ******** ******@tk2msftn gp13.phx.gbl... Try trapping the Application.Thr eadException 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******** ******@TK2MSFTN GP12.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******@inste chnet.com> wrote in message news:u$******** *****@tk2msftng p13.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 memory when run on
large datasets... can anyone tell what the trouble is?
i've run it up to 240000 recsets so far - and it eats about .1% of my
mem pr. 1000 (doesn't really matter how much does it?).
|
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 ?
In nut shell, what is/are the realtion/s between the Memory Leak and
Memory Corruption.
Juts Theoritical Assumtion below:
|
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 dataset, something, it doesn't matter) the memory used by the
application increases. After using it half an hour it grows so big that most
of PCs here act very slowly.
Is this behavior caused somehow by my lack of programming knowledge or
something...
|
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 OdbcDataAdapter("select * from TABLE1 where
TABLE1.ID= '16'", "DSN=DSNTEST;UID=UIDTEST;PWD=PWDTEST;")
|
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
| |
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 assuming
is that I am running out of memory.
What should I do to make sure that my code runs fine without becoming
unstable. How should I address the memory leak problem if any ? I have
a gig of RAM.
Every help is appreciated.
|
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 5 tables.
2. Load the database into a fairly complicated object model.
3. I dispose of the Dataset.
Before loading the DataSet the MemUsage column in Task Manager shows 44
MB. After loading the database the MemUsage stands at 59 MB. Thus I
|
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 there's a memory leak that seems
to be to do with calling the data adapters update method. It's making
the memory usage go through the roof and ultimately the service crashes
after running out of memory.
|
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 hundreds). Unfortunately it has a big ass
memory leak and I dont understand why.
The code below demonstrates the memory leak. It's like nothing is
|
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 some amount of memory,
however I expected that this amount of memory will be fixed and will depend
on number of user. When I put code in production I discovered that
aspnet_wp.exe increases memory which it uses. Each second 2meg. What may be
the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |