Well, that single line of code doesn't help much. However I agree the
crid/type combination isn't likely to appear in a fresh POSE session. Why
not use a tool like RsrcEdit or Insider just to confirm that the db really
doesn't exist. Also where is your db creation code? Put a break-point there
to determine when it is being called...

I almost positive it's some logic in your code that's causing this
"error"...


Gavin.

Michel Petrovic <[EMAIL PROTECTED]> wrote in message
news:98226@palm-dev-forum...
>
> Hello Gavin!
>
> Here goes the code for the defines and the c-code:
> -------------------------------------------
> //first the defines:
> #define DM_TYPE 'DATA'
> #define DM_CREATOR 'MP01'
>
>
> //then C code
> DmOpenRef db;
> db = DmOpenDatabaseByTypeCreator(DM_TYPE, DM_CREATOR,
> dmModeReadWrite);
> -------------------------------------------
>
> db is a global variable, the defines are declared in a
> .h file.
>
> I don't see how that DB could already exist in an
> emulator session.
>
> I would appreciate any hints you could provide.
> Regards
> Michel.P
>
> --- Gavin Maxwell <[EMAIL PROTECTED]> wrote:
> > I think I'd like to see your code...
> >
> > Just because no database has been created by you
> > doesn't necessarily mean it
> > doesn't already exist... what crid and type are you
> > using? If the db already
> > exists and you open it read/write, then the second
> > attempt will fail because
> > the db is already open...
> >
> >
> > Gavin.
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
>



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

Reply via email to