Hi,
I have found a problem in running the my software on pose using the
color ROM.
Using Emulator 3.0a5, the code works fine with all other 3.5 ROM's. But
when using the color ROM's I get either "bus error" or "DataMgr.c,
Line:9014 Bad DBRef".
I have tracked the problem to a DmNumRecords() call, but only in the
frmUpdateEvent. When used in the frmOpenEvent there is no problem.
The problem may be that the DBRef (ie TestDB) is defined as a global
variable which may not be available at this point?
Does anyone have any suggestions or comments?
Thanks,
Marianne Rieckmann.
--------------Example Code Segment-----------------
switch (event->eType)
{
case frmUpdateEvent:
FrmDrawForm(frm);
number = DmNumRecords(TestDB); // bus error occurs here...
handled = 1;
break;
case frmOpenEvent:
FrmDrawForm(frm);
number = DmNumRecords(TestDB);
handled = 1;
break;
case ctlSelectEvent:
if (event->data.ctlEnter.controlID == HelpButton)
{
FrmHelp(Testhelp);
handled = 1;
}
break;
}
--------------Code segment-----------------
------------------------------------------
Trevor Hancock & Marianne Rieckmann
TargetPlot Software
http://www.targetplot.com.au
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
fax +61 2 6258 5226
------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html