Re: Exception handler problem.



Serguei.Goumeni...@xxxxxxx wrote:
....
1) There is no memory leak in this program.

( famous last words ;), but..

..My user just tries to load
too many information from the database and it is not easy to estimate
the memory required to store and to show data on the screen.

...that is a plausible explanation.

..I usually
show a message "This query may be too long ..." to my user before
retrieving data, but it is up to he/she to start an execution.

I would dump that first warning altogether if you
can find how to catch those OOM errors.

..This is
the reason why I have this problem.
2) I already created an invisible error message box and I am going to
make it visible if error detected.

As a further precaution, you might also declare a chunk
of array, and dispose it as soon as the OOME occurs,
this should create a little free memory to give you some
room to do ..a small amount.

( ..and please post comments below the text it relates to,
and trim text no longer needed. )

Andrew T.

.



Relevant Pages

  • Re: [Info-Ingres] String Manipulations
    ... believe databases are for retrieving data not business logic. ... Beg to differ. ... Logically speaking Emiliano, your quite right, but practically speaking, I'm ... I would still use database rules and procedures ...
    (comp.databases.ingres)
  • Re: Newbi question.
    ... The first thing you need when retrieving data from a database is, ... course, a database connection. ... and drag a new SqlConnection object onto the form. ... Framework Components" dialog select "SqlConnection" to add it to the ...
    (microsoft.public.dotnet.languages.csharp)
  • Input form to SQL does not insert data
    ... I have created a form for retrieving data from a SQL ... inpu data into the database. ... Both forms were created with the Wizard. ...
    (microsoft.public.frontpage.programming)
  • mysql problem
    ... I got a strange problem when retrieving data from a sql query. ... function that queries the database, gets data and store that in a struct. ... Thus, res becomes null. ...
    (comp.lang.c)