Hello,
I am trying to implement database handling on the PalmIIIc with
CodeWarrior R6 and POSE, using callback routines. That is I am writing code
which records and uses the entry point to other low level, building block
routines. The high level routines perform basic operations on a database
(find a record by field values, render a subset of records to strings and
add to a list object, etc), and the low level operations hide the record
specific elements, and would be provided by the calling routines.
The problem is simple. Nine times out of ten (more or less) this works
just fine. On other occasions the address of a routine given by the &
operator does not even appear to be close to the correct value (i.e. view
memory in POSE appears to be looking at an address in outer space). However,
calling the routine by name, and then asking for it's address (& again)
while executing produces the correct answer. PFM?
It does not appear to be segment related. One example showed a
consistent problem with the address of a routine in it's own source file,
let alone segment.
It also does not appear to be related to the code model. Both smart and
large produce the same results.
However, if the project code size decreases or increases (sometimes), or
if the segments are moved (sometimes), the problem goes away, only to
reappear elsewhere.
I am confused. Anyone else thinking clearly?
Simon Bennett,
Senior technical analyst,
System Lynx Ltd,
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/