Re: Exception handler problem.
- From: andrewthommo@xxxxxxxxx
- Date: 11 Jul 2006 11:02:06 -0700
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.
.
- Follow-Ups:
- Re: Exception handler problem.
- From: Serguei . Goumeniouk
- Re: Exception handler problem.
- References:
- Exception handler problem.
- From: Serguei . Goumeniouk
- Re: Exception handler problem.
- From: andrewthommo
- Re: Exception handler problem.
- From: Serguei . Goumeniouk
- Exception handler problem.
- Prev by Date: Re: ZoneView: does it work?
- Next by Date: Re: Exception handler problem.
- Previous by thread: Re: Exception handler problem.
- Next by thread: Re: Exception handler problem.
- Index(es):
Relevant Pages
|