I just wanted all to know that I did find the problem with my own code (with 
my brother's help).

The problem is that dbID was declared as UInt16 where it should be as 
LocalID.

I couldn't see my problem.  Thanks much.

SWP
"steve p" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> This little snippit crashes each time I try to use it:
>
> Char fname[25];
> UInt16    dbID;
> Err err;
> StrCopy(fname, "PEL-Template");
> dbID = DmFindDatabase(0, fname);
>
> if (dbID) {
>  err = DmDatabaseInfo (0, dbID, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
>   NULL, NULL, NULL, NULL);
>  }
>
> Stepping thru the debugger, it crashes on DmDatabaseInfo.  What am I doing 
> wrong??
>
> I am really tring to get the version number but could not get that back 
> and thought I would try passing NULL for all of the parameters.
>
> Can someone help?
>
> SWP
>
>
> 



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

Reply via email to