[EMAIL PROTECTED], MD <[EMAIL PROTECTED]> writes:

> I am running some tests to see if I can use VFSFileGetDBRecord to access
> a database that resides on an expansion card (emulator 3.4,  m505 ROM OS
> 4.1, latest HostFS.prc). I can open the database (VFSFileOpen gives a
> valid file reference), but the VFSFileGetDBRecord call crashes the
> emulator: "Your app just wrote to memory location...which is in the
> storage heap. In order to protect the integrity of the user's
> data...". Any suggestions?

It's pretty hard to give suggestions without seeing your code. However,
if I were to guess, you're passing some strange pointers to the
function. I use VFSFileGetDBRecord all the time; this works for me:

  MemHandle h;
  Err err = VFSFileGetDBRecord(filehandle, ndx, &h, NULL, NULL);
  // do stuff
  MemHandleFree(h);

-- 
Dave Carrigan ([EMAIL PROTECTED])            | Yow! Life is a POPULARITY
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | CONTEST!  I'm REFRESHINGLY
Seattle, WA, USA                            | CANDID!!
http://www.rudedog.org/                     | 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to