Hal,

Thank you for your help, with using the debugger I saw where the error was and 
after hours of struggle I'm through!!! Yayy!!!

the prolem seems to be odd. I use "DmOpenRef db;" in both of the functions... 
and after the call to MLGetUserDatabase, the next call goes to 
MLGetChaptersDatabase, and I have the same "DmOpenRef db;" in there as well, 
but in the debugger it showed that the db varibale is still containing the 
previuos value so this make the if function in MLGetChaptersDatabase to false 
so the database doesnt get created at all!!:

if (! db)
    {
        error = DmCreateDatabase(0, mlChaptersDBName, appFileCreator, mlDBType, 
false);
        if (error) 
            return error;

....
...
..
}


Thanks again for your help on this.

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

Reply via email to