At 2:05 PM -0700 2002/05/17, ana erdozain wrote: >I am trying to create a database in my application. >To create the database and open it I use these >functions: > >dbP = DmOpenDatabaseByTypeCreator( >appDBType,appCreator, mode); > >error = DmCreateDatabase (0, appName, >appCreator,appDBType, false); > >where appDBType is �data� and appCreator is 'Airport'.
Type and creator codes are UInt32 values. So appDBType should be 'data' and appCreator should be 'Airp' or something similar. BTW, except for publicly defined types such as 'data', all-lowercase characters with or without numbers are reserved for use by PalmSource. Also, you have to create the database before you can open it. That may actually be the order in which you're doing things, but since you didn't supply the actual code, we can only guess at how and with what data types. >When I load this application in the pda (with hot >sync) and the application runs, if try to get data >from the database an error occurs, and the application >must be reset. And the error code is...? Have you tried debugging this under POSE? Are you handling the HotSync notification (what does your PilotMain look like)? Are you accessing global variables when they're not available (such as during the HotSync notification)? Regards, Jim Schram PalmSource Inc. Partner Engineering -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
