You didn't mention that you tried this, so I'll suggest it. Create a buffer
on the stack and copy the list selection into it and see what happens. If it
works, you'll know the problem is with your list selection buffer and you'll
have a fix. PseudoCode

Err OpenDB( CharPtr file )
        {
        // file is the pointer from the list selection
        Char buf[ maxDBNameSize ]; // I know that's not the right define
        LocalID dmId;
        Err err = 0;

        // If this doesn't work, you've got a problem with your pointer
        // from the list
        StrCopy( buf, file );

        dmID = DmFindDatabase( 0, buf );

        if ( !dmId )
                return DmGetLastError();

        // Open the database

        return err;
        }

BTW, a Grep for 519 in all PalmOS header files didn't turn up anything.

Eric

-----Original Message-----
From: Palm Dev Forum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 07, 1999 11:47 AM
To: Palm Developers Forum List
Subject: Database problems????















Reply via email to