Re: Not enough storage space
- From: João Paulo Figueira <joao.figueira@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Jun 2006 10:25:24 +0000 (UTC)
Hello sardo007,
I have seen this problem happening as well. Closing or even destroying (releasing) the command objects does not seem to help (SQL CE 2.0). The only solution I have found that will help is to periodically close the data source and the session. This will actually release the memory or, as I experienced it, will put a ceiling on how much memory is used.
Regards,
João Paulo Figueira
eMVP
Hello, after searching this topic everywhere it seems nobody is facing
it the same way.
I'm developing an evc++ 4.0 database application using sqlce 2.0 and
oledb (adoce gave me some problems so I discarded it) Application
behaves well on every option, except one in which the user has to
introduce lots of data in a form. Data is selected from lists that are
populated with related data in other database tables. The form-filling
is OK, but after the user completes 10 or more forms the application
stops executing ICommands with the error "not enough storage to
complete this operation".
I've found this error in many places but they all seem to be
.NET-oriented. Since the target of my application is PocketPC 2003 and
even PocketPC 2002 (yes, there are still plenty of these all over
there) I can't use VC2005 to develop the application, so the problem
has to be solved using what I'm using (evc++4, sqlce2 and OLEDB) Every
solution I've found tells about Disposing the recordsets and commands,
but in the OLEDB interfaces I use there is no such Dispose method,
since they are all Released() as COM objects are.
The problem does not seem to be with the available storage memory
(there are more than 20MB of program space available and the
application has not been running long enough to fragment all that
space) It seems the sqlce dll or the oledb driver has some limit with
the memory used internally, since the problem occurs always after a
fixed form-filling sequence.
Any ideas are welcome. Thanks in advance.
.
- Follow-Ups:
- Re: Not enough storage space
- From: sardo007
- Re: Not enough storage space
- Prev by Date: Re: Recommendation for a datatype for replication
- Next by Date: Re: error 80004005 while INITIALIZE sql server CE
- Previous by thread: Recommendation for a datatype for replication
- Next by thread: Re: Not enough storage space
- Index(es):
Relevant Pages
|