🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer.codewarrior
Article #19

Re: HELP! "not a label object" error message

#19
From: Stephen S. Ashley
Date: Sat, 05 Apr 2003 17:28
35 lines
2903 bytes
Ben Combee <combee@techwood.org> wrote in message news:<MPG.18f80ae59c2a15ce989a89@news.earthlink.net>...
> > As I work my way through my program using the version 4 ROM, I keep
> > running into similar gotchas. So far, I have been able to solve most
> > of them. Here's one that's got me stumped. My form has a menu, and
> > when you click on one of the menu items, the form calls a function,
> > which retrives a bunch of numbers from a database and displays them in
> > a spreadsheet. If I go directly from my main form to the form in
> > question (i.e., form A to from C), everything works find. However, if
> > I go the form in question indirectly (i.e., form A to form B to form
> > C), the called function (the same code in each case) barfs on this
> > line: "FrmCopyTitle(pFrm, "loading . . .");" As I said, this exact
> > same patch of code works fine when it is reached by a more direct
> > route. When I take the indirect route, I get this error message:
> 
> FrmCopyTitle requires that the original title defined in the form be at 
> least as long as the string to which you're setting the title.  So, if 
> the title on the form as defined in Constructor or PilRC isn't at least 
> 13 characters, that FrmCopyTitle call may overwrite unallocated memory.
> 
> The Palm OS 4 debug ROMs have a lot more debugging checks in them than 
> previous ROM.

I don't think the title length is the problem. The new title is 

"loading . . .". 

The title it replaces is 

"Chi Square Sample Size"


As I noted before, the function handles this title change OK when the
form is reached by the shorter route but not when it is reached by the
longer route. That's why I wondered whether the error message might
have been triggered by a stack overflow.
Technical Details
Message-ID: <d1b77224.0304050928.cd4b7b1@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <d1b77224.0304030832.24c726db@posting.google.com> <MPG.18f62934361dfc6e989a85@news.earthlink.net> <d1b77224.0304041452.7bd6f4a5@posting.google.com> <MPG.18f80ae59c2a15ce989a89@news.earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d41,2d577dc25e1dd9b8
X-Google-Attributes: gid109d41,public
X-Google-Thread: 10baa0,2d577dc25e1dd9b8
X-Google-Attributes: gid10baa0,public
X-Google-ArrivalTime: 2003-04-05 09:28:51 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: sashley@strattonpress.com (Stephen S. Ashley)
Newsgroups: pilot.programmer.codewarrior,codewarrior.palm
Subject: Re: HELP! "not a label object" error message
Date: 5 Apr 2003 09:28:50 -0800
Organization: http://groups.google.com/
Lines: 35
Message-ID: <d1b77224.0304050928.cd4b7b1@posting.google.com>
References: <d1b77224.0304030832.24c726db@posting.google.com> <MPG.18f62934361dfc6e989a85@news.earthlink.net> <d1b77224.0304041452.7bd6f4a5@posting.google.com> <MPG.18f80ae59c2a15ce989a89@news.earthlink.net>
NNTP-Posting-Host: 216.101.185.18
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1049563731 20966 127.0.0.1 (5 Apr 2003 17:28:51 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Apr 2003 17:28:51 GMT