I figured this out... it was a "pilot-error" on my part...but I do have an additional question (see below).
On 5/5/11 9:45 AM, Jean-Denis Muys wrote: > On 4 mai 2011, at 23:22, Rolf Marsh wrote: > > > > Prior to getting this error, I opened the d/b and inserted one (1) very > small record... > Where do I start looking? I am using FMDB, ZBarSDK (used to read > barcodes), but I can't imagine that's using all of my memory... and I > have the d/b set to be a singleton, as indicated by the NSLog entries... > > How do I tell how much active memory I'm using? Where do I start > looking (I'm a newbie, as you can probably tell by now) :-P > > > a 32GB iPhone doesn't have 32GB of RAM. It has 32GB of storage space. That's > vastly different. Storage space as in SQLite d/b? > > How much RAM an iOS device has is not published by Apple. Of course, as a > developer, it's easy to find out. And the answer is: > > iPhone: 128 MB > iPhone 3G: can't remember > iPhone 3GS: can't remember (and too lazy to lmgtfy.com<http://lmgtfy.com> > that). > iPhone 4: 256 MB > > iPad: 256 MB > iPad 2: 512 MB > > Regarding how much free RAM you still have at any one time, the function > commonly suggested looks like: > > > > natural_t freeMemory(void) { > mach_port_t host_port = mach_host_self(); > mach_msg_type_number_t host_size = sizeof(vm_statistics_data_t) / > sizeof(integer_t); > vm_size_t pagesize; > vm_statistics_data_t vm_stat; > > host_page_size(host_port,&pagesize); > > if (host_statistics(host_port, HOST_VM_INFO, > (host_info_t)&vm_stat,&host_size) != KERN_SUCCESS) NSLog(@"Failed to fetch vm > statistics"); > > natural_t mem_used = (vm_stat.active_count + vm_stat.inactive_count + > vm_stat.wire_count) * pagesize; > natural_t mem_free = vm_stat.free_count * pagesize; > natural_t mem_total = mem_used + mem_free; > > return mem_free; > } > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users