I see three potential problems: 1) your code resource is listed as "10000" instead of "1000" in the FtrGet call. 2) you are opening a database but i dont see you creating it anywhere, or making sure that it exists. 3) you probably should call the original function after you are done (or before you are done) regardless of whether you handle the event. The system has more bookkeeping to do...
Hope this helps. -Jacob "Mostapha Bouterfass" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > i want to patch the functio SysAppStartup but may system crash in > instruction (*) > > Any suggustion?? > > Err mySysAppStartup ( SysAppInfoPtr appInfoPP, Ptr prevGlobalsP, Ptr > globalsP) > { > DWord d; > FtrGet( 'TyTt', 10000, &d ); > Err (*orgfunc)( SysAppInfoPtr, Ptr, Ptr); > orgfunc = (Err (*)(SysAppInfoPtr, Ptr, Ptr))d; > > if ((appInfoPP)->cmd != sysAppLaunchCmdNormalLaunch) > return orgfunc(appInfoPP, prevGlobalsP, globalsP); > > MyDB1 = DmOpenDatabaseByTypeCreator('data', 'MOST', > dmModeReadOnly); (*) > return ; > } > > > Regards > Mostapha > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
