> Well, I'm new in development for PalmOS and I getting a curious > error when I try to open a Database. See the piece of code (several FrmAlert > was inserted to help me where is the error). I tried the piece of code shown > in Palm Code Recipes and gave the same error Sys (0004) and the handler > gDatabase is almost NULL;
May be this has nothing to do with your problem, but I think your gDatabase variable may be uninitialized when your program reaches the "if (!gDatabase)" test. Try to declare it as follows: DmOpenRef gDatabase = NULL; // Global -- Pascal Levy http://www.handheld-basic.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
