I received an error (in POSER) that I have seen before.  It 
occurs on non-editable fields.  When the field text is set 
with FldSetTextPtr, I sometimes get an error that states
line 100, "invalid field length" or something like that,
if I tap the field.

What I'm wondering is what is the cause (mechanism) of the 
error?

At first I thought that it might be related to the fact
that the max chars is set to one value and the new ptr
points to a string with a longer length.  But that cannot
be the problem because I have tried this with longer strings
and it seems to work ok, in POSER.  Only, some cases cause
this error.  

Anyone have an explanation of what exactly causes this error?

Related question:
FldSetTextPtr just sets the pointer to a string that is used
by the field.  Therefore the string must exist for the life
of the field.  Is this true for FldInsert() also, or does
this function actually make a copy of the string?

Is there any good book that documents these kinds of things.
I have the API but seem to be silent on this.  Or, maybe I
just missed it.

Thanks

Mike
--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------

Reply via email to