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 

Insufficient memory to perform the operation

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Rowman
Guest





PostPosted: Wed Feb 28, 2007 9:11 am    Post subject: Insufficient memory to perform the operation Reply with quote



In the code I attempt to open a TQuery. However the database is large
and the where clause ends up with about almost 700 fields.

Now under most circumstances the program works fine. But when the
database large, the program crashes with an error insufficient memory
to perform the operation (the open TQuery method). After the error
occurs Upon exit of the program a few exceptions is then
thrown.......Access Violation (something about NTDLL.DLL).


Now I've tried to increase the shared memory allocation within the
BDE
administrator. This seems to only delay the problem. I have made sure
to change not only the config file but the registry file by selecting
Windows 95/NT only.


Can anyone help me with regards to my problem.


Thanx
Back to top
Rowman
Guest





PostPosted: Wed Feb 28, 2007 5:28 pm    Post subject: Re: Insufficient memory to perform the operation Reply with quote



Another strange point that I forgot to mention is that the program
works fine when run in debug mode. Whenever run from the exe file
outside of the IDE the program crashes. How come it does not crash
when run in debug mode? I think this is strange.
Back to top
Rowman
Guest





PostPosted: Mon Mar 05, 2007 3:24 pm    Post subject: Re: Insufficient memory to perform the operation Reply with quote



I eventually just splitted the large query into smaller queries and
manually added the values etc. This is probabl inefficient but at
least I dont get the memory problem anymore.

It seems like it is a BDE problem, when handling large queries. Maybe
some sort of memory leak.
Back to top
Brian Bushay TeamB
Guest





PostPosted: Fri Mar 09, 2007 8:32 am    Post subject: Re: Insufficient memory to perform the operation Reply with quote

Quote:
I eventually just splitted the large query into smaller queries and
manually added the values etc. This is probabl inefficient but at
least I dont get the memory problem anymore.

It seems like it is a BDE problem, when handling large queries. Maybe
some sort of memory leak.

This message can come up if there is insufficient space on the drive where your
private directory is located. Also if the table being queried is corrupt.
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com
Back to top
Rowman
Guest





PostPosted: Mon Mar 12, 2007 1:45 pm    Post subject: Re: Insufficient memory to perform the operation Reply with quote

On Mar 9, 4:32 am, Brian Bushay TeamB <BBus...@Nmpls.com> wrote:
Quote:
I eventually just splitted the large query into smaller queries and
manually added the values etc. This is probabl inefficient but at
least I dont get the memory problem anymore.

It seems like it is a BDE problem, when handling large queries. Maybe
some sort of memory leak.

This message can come up if there is insufficient space on the drive where your
private directory is located. Also if the table being queried is corrupt.
--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Thanks for your reply, I have enough space on the drive so that rules
out your first point. Could be the second point about the table. But
I'm still skeptical about that. It is working fine and even better now
that I split the query up into smaller bits.

Thanx alot for you reply though
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi 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.