Hi all,
I created a database, I'm able to insert the data into that database with out any problem, while I'm trying to read the data and printing on a new page I'm getting some Memory Handle Errors, here is my code:

ProjectNameGetProject(UInt16 index)
{
MemHandle mh;
char* pText;
UInt16 x ;

short width = 10, height = 20;
x = DmNumRecords(db);
for(index=0;index<x;index++)
{
mh = DmQueryRecord( db, index );
pText = (char*)MemHandleLock(mh);
WinDrawChars(pText,StrLen(pText),width,height);
height=height+10;

MemPtrUnlock( pText );
DmReleaseRecord( db, index, true );

}

}

While I'm calling in FrmInit(), I'm getting the following error

"Read from memoory location 0X555555561, causing a Bus Error."

Please any one help.

Thanks in Advance
Srini



_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


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

Reply via email to