Hi. From the PalmOS4 source, this error is in FldSetText method when the 'offset' param is greated than the size of the 'textHandle' memory block.
Do you call FldSetText somewhere in your code? Or FldSetTextHandle? Jerome [EMAIL PROTECTED] wrote:
I'm attempting to create a LoadDataProcedure, but whenever I run the app, it crashes giving: "Launch Error" on T|X with Garnet 5.4.9 "Field.cpp(6788): Offset passed out of block" on Cobalt simulator "Memory could not be read" on Garnet simulator I have a function which is called from `AppHandleEvent` when the event type = `frmLoadEvent` void MainFormLoad(FormType * pForm){ TableType * pTable = 0;pTable = (TableType *) FrmGetObjectPtr(pForm, FrmGetObjectIndex(pForm, MainTable));int rowsInTable = TblGetNumberOfRows(pTable); int colsInTable = TblGetNumberOfColumns(pTable); for (int i = 0; i < rowsInTable; i++){ for (int j = 0; j < colsInTable; j++){ TblSetItemStyle(pTable, i, j, textTableItem); } } for (int j = 0; j < colsInTable; j++){ TblSetColumnUsable(pTable, j, true); } TblSetLoadDataProcedure(pTable, 1, MainTableDoLoad); TblSetSaveDataProcedure(pTable, 1, MainTableDoSave); pTable = 0; } Currently, `MainTableDoLoad` & `MainTableDoSave` only return `errNone` and `true` respectively. I've stepped through the code using Eclipse and the error is thrown when it returns `MainTableDoLoad` returns. I've also noticed that the Offset & Size pointers passed are 0. I'm assuming that this is because I haven't set an Item Pointer. In addition I have tried to set the Item Pointer and Item Int, but neither method works. Please, any suggestions as searching for "Offset passed out out of block" doesn't return a single item. I can't believe that I'm the only person who's had this issue, but it seems completely ondocumented. Also, if anyone would have a simple example of using TblSetLoadDataProcedure it would be much appreciated. Thanks in advance, John
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
