Article View: pilot.programmer.codewarrior
Article #18Re: HELP! "not a label object" error message
From: Ben Combee
Date: Sat, 05 Apr 2003 03:35
Date: Sat, 05 Apr 2003 03:35
31 lines
2816 bytes
2816 bytes
In article <d1b77224.0304041452.7bd6f4a5@posting.google.com>, sashley@strattonpress.com says... > Ben, > > You hit the nail on the head. I wonder why the version 3 ROM accepts > the erroneous FrmCopyLabel call. > > 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. -- Ben Combee <bcombee@metrowerks.com> CodeWarrior for Palm OS technical lead Get help at http://palmoswerks.com/
Technical Details
Message-ID:
<MPG.18f80ae59c2a15ce989a89@news.earthlink.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mailReferences:
<d1b77224.0304030832.24c726db@posting.google.com> <MPG.18f62934361dfc6e989a85@news.earthlink.net> <d1b77224.0304041452.7bd6f4a5@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10baa0,2d577dc25e1dd9b8 X-Google-Attributes: gid10baa0,public X-Google-Thread: 109d41,2d577dc25e1dd9b8 X-Google-Attributes: gid109d41,public X-Google-ArrivalTime: 2003-04-04 19:35:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail From: Ben Combee <combee@techwood.org> Newsgroups: pilot.programmer.codewarrior,codewarrior.palm Subject: Re: HELP! "not a label object" error message Message-ID: <MPG.18f80ae59c2a15ce989a89@news.earthlink.net> References: <d1b77224.0304030832.24c726db@posting.google.com> <MPG.18f62934361dfc6e989a85@news.earthlink.net> <d1b77224.0304041452.7bd6f4a5@posting.google.com> Organization: Techwood Broadcasting Foundation X-Newsreader: MicroPlanet Gravity v2.60 Lines: 31 Date: Sat, 05 Apr 2003 03:35:17 GMT NNTP-Posting-Host: 63.246.177.179 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1049513717 63.246.177.179 (Fri, 04 Apr 2003 19:35:17 PST) NNTP-Posting-Date: Fri, 04 Apr 2003 19:35:17 PST