 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
danny Guest
|
Posted: Wed Feb 04, 2004 6:41 am Post subject: error message "Insufficient Memory for this operation" |
|
|
Hello...
My application access network database files, from time to time, it appears
an error message "Insufficient Memory for this operation". Why would this
happen?? Is this because I open some query or table without closing it etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Wed Feb 04, 2004 12:46 pm Post subject: Re: error message "Insufficient Memory for this operation" |
|
|
Hello Danny,
Did check what program line rises this exception ? Is it a TDataSet::Open call ? Why don't you enclose all your TDataSet::Open calls in try-catch blocks ? Are you using the new operator in a loop ? Did you delete your used objects, those you won't need any more ?
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote
| Quote: | Hello...
My application access network database files, from time to time, it appears
an error message "Insufficient Memory for this operation". Why would this
happen?? Is this because I open some query or table without closing it etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
|
| Back to top |
|
 |
danny Guest
|
Posted: Thu Feb 05, 2004 2:37 am Post subject: Re: error message "Insufficient Memory for this operation" |
|
|
Hi Jayme,
Thanks for your information!!
I finally discovered that some TQuery objects haven't been deleted, so
causing such leakage.
However, I faced another problem again!! The software from time to time will
prompt error: "Insufficient disk space" in query operation. Why would this
appen?? Is this again of because I open some query or table without closing
it etc?? How to prevent it and solve it???
Thanks.
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote
Hello Danny,
Did check what program line rises this exception ? Is it a TDataSet::Open
call ? Why don't you enclose all your TDataSet::Open calls in try-catch
blocks ? Are you using the new operator in a loop ? Did you delete your used
objects, those you won't need any more ?
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote
| Quote: | Hello...
My application access network database files, from time to time, it
appears
an error message "Insufficient Memory for this operation". Why would this
happen?? Is this because I open some query or table without closing it
etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Thu Feb 05, 2004 1:22 pm Post subject: Re: error message "Insufficient Memory for this operation" |
|
|
Hello Danny,
Have a look at TSession::PrivateDir. BDE sometimes swap queries or table fetches to disk. Be sure you have enough disk space and network rights in the directory the BDE is trying to save temporary files.
HTH
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote
| Quote: | Hi Jayme,
Thanks for your information!!
I finally discovered that some TQuery objects haven't been deleted, so
causing such leakage.
However, I faced another problem again!! The software from time to time will
prompt error: "Insufficient disk space" in query operation. Why would this
appen?? Is this again of because I open some query or table without closing
it etc?? How to prevent it and solve it???
Thanks.
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote in message
news:4020e988 (AT) newsgroups (DOT) borland.com...
Hello Danny,
Did check what program line rises this exception ? Is it a TDataSet::Open
call ? Why don't you enclose all your TDataSet::Open calls in try-catch
blocks ? Are you using the new operator in a loop ? Did you delete your used
objects, those you won't need any more ?
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote in message
news:40209427 (AT) newsgroups (DOT) borland.com...
Hello...
My application access network database files, from time to time, it
appears
an error message "Insufficient Memory for this operation". Why would this
happen?? Is this because I open some query or table without closing it
etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
|
| Back to top |
|
 |
danny Guest
|
Posted: Fri Feb 06, 2004 8:09 am Post subject: Re: error message "Insufficient Memory for this operation" |
|
|
Hi Jayme,
Thanks for your information again.
The PrivateDir is set to a directory created under my application directory
(C:ProjectDatabase). And the free disk space of my harddrive is greater
than 3G !!!!!!
Do you have any idea?? Is it a bug of BDE??
Thank you
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote
Hello Danny,
Have a look at TSession::PrivateDir. BDE sometimes swap queries or table
fetches to disk. Be sure you have enough disk space and network rights in
the directory the BDE is trying to save temporary files.
HTH
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote
| Quote: | Hi Jayme,
Thanks for your information!!
I finally discovered that some TQuery objects haven't been deleted, so
causing such leakage.
However, I faced another problem again!! The software from time to time
will
prompt error: "Insufficient disk space" in query operation. Why would this
appen?? Is this again of because I open some query or table without
closing
it etc?? How to prevent it and solve it???
Thanks.
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote in message
news:4020e988 (AT) newsgroups (DOT) borland.com...
Hello Danny,
Did check what program line rises this exception ? Is it a TDataSet::Open
call ? Why don't you enclose all your TDataSet::Open calls in try-catch
blocks ? Are you using the new operator in a loop ? Did you delete your
used
objects, those you won't need any more ?
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote in message
news:40209427 (AT) newsgroups (DOT) borland.com...
Hello...
My application access network database files, from time to time, it
appears
an error message "Insufficient Memory for this operation". Why would
this
happen?? Is this because I open some query or table without closing it
etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
|
| Back to top |
|
 |
Jayme Jeffman Filho Guest
|
Posted: Fri Feb 06, 2004 11:00 am Post subject: Re: error message "Insufficient Memory for this operation" |
|
|
Hello Danny,
I'm sorry. I have no more suggestions in this matter. I've never had such exception !
Why don't catch the exception and check what runtime conditions are driving the application to the exception ?
HTH
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote
| Quote: | Hi Jayme,
Thanks for your information again.
The PrivateDir is set to a directory created under my application directory
(C:ProjectDatabase). And the free disk space of my harddrive is greater
than 3G !!!!!!
Do you have any idea?? Is it a bug of BDE??
Thank you
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote in message
news:4022436a$1 (AT) newsgroups (DOT) borland.com...
Hello Danny,
Have a look at TSession::PrivateDir. BDE sometimes swap queries or table
fetches to disk. Be sure you have enough disk space and network rights in
the directory the BDE is trying to save temporary files.
HTH
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote in message
news:4021ac54 (AT) newsgroups (DOT) borland.com...
Hi Jayme,
Thanks for your information!!
I finally discovered that some TQuery objects haven't been deleted, so
causing such leakage.
However, I faced another problem again!! The software from time to time
will
prompt error: "Insufficient disk space" in query operation. Why would this
appen?? Is this again of because I open some query or table without
closing
it etc?? How to prevent it and solve it???
Thanks.
Danny
"Jayme Jeffman Filho" <jjeffman (AT) cpovo (DOT) net> wrote in message
news:4020e988 (AT) newsgroups (DOT) borland.com...
Hello Danny,
Did check what program line rises this exception ? Is it a TDataSet::Open
call ? Why don't you enclose all your TDataSet::Open calls in try-catch
blocks ? Are you using the new operator in a loop ? Did you delete your
used
objects, those you won't need any more ?
Jayme.
"danny" <danny (AT) teleeye (DOT) com> wrote in message
news:40209427 (AT) newsgroups (DOT) borland.com...
Hello...
My application access network database files, from time to time, it
appears
an error message "Insufficient Memory for this operation". Why would
this
happen?? Is this because I open some query or table without closing it
etc??
How to prevent it and solve it???
Thank you.
Danny
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|