I have since passed the first porblem, needed to pass false to the function. But now the same thing happens on the if (!PrgHandleEvent(prgPtr, &event)). I have tried both &event, and NULL. neither worked.
-- Scott Erickson Software Development Team, FB-4, Inc. [EMAIL PROTECTED] "Scott Erickson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > What im trying to do is stright forward, just need to use the Progress > Manager to track the name of the open database im currently scanning. > When ever I get to the update call, the simulator just closes out. Heres > the code relavent to the PrgMgr calls.... > > PrgCallbackFunc callbackFunc; > ProgressPtr prgPtr; > Char *currentDB; > EventType event; > UInt16 prgCount = 0; > Boolean StopScan = false; > ... > > tempMemPtr = MemPtrNew(32);//max length of a database name > currentDB = tempMemPtr; > ... > prgPtr = PrgStartDialog("Scan Progress: ", callbackFunc, > (void*)currentDB); > ... > do stuff here to get database info and stuff dealing with the scanner... > ... > PrgUpdateDialog(prgPtr, 0, prgCount, (Char*)dbNameP, true); > EvtGetEvent(&event, 0); > if (!PrgHandleEvent(prgPtr, &event)) > if (PrgUserCancel(prgPtr)) > StopScan = true; > ... > PrgStopDialog(prgPtr, false); (called after the scanning is complete) > ... > > static Boolean callbackFunc(PrgCallbackDataPtr cbP) > { > if(cbP->stage > 0) > { > StrCopy(cbP->textP, "Scanning: "); > StrCat(cbP->textP, cbP->message); > } > > cbP->textChanged = true; > > return true; > } > > Like i said above, on the update calls it just shuts down the simulator > with a windows xp error box about sending info about the problem to > windows, weve all seen them 10000000 times. from what i can see in the > debugger everything looks fine. If anyone knows what im doing wrong > please let me know, thanks much. > -- > > > Scott Erickson > Software Development Team, FB-4, Inc. > [EMAIL PROTECTED] > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
