BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

error message "Insufficient Memory for this operation"

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
danny
Guest





PostPosted: Wed Feb 04, 2004 6:41 am    Post subject: error message "Insufficient Memory for this operation" Reply with 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





PostPosted: Wed Feb 04, 2004 12:46 pm    Post subject: Re: error message "Insufficient Memory for this operation" Reply with quote



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





PostPosted: Thu Feb 05, 2004 2:37 am    Post subject: Re: error message "Insufficient Memory for this operation" Reply with 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

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





PostPosted: Thu Feb 05, 2004 1:22 pm    Post subject: Re: error message "Insufficient Memory for this operation" Reply with quote

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





PostPosted: Fri Feb 06, 2004 8:09 am    Post subject: Re: error message "Insufficient Memory for this operation" Reply with 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

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





PostPosted: Fri Feb 06, 2004 11:00 am    Post subject: Re: error message "Insufficient Memory for this operation" Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.