You Are Here:

Community: Developer Discussion Boards

#1 Old kErrNoMemory - after 2039 SELECTs in SQL DB - 2009-01-23, 18:04

Join Date: Jun 2008
Posts: 45
maclun123
Offline
Registered User
Hi,

I encountered problem with memory after sending 2039 queries to SQL DB.
It always occurs after 2039. I would like to increase somehow memory in order to avoid the problem.
I read some posts about feature in ensymble - don't want to use as i am not working on SIS yet.
I saw also MISO package, but I had no success in using it for this purpose.
Can anyone give me example how to increase memory with MISO? Which function I should use?

EDIT: Error I am getting on "self.dbv.prepare(self.db, unicode(sql))" line.

added code which I am using
Code:
class Db:
	def __init__(self, db_path):
		self.dbpath = db_path
		
		self.db = e32db.Dbms()
		self.dbv = e32db.Db_view()
		self.reset_counters()
		self.db_opened = False

	def query(self, sql):
		self.reset_counters()
		if sql.lower().startswith('select'):
			self.dbv.prepare(self.db, unicode(sql))
			self.dbv.first_line()
			self.num_rows = self.dbv.count_line()
		else:
			self.db.execute(unicode(sql))
Thanks,
mac
Last edited by maclun123 : 2009-01-23 at 18:17.
Reply With Quote

#2 Old Re: kErrNoMemory - after 2039 SELECTs in SQL DB - 2009-01-24, 00:20

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Well, the error is occuring probably because the file is too large, exceeding the heap size, which is generally 1 MB.



BR,

Rafael.
Reply With Quote

#3 Old Re: kErrNoMemory - after 2039 SELECTs in SQL DB - 2009-01-24, 04:18

Join Date: Jun 2008
Posts: 45
maclun123
Offline
Registered User
My file has size around 950 kB, and number is 2039. On the file where size is over 2 Mb is probably around 1400 (cant check exactly).
I have just tested with file with 8 EMPTY tables (file less than 4 kB) and the number is 5104. For 8 tables with ONE entry - around 3500.

It seems that problem lies somewhere else. Any ideas?

And second question is still unanswered... how to change heap size with miso?

mac
Reply With Quote

#4 Old Re: kErrNoMemory - after 2039 SELECTs in SQL DB - 2009-01-24, 05:12

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by maclun123 View Post
And second question is still unanswered... how to change heap size with miso?
As long as I know, the only way to change heap size is when you pack your application into a .sis using the heapsize option from Ensymble.
Reply With Quote

#5 Old Re: kErrNoMemory - after 2039 SELECTs in SQL DB - 2009-01-26, 23:59

Join Date: Jun 2008
Posts: 45
maclun123
Offline
Registered User
I have tried to do it with ensymble, and my problem is still there;/
As I don't see console I don't know what is exact message, but application behaves as it used to from under Python Script Shell.

I have set in ensymble heapsize to "--heapsize=4k,4M". but the number of SELECTS didn't increase;/

I don't if I am doing something wrong...
Please advice, if you have any ideas.

Exact ensymble command:
Code:
ensymble.py py2sis --heapsize=4k,4M --uid=0x000b1a5 --appname=PhotoGallery --caps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData --version=1.0.2 --lang=EN --verbose PhotoGallery.py

mac
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Update SQL statement doesn't work asheeshv General Symbian C++ 4 2008-12-11 06:41
KErrNoMemory on Nokia 5700 - Hipermidia ported App vitormcruz Symbian Media (Graphics & Sounds) 5 2007-12-21 03:06
String to Integer conversion in Symbian SQL sai_irfan General Symbian C++ 1 2004-09-08 12:02
DBMS - sql function Uppercase/Lowercase ? aldrin_rave General Symbian C++ 2 2003-04-29 10:37
Test GPRS modem with Microsoft SQL Server 2000 chadahamat2704 Digital Rights Management & Content Downloading 0 2003-03-13 08:36

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia