Why do you just presume? If it were me, I'd go in there with a debugger and
check the actual memory bytes to see if that zero terminator is there or
not.

Also, your snippet didn't include where you allocate the space that the
gLabels handles point to; I'd check to make sure that that's being done
correctly and is ending up with what you expect.

Anyway, I'd bet a dozen donuts that the problem is occurring in the
HoleViewLoadDataFunc, and is probably related to those gLabels handles.

--Jim Preston


"Erik Blake" <[EMAIL PROTECTED]> wrote in message
news:43352@palm-dev-forum...
>
> At 16:16 2001/03/22 -0800, you wrote:
> >Ok, it seems clear, then, that the problem must have to do with your
> >HoleViewLoadDataFunc function, which gets called by the system when the
user
> >selects a table cell. A quick look at the documentation for the
> >TableLoadDataFuncType reveals that the dataH parameter must be an
"Unlocked
> >handle of a block containing a null-terminated text string." You state
that
> >your gLabels, which is what you assign to the dataH, contains "20-odd
bytes
> >of storage".
> >
> >So perhaps your problem is that those 20-odd bytes are not a
null-terminated
> >string?
>
> Thanks, Jim,
>
> I'm presuming that the StrCopy/StrPrintF functions that are used in the
> load callback null-terminate their output. The string display properly
> on-screen. The globally-declared handles are unlocked, although I seem to
> recall that locking them when they were allocated (and before they were
> used to build the table) made no difference.
>
> I've tried to delve into the ToDo code to see if I'm doing the same
things,
> but has been mentioned before on this list, it is meaty code - difficult
to
> extract the bare-bones call sequences to get something to work. Does
anyone
> know of any tutorial code on tables (i.e., nix scrolling, on/off columns,
> etc.)?
>
> Cheers, Erik
> -------------------------------------------------------------------
> Icefield Tools Corporation  tel: (867) 633-4264
> 3C Glacier Road             fax: (867) 633-4217
> Whitehorse, Yukon CANADA    e-mail: [EMAIL PROTECTED]
> Y1A 5S7                     internet: http://www.icefieldtools.com/
>
>
>



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

Reply via email to