I know I missed something here but I don't understand why there are so many
images for the PalmOS 3.5.
1) What is the difference between the Color, EZ and non-EZ images ?
2) I have an application that reports no errors in all version of the debug
ROM's except
on the PalmOS 3.5 image I get the following error
Application has just read directly from an unlocked memory chunk.
It happens the second time I access a dynamically build list.
The app creates a list of apps when the form begins using
SysCreateDataBaseList('appl',0,&_dbAppCount,&_appListHandle,true);
and the list draw function is detailed below.
As you can see I am doing the locking. Any ideas ?
I know I need to get the debugger working to really figure this out I was
just wondering if anyone
knows what changed in PalmOS 3.5 to cause this problem.
#include <Pilot.h>
#include <KeyMgr.h>
#include "PrefUtils.h"
#include "StarterRsc.h"
#include "PrefsHandleEvent.h"
#include "Utilities.h"
Word _dbAppCount;
VoidHand _appListHandle;
static void AppListDrawFunction(UInt itemNum, RectanglePtr bounds, CharPtr
*data)
{
SysDBListItemType *dbItemPtr;
CharPtr charPtr;
// Do a little sanity checking just in case
if (itemNum > _dbAppCount)
return; // Should display error here
if (_appListHandle==NULL)
return;
dbItemPtr = MemHandleLock(_appListHandle);
charPtr=dbItemPtr[itemNum-1].name;
WinDrawChars(charPtr,StrLen(charPtr),bounds->topLeft.x,bounds->topLeft.y);
MemHandleUnlock(_appListHandle);
}