Error in Multi-Segment application.
        I declared a Char array variable, but when I tried to write data
to this variable, the PalmOS throws the next error:

        APP(1,0) just read from memory location 0x302E0098 , causing a
bus error.
        A "bus error" means that the application accessed a memory
location that is not in RAM or ROM, nor corresponds to a memory mapped
hardware register.

        The function in where this error happens is in Segment2.

Thank you 
Karla Garcia 





-----Mensaje original-----
De: Palm Developer Forum digest [mailto:[EMAIL PROTECTED]]
Enviado el: Jueves, 28 de Noviembre de 2002 02:00 a.m.
Para: palm-dev-forum digest recipients
Asunto: palm-dev-forum digest: November 27, 2002


PALM-DEV-FORUM Digest for Wednesday, November 27, 2002.

1. Re: Pilrc, Bitmapfamilyex and transparency
2. graphical button problem.
3. Re: Pilrc, Bitmapfamilyex and transparency
4. Re: Pilrc, Bitmapfamilyex and transparency
5. Re: graphical button problem.
6. Re: Problem in compiling floating point code
7. RE: How to get hotsync user name?
8. Re: Pilrc, Bitmapfamilyex and transparency
9. Re: 30000 records
10. Re: 30000 records
11. =?iso-8859-1?Q?Re:_Problem_in_compiling_floating_point_code?=
12. Re: Latest Constructor
13. ToJim Cooper
14. Re: Pilrc, Bitmapfamilyex and transparency
15. Re: Problem in compiling floating point code
16. Re: How to get hotsync user name?
17. Re: Pilrc, Bitmapfamilyex and transparency
18. OS5 FrmGetActiveField Question?
19. Re: Problem in compiling floating point code
20. Re: Latest Constructor
21. Re: graphical button problem.
22. Re: Problem in compiling floating point code
23. Re: Records left locked in a multisegment app
24. Re: Problem in compiling floating point code
25. Re: Using multisegment error
26. noframe pushbutton
27. i have some trouble for image,sound
28. Re: graphical button problem.
29. Re: graphical button problem.
30. Re: Latest Constructor
31. RE: INetMgr Functions not compiling for me.  Code has good
commenting :)
32. Re: 30000 records
33. fdlib (free distributable math library) link error
34. Re: fdlib (free distributable math library) link error
35. Re: Records left locked in a multisegment app
36. RE: INetMgr Functions not compiling for me.  Code has good
  commenting :)
37. Table custom fields can cause TblDrawTable to fail in Palm OS5
38. Re: Table custom fields can cause TblDrawTable to fail in Palm
  OS5
39. RE: Use Appforge
40. Re: SysCurAppDatabase in a patched DmGet1Resource and Overlays
41. Re: Use Appforge
42. Re: 30000 records
43. Re: ToJim Cooper
44. Re: Use Appforge
45. Re: 30000 records
46. high-resolution timing on OS 5?
47. Gremlins
48. Re: Gremlins
49. Re: List Weirdness
50. Re: high-resolution timing on OS 5?
51. Re: missing object in form
52. Re: high-resolution timing on OS 5?
53. SysCopyStringResource Advice`
54. Re: SysCopyStringResource Advice`
55. Re: Using multisegment error
56. Re: high-resolution timing on OS 5?
57. Palm Pilot to sell (Japanese OS)
58. RE: 30000 records
59. Re: How to get hotsync user name?
60. 5.0 Simulator
61. Re: Records left locked in a multisegment app
62. Re: Records left locked in a multisegment app
63. RE: How to get hotsync user name?
64. RE: How to get hotsync user name?
65. Re: How to get hotsync user name?
66. RE: Using multisegment error
67. Re: Using multisegment error
68. Re: Using multisegment error

----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:17:23 +0100
X-Message-Number: 1

> I made a test with my Palm IIIx OS 3.3 and an emulated PalmOS 3.1 
> yesterday. Both worked fine with 4 gray values and black and white.
> If you can specify it for each member of a bitmap family seperatly
(what 
> you can) it doesn't hurt anybody. Maybe you add a warning into the 
> documentation about the use of transparency and pre OS 3.5 devices
from 
> your point of view. But again, I had no problems with my yesterday
tests.

try a 2.0 rom :)

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: graphical button problem.
From: "Fredrik Mattisson" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:17:43 +0100
X-Message-Number: 2

I can't get graphical buttons work properly.


Only one fourth (lower right corner) of the bitmap is displayed in the
button like this (*** is the button and ---is the bitmap). Is this a
pilrc
problem?


 ***********
*     |     *
*     |     *
*-----      *
*           *
*           *
 ***********


My .rcp file looks like this.
_______________________________

BITMAPFAMILYEX ID test_bmp
BEGIN
   BITMAP "test.bmp" BPP 1 DENSITY 1
   BITMAP "test.bmp" BPP 8 DENSITY 2
END


FORM ID MainForm AT (0 0 160 160)
BEGIN
   BUTTON "" ID test_bmp AT (20 20 AUTO AUTO) GRAPHICAL BITMAPID
test_bmp
SELECTEDBITMAPID test_bmp
END
________________________________

The test.bmp is 50x50 pixels, and the problem remain if I change AUTO
AUTO
to other values.
I'm using gcc 2.95.3-kgpd, and PilRC v2.9 patch release 9. I'm running
on
the palmOs5 simulator.


Why can everybody else do graphical buttons but me. :�-(
Please help.
Regards, Fredrik Mattisson.


----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:22:05 +0100
X-Message-Number: 3

Hm, I don't even have one, I assume. :) But which devices still have 
PalmOS < 3.1? Are there many? Do they still spend money for anything 
else then old used cars?

Henk

Aaron Ardiri wrote:
>>I made a test with my Palm IIIx OS 3.3 and an emulated PalmOS 3.1 
>>yesterday. Both worked fine with 4 gray values and black and white.
>>If you can specify it for each member of a bitmap family seperatly
(what 
>>you can) it doesn't hurt anybody. Maybe you add a warning into the 
>>documentation about the use of transparency and pre OS 3.5 devices
from 
>>your point of view. But again, I had no problems with my yesterday
tests.
> 
> 
> try a 2.0 rom :)
> 
> ---
> Aaron Ardiri
[EMAIL PROTECTED]
> CEO - CTO                                                  +46 70 656
1143
> Mobile Wizardry
http://www.mobilewizardry.com/
> 
> 
> 


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: "James" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 00:24:38 -0800
X-Message-Number: 4

"Aaron Ardiri" wrote in message news:102816@palm-dev-forum...
>
> > Also, I've seen a few devices that freeze or crash when attempting
to
draw
> > transparent, 1-bit bitmaps to screens of higher bit-depths.
>
> transparency is a 3.5+ feature. i was having problems on pre3.5
devices
with
> transparency bit being set. thats why i disabled them for all but
color.
if
> your minimum os is 3.5, you can use transparency all round.

Well, maybe transparency is /supposed/ to work all around is OS 3.5 and
later, but I've seen some OS4 devices that sometimes do not like 1-bit
transparent bitmaps. (IIRC, they were some of Sony's high-resolution
CLIEs,
and it happened only under certain--but not uncommon--conditions.)



----------------------------------------------------------------------

Subject: Re: graphical button problem.
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:24:22 +0100
X-Message-Number: 5

Looks, like pilrc, doesn't calculate the size correctly. But I fear it 
is not possible? Pilrc can't know, if you have density 1 or 2 on the 
actual device and therefore don't know if to make the button 25 or 50 
pixels. You better double the size of your bitmap for density 2.

Henk

Fredrik Mattisson wrote:
> I can't get graphical buttons work properly.
> 
> 
> Only one fourth (lower right corner) of the bitmap is displayed in the
> button like this (*** is the button and ---is the bitmap). Is this a
pilrc
> problem?
> 
> 
>  ***********
> *     |     *
> *     |     *
> *-----      *
> *           *
> *           *
>  ***********
> 
> 
> My .rcp file looks like this.
> _______________________________
> 
> BITMAPFAMILYEX ID test_bmp
> BEGIN
>    BITMAP "test.bmp" BPP 1 DENSITY 1
>    BITMAP "test.bmp" BPP 8 DENSITY 2
> END
> 
> 
> FORM ID MainForm AT (0 0 160 160)
> BEGIN
>    BUTTON "" ID test_bmp AT (20 20 AUTO AUTO) GRAPHICAL BITMAPID
test_bmp
> SELECTEDBITMAPID test_bmp
> END
> ________________________________
> 
> The test.bmp is 50x50 pixels, and the problem remain if I change AUTO
AUTO
> to other values.
> I'm using gcc 2.95.3-kgpd, and PilRC v2.9 patch release 9. I'm running
on
> the palmOs5 simulator.
> 
> 
> Why can everybody else do graphical buttons but me. :�-(
> Please help.
> Regards, Fredrik Mattisson.
> 
> 
> 


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: Problem in compiling floating point code
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:25:40 +0100
X-Message-Number: 6

Ever tried 0.0?

Frederic Sutter wrote:
> FlpDouble diametreFois2_5 = 0;
> 
> Gcc says that it has an initialization error !


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: RE: How to get hotsync user name?
From: Amit Solanki <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:14:10 +0530
X-Message-Number: 7

Use this code:

MemHandle nameH;
Char * nameP;

 nameH = MemHandleNew(dlkMaxUserNameLength + 1);
 nameP = MemHandleLock(nameH);
 StrCopy(nameP, "");

 // Try and use the user's name
 DlkGetSyncInfo(NULL, NULL, NULL, nameP, NULL, NULL);

Regards,
Amit Solanki.

-----Original Message-----
From: Miken [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 12:38 PM
To: Palm Developer Forum
Subject: How to get hotsync user name?

How to get hotsync user name in codewarrior?
Thanks.



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

----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:05:03 +0100
X-Message-Number: 8

> in my game, I need transparency also for grayscale and b/w (even if it
> doesn't really look good). I draw a round ball on a background and the
> rectangle around the ball looks horrible. With transparency it looks
> fine. And you have the possiblity to add transparency for each member
of
> a bitmap family.

do you know how horribly slow transparency is?

you should look at window copying and using the properties:

  winPaint, winInvert, winMask, winOverlay

:) you'll find it will be a lot faster and, more efficient than using
the very badly written 'transparency' layer provided in the API :)

   WinCopyRectangle(winMaskBitmap, WinGetDrawWindow(),
                    &rect, scrRect.topLeft.x, scrRect.topLeft.y,
winMask);
   WinCopyRectangle(winDataBitmap, WinGetDrawWindow(),
                    &rect, scrRect.topLeft.x, scrRect.topLeft.y,
winOverlay);

for example.. this works on a *lot* of devices :)

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: Re: 30000 records
From: Jim Cooper <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:11:45 +0000
X-Message-Number: 9


> But it is on every one my clients use.  

<sigh> Then that's fine, isn't it? However, I'm making a general point,
not a specific one on your application. Most PalmOS devices do not have
bar code scanners, agreed?

> Wrong again.  

<sigh again> I'm obviously not very good at making a point clearly.

> Some do, some don't.

<sigh> And didn't I say that from the start? My point is that it is
often a knee jerk reaction to provide huge amounts of data on a PDA (not
just Palms). My experience is that this is done far too often. Sometimes
you can't avoid it, which is when I start recommending our customers use
the many logical records in one physical record technique.

> Quite a bit can be necessary actually

I know. I've written accounting systems. But I also know that is not
**usually** the case. Special pricing systems are normally not that
complex. On the other hand, I've seen some that are too complex to
really work on a PDA.

>   1) The customer is always right.

Bollocks. I've come across many customers who were wrong. How you treat
them when they are is another matter, but wrong is wrong.

> And in my field there *is* an advantage

<sigh> Fine. But in many fields there isn't, and/or syncs take a long
time etc. Arguing a general point from your one specific case is
misleading.

> It all depends on your target market.  In my case, it is 100% of the
users.

<sigh> Of course!!!!!

> In my experience there is no contest.  Use large record lengths.

And if you read posts on this and other newsgroups, you will see that I
have recommended that many times. However, there are also occasions
where that approach makes the software (both on the device and in the
conduit) very complex. Even in the simplest case of read-only data on
the handheld, it makes the PDA end more complicated. So if you can get
away with loading fewer records, I always recommend that as a first
choice.

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

----------------------------------------------------------------------

Subject: Re: 30000 records
From: Jim Cooper <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:20:00 +0000
X-Message-Number: 10


> Yes. For one thing, they're paying the bills. 

In which case, a successful strategy I sometimes use is to make what
they want really expensive, especially if I don't really want to do it
:-)

> For another, it may be us who are ignorant and not them.

Yes, but you should know if you're ignorant, shouldn't you? :-) In those
cases it is necessary to understand enough of their problem domain to
provide an adequate solution. This is just basic requirements
gathering/elicitation.

> No, you never "need" to educate anyone. 

Sure you do, lots of times. How you go about it is important, of course.

> There are some customers who aren't
> interested in your reeducation attempts.

Agreed! :-)

> I do maintain that the customer is always right. However, sometimes
it's
> indeed possible to "educate" them to make them change their minds
about
> what's right. 

Well, I think we're saying the same thing in a different way. (And I'm
not talking about trivial things like how they want the UI to be all
pink and lilac, BTW <vbg>  Sadly, I'm thinking of an actual project)

> And sometimes they're too damn stupid for me to allow them to
> continue to be my customers. :)

:-)

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

----------------------------------------------------------------------

Subject: =?iso-8859-1?Q?Re:_Problem_in_compiling_floating_point_code?=
From: "=?iso-8859-1?Q?Frederic_Sutter?=" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:21:06 +0100
X-Message-Number: 11

Yes, and I have the same error message !


> Ever tried 0.0?
> 
> Frederic Sutter wrote:
> > FlpDouble diametreFois2_5 =3D 0;
> > 
> > Gcc says that it has an initialization error !
> 
> 
> -- 
>
------------------------------------------------------------------------
-
> [EMAIL PROTECTED]
www.metaviewsoft.de
> 
> <A
HREF=3D"http://www.handango.com/PlatformTopSoftware.jsp?authorId=3D95946
">
> <IMG
SRC=3D"http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
>
------------------------------------------------------------------------
-
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
> 
------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 


----------------------------------------------------------------------

Subject: Re: Latest Constructor
From: Stephen Best <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 20:51:38 +1100
X-Message-Number: 12

Ben,

> ... will fail if the total size of your RAM plus your Windows swapfile
> is over 2MB.

I must take another look at Windows. Looks like MS have finally got
their
act together.

:-).

Stephen Best
Bitware Australia


----------------------------------------------------------------------

Subject: ToJim Cooper
From: "Zakaria OUSMAAL" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:56:50 +0100
X-Message-Number: 13

Hi,
I am Zak form Actus Company
and i want to know what's a new about your Sync component ?
thanks a lot

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Jim
Cooper
Envoye : mercredi 27 novembre 2002 10:20
A : Palm Developer Forum
Objet : Re: 30000 records



> Yes. For one thing, they're paying the bills.

In which case, a successful strategy I sometimes use is to make what
they want really expensive, especially if I don't really want to do it
:-)

> For another, it may be us who are ignorant and not them.

Yes, but you should know if you're ignorant, shouldn't you? :-) In those
cases it is necessary to understand enough of their problem domain to
provide an adequate solution. This is just basic requirements
gathering/elicitation.

> No, you never "need" to educate anyone.

Sure you do, lots of times. How you go about it is important, of course.

> There are some customers who aren't
> interested in your reeducation attempts.

Agreed! :-)

> I do maintain that the customer is always right. However, sometimes
it's
> indeed possible to "educate" them to make them change their minds
about
> what's right.

Well, I think we're saying the same thing in a different way. (And I'm
not talking about trivial things like how they want the UI to be all
pink and lilac, BTW <vbg>  Sadly, I'm thinking of an actual project)

> And sometimes they're too damn stupid for me to allow them to
> continue to be my customers. :)

:-)

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

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


----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:57:29 +0100
X-Message-Number: 14

Aaron,

thank you very much. The stuff with the mask sounds reasonable, but I 
had never found it myself. Will give it a try. But at the end, even if I

will see if masking works faster and gives fine results, my opinion 
about the transparency is still valid :-)

Aaron Ardiri wrote:
> 
> do you know how horribly slow transparency is?

Yes, I got a small impression of it.

> you should look at window copying and using the properties:
> 
>   winPaint, winInvert, winMask, winOverlay
> 
> :) you'll find it will be a lot faster and, more efficient than using
> the very badly written 'transparency' layer provided in the API :)
> 
>    WinCopyRectangle(winMaskBitmap, WinGetDrawWindow(),
>                     &rect, scrRect.topLeft.x, scrRect.topLeft.y,
winMask);
>    WinCopyRectangle(winDataBitmap, WinGetDrawWindow(),
>                     &rect, scrRect.topLeft.x, scrRect.topLeft.y,
> winOverlay);
> 
> for example.. this works on a *lot* of devices :)

right, I always tried winOverlay alone, which doesn't produce the right 
results... I'm not a born game developer, I see.

Henk

-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: Problem in compiling floating point code
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 11:04:09 +0100
X-Message-Number: 15

 From the docs:

"... FlpDouble. The FlpCompDouble union allows you to declare
values that can be interpreted either as a double or as an
FlpDouble."

So you have to declare FlpCompDouble or use some recastings?

Henk

Frederic Sutter wrote:
> Yes, and I have the same error message !
> 
> 
> 
>>Ever tried 0.0?
>>
>>Frederic Sutter wrote:
>>
>>>FlpDouble diametreFois2_5 = 0;
>>>
>>>Gcc says that it has an initialization error !
>>
>>
>>-- 
>>----------------------------------------------------------------------
---
>>[EMAIL PROTECTED]
www.metaviewsoft.de
>>
>><A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
>><IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
>>----------------------------------------------------------------------
---
>>
>>
>>-- 
>>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>>
> 
> ------------------------------------------
> 
> Faites un voeu et puis Voila ! www.voila.fr 
> 
> 
> 


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: How to get hotsync user name?
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 11:05:34 +0100
X-Message-Number: 16

> How to get hotsync user name in codewarrior?

the same way you do with prc-tools. check the archives.

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: Re: Pilrc, Bitmapfamilyex and transparency
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 11:06:54 +0100
X-Message-Number: 17

> thank you very much. The stuff with the mask sounds reasonable, but I 
> had never found it myself. Will give it a try. But at the end, even if
I 
> will see if masking works faster and gives fine results, my opinion 
> about the transparency is still valid :-)

:)

> right, I always tried winOverlay alone, which doesn't produce the
right 
> results... I'm not a born game developer, I see.

well.. mask = AND NOT, overlay = OR.

you gotta remove the pixels you dont want before you overlay the image
you want :) standard gaming principles *g*

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: OS5 FrmGetActiveField Question?
From: "John Lee" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:32:42 +0800
X-Message-Number: 18

        Hi.
        Running program from user define LaunchCode to receive current
active field or focus.
        Using FrmGetActiveField(NULL) can return NULL,
        Anybody know what's the diffirent OS5 API
"FrmGetActiveField(NULL)" from last version?
        and perhaps other reasons.

        

                




----------------------------------------------------------------------

Subject: Re: Problem in compiling floating point code
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 04:35:12 -0600
X-Message-Number: 19

At 09:25 2002-11-27 +0100, you wrote:
>Ever tried 0.0?
>
>Frederic Sutter wrote:
>>FlpDouble diametreFois2_5 = 0;
>>Gcc says that it has an initialization error !

0.0 won't work... FlpDouble is a structure type.  You should instead use

FlpCompDouble, which is a union of the FlpDouble and double types.
Assign 
0.0 to the double part of the union, then pass the FlpDouble part of the

union to functions that need a FlpDouble.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Re: Latest Constructor
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 04:38:03 -0600
X-Message-Number: 20

At 20:51 2002-11-27 +1100, you wrote:
>Ben,
>
> > ... will fail if the total size of your RAM plus your Windows
swapfile
> > is over 2MB.
>
>I must take another look at Windows. Looks like MS have finally got
their
>act together.
>
>:-).

OK, that should have read 2GB... arghh!

Too bad that Constructor seems to fail due to an old Mac OS call for 
getting free memory poorly translated to Win32...

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Re: graphical button problem.
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 04:41:50 -0600
X-Message-Number: 21

At 09:24 2002-11-27 +0100, you wrote:
>Looks, like pilrc, doesn't calculate the size correctly. But I fear it
is 
>not possible? Pilrc can't know, if you have density 1 or 2 on the
actual 
>device and therefore don't know if to make the button 25 or 50 pixels.
You 
>better double the size of your bitmap for density 2.

PilRC probably should warn if the sizes for different members of a
bitmap 
or icon family have sizes that don't match up.  I'd be glad to look at 
patches that added that behavior.  I haven't checked, but I'd also
expect 
that graphical controls should also have warnings if their label text is

anything other than a blank string, since the text would be thrown out
in 
order to store the bitmap IDs.

However, I think the real issue is that AUTO width/height only works
when 
you have text, and PilRC can use its internal knowledge of font metrics
to 
compute the size of the button.  Since you may not have defined your 
bitmaps yet (they could even be defined in a separate file), it doesn't 
necessarily anything to use to compute sizes.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Re: Problem in compiling floating point code
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 11:51:02 +0100
X-Message-Number: 22

> >Frederic Sutter wrote:
> >>FlpDouble diametreFois2_5 = 0;
> >>Gcc says that it has an initialization error !
>
> 0.0 won't work... FlpDouble is a structure type.  You should instead
use
> FlpCompDouble, which is a union of the FlpDouble and double types.
Assign
> 0.0 to the double part of the union, then pass the FlpDouble part of
the
> union to functions that need a FlpDouble.

how about:

  FlpDouble diametreFois2 = { };

that should do it as well :)

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: Re: Records left locked in a multisegment app
From: John Marshall <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 12:29:11 +0100
X-Message-Number: 23

On Tue, Nov 26, 2002 at 06:19:33PM -0600, Ben Combee wrote:
> This looks like a problem with the runtime library code -- the runtime

> loads all of your additional segments before PilotMain is called, and 
> should unlock and release them when your app is completed.  With the
CW 
> libraries, this occurs automatically when you return from PilotMain.

Ditto (of course) with the prc-tools startup code for applications (but
replace "additional segments" by "additional code resources" -- that
terminology would IMHO be at least as accurate in the CW case too).

Most likely the resources which are being complained about are indeed
the application's extra code resources: they are the only resources that
are locked down before PilotMain() runs but not immediately unlocked,
which fits the symptoms Dominique is seeing.  (I hacked a lock count
column onto a (crappy old) database viewer application of mine, which I
can send to Dominique if she likes, so she can confirm this.  Or it's a
five minute job to add a quick and nasty check from within the app.)

However this does not necessarily indicate a problem with the startup
(well, shutdown :-)) code.  More likely the application is accidentally
subverting that code.

The code in question [1] simply iterates over 'code' resources using
DmGet1Resource() and unlocks them until there are no more of them.
There is an obvious fragility here in that it is only looking in the
top-most resource database (and its overlays), and it won't find any
'code' resources to iterate over if your application is not top-most
[2].

Thus the easiest way to subvert the multiple code resources unloader is
to be using another resource database in your application and then to
leave it open when your application exits.  Don't do that.

Perhaps Dominique's application is doing that?

Incidentally, assuming (and to be sure this is a big assumption :-))
that PalmOS_Startup.c (e.g. as reflected in the 5.0 SDK) really is the
startup code used by CodeWarrior, the CW runtime library uses
DmGet1Resource() in the same way and would be similarly subverted.

> Perhaps GDB is leaving the segments locked when it loads the app onto
> the device/emulator.

Whether or not a GDB is connected has no effect whatsoever on how the
application is loaded or locked down.

    John

[1] namely the function _GccReleaseCode() to be found in dreloc.c --
 
http://cvs.sf.net/cgi-bin/viewcvs.cgi/prc-tools/prc-tools/crt/dreloc.c

[2] I suppose it would be possible to use DmFindResourceType() or so
    to avoid this, but I'd prefer to avoid having to consider the
overlay
    implications as long as humanly possible :-)

----------------------------------------------------------------------

Subject: Re: Problem in compiling floating point code
From: John Marshall <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 12:29:35 +0100
X-Message-Number: 24

On Wed, Nov 27, 2002 at 08:18:56AM +0100, Frederic Sutter wrote:
> why does this code not compile ?
> 
> FlpDouble diametreFois2_5 = 0;

What's a FlpDouble?  (Hint: look in FloatMgr.h.)  Why do you want to
use it?  IMHO it's best just to use surprisingly named types like
"float"
and "double", and to resort to careful use of the various elements of
FlpCompDouble when you want to use FlpBufferAToF() et al.  But no
explicit FlpDoubles.

See also

        http://www.escribe.com/computing/pcpqa/m35274.html
        http://www.escribe.com/computing/pcpqa/m33596.html

    John

----------------------------------------------------------------------

Subject: Re: Using multisegment error
From: John Marshall <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 12:27:17 +0100
X-Message-Number: 25

On Tue, Nov 26, 2002 at 11:50:04PM -0500, Dominique wrote:
> "Amit Solanki" <[EMAIL PROTECTED]> wrote in various messages:
>> warning: no memory region specified for section `section2'

Warnings like this indicate that you haven't told the linker about a
code section named "section2".  This would happen if you weren't giving
(both of) the outputs from multigen to the linker properly, or if your
definition file didn't list the right sections.  If not for the other
errors from the linker, if you also didn't tell build-prc about a code
section named "section2" it would give a _spurious code section_
diagnostic, which is a hard error.  Something Is Wrong.

>> "Sections.h" :
>>      #define SECT1 __attribute__((section("section1")))
>>      #define SECT2 __attribute__((section("section2")))

>> multiple code {SECT1 SECT2 }

> I don't think that multigen can use 'C' style #defines, and in that
case
> you'd need a #include "sections.h" (or whatever).

Correct.  I've considered passing .def files through the preprocessor,
but really it seems like more trouble than it's worth.  I really don't
want build-prc to get into the game of running other programs.  If one
really wanted to preprocess a .def file, it could be arranged manually
in one's makefile pretty easily.

Even if the SECT1 etc macros were available in the .def file, they would
expand to all that "__attribute__ ((section ...))" gobbledygook, which
is not what you want.

> Replace SECT1 and SECT2
> with "section1" and "section2" (you must use the ") and see what
happens.

This is good advice.  (You don't actually need the quotes here, but
there is certainly no harm in writing them.)

    John

----------------------------------------------------------------------

Subject: noframe pushbutton
From: "Fredrik Mattisson" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 12:30:23 +0100
X-Message-Number: 26

It's seems that PalmOS does not support pushbuttons without frames, is
this
correct?

Regards, Fredrik Mattisson



----------------------------------------------------------------------

Subject: i have some trouble for image,sound
From: "ginaida" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 21:21:34 +0900
X-Message-Number: 27

i try to save Image&Sound File through network..

but i don't know what can i do.

what can i do for costruct (Image,Sound)Pdb.

and how load it.

please some reply



----------------------------------------------------------------------

Subject: Re: graphical button problem.
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 13:40:48 +0100
X-Message-Number: 28

> 
> PilRC probably should warn if the sizes for different members of a 
> bitmap or icon family have sizes that don't match up.  I'd be glad to 

right, the OS doesn't show bitmaps from a family with members with 
different sizes

> look at patches that added that behavior.  I haven't checked, but I'd 

hm, maybe I look inside the code again ;-) but how to do the stuff with 
the patches, I don't know...

Henk

-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: graphical button problem.
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 13:44:41 +0100
X-Message-Number: 29

> > PilRC probably should warn if the sizes for different members of a 
> > bitmap or icon family have sizes that don't match up.  I'd be glad
to 
> 
> right, the OS doesn't show bitmaps from a family with members with 
> different sizes
> 
> > look at patches that added that behavior.  I haven't checked, but
I'd 
> 
> hm, maybe I look inside the code again ;-) but how to do the stuff
with 
> the patches, I don't know...

once again, graphical buttons are 3.5+ things :) i wouldn't use the AUTO
feature for the width/height of these buttons. you know the width/height
of your bitmap, so, why not just put them in?

if you want backward compatibility before 3.5, you just do an empty
button
and put your image over the top of the button. however, this will not
give
desired effects with 'inverting' of colors if your running on a color 
device.

i dont believe the pilrc code is aware of the bitmap height/width when
it comes across a graphical button :) remember, its just an ID reference
:)

---
Aaron Ardiri
[EMAIL PROTECTED]
CEO - CTO                                                  +46 70 656
1143
Mobile Wizardry
http://www.mobilewizardry.com/


----------------------------------------------------------------------

Subject: Re: Latest Constructor
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 13:44:43 +0100
X-Message-Number: 30

sounds like the use of a signed 32 bit variable?

Henk

Ben Combee wrote:
> 
> OK, that should have read 2GB... arghh!
> 
> Too bad that Constructor seems to fail due to an old Mac OS call for 
> getting free memory poorly translated to Win32...
> 


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: RE: INetMgr Functions not compiling for me.  Code has good
commenting :)
From: "Jason D. Kleban" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:28:11 -0500
X-Message-Number: 31

I am going to put your book on my list for purchase recommendations!  I
am currently investigating the PalmOS as a development platform.

I am, in fact, specifically researching for the Palm VII/VIIx/i705.  You
say PalmOS5 doesn't support the wireless? or the INetLib?=20

Does Palm 5 have something else to replace it? =20

If I use that new method, will it still work on the Palm VII/VIIx/i705?

Thanks,

Jason

-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 5:52 PM
To: Palm Developer Forum
Subject: Re: INetMgr Functions not compiling for me. Code has good
commenting :)



>INetLibConfigIndexFromName() expects a pointer to a INetConfigNameType
>as its second parameter.  After studying the Reference, Companion, and
>SDK examples (ha! -- no INetLib examples), it's not clear to me what
the
>intended way of using string literals such as inetCfgNameDefWireless
>with it is, but just using them is certainly not sufficient.

There is an InetLib example in the Palm OS knowledgebase -- search of=20
"INetLow".

Jason, you also may find the 100-page long chapter on INetLib
programming=20
in my book, "Palm OS Web Application Developer's Guide" useful.  It
gives=20
lots of code for an INetLib client app and talks a lot about what wasn't

completed in the library and how to get around the many INetLib bugs.

Of course, unless you're explicitly supporting the Palm VII/VIIx/i705,
you=20
might now want to use INetLib at all, since its not supported on Palm OS
5=20
and isn't going to be supported in the future, as best I can tell.

--=20
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


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

----------------------------------------------------------------------

Subject: Re: 30000 records
From: Douglas Handy <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:42:43 -0500
X-Message-Number: 32

Jim,

><sigh again> I'm obviously not very good at making a point clearly.
>
>> Some do, some don't.
>
><sigh> And didn't I say that from the start? 

I thought you said from the start that large databases were never
sensible on a
PDA, and any customer who requested it needed re-education.  In
reviewing the
thread, perhaps I read too much into your reply.

Mea culpa.

>Sometimes
>you can't avoid it, which is when I start recommending our customers
use
>the many logical records in one physical record technique.

I fully agree, and it is the same technique I use and recommend.  My
whole
contention is that it *can* be sensible to have large databases,
although it may
be the exception rather than the norm.  And you don't have to have long
sync
times to accomplish it.

As long as you are not contending the customer is always wrong if they
want a
large database, then I can agree the decision can be made on a case by
case
basis.  While the application can get marginally more complex, it is not
a
significant issue because you just encapsulate the pseudo-"record"
handling
behind some functions where it processes a logical subset of a physical
record.

Doug

----------------------------------------------------------------------

Subject: fdlib (free distributable math library) link error
From: "Jay Francis" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 09:21:26 -0600
X-Message-Number: 33

In an attempt to use the free math library:  I brought the necessary
files
into my project subdirectory.
Added them to my project
fdlibm.h
w_log10.c
e_log10.c
e_log.c

Referenced the header in my c file that uses the log10 function AND in
the
above c files,   #include "fdlibm.h"

I get these 3 errors.  I haven't any idea what this means.  The
w_log10.c
file is a wrapper and makes no sense to me.  Any help would be
appreciated.
Jay


Link Error   : w_log10.c: '_fdlib_version' referenced from 'log10' is
undefined.

Link Error   : w_log10.c: 'isnan' referenced from 'log10' is undefined.

Link Error   : w_log10.c: '__kernel_standard' referenced from 'log10' is
undefined.



----------------------------------------------------------------------

Subject: Re: fdlib (free distributable math library) link error
From: Henk Jonas <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 16:41:14 +0100
X-Message-Number: 34

The package has more files, I guess? And you probably need more files 
(if not to say all files) to build the whole stuff. Or if you only want 
to use a small part of this lib, you will have to cut and paste the 
right things together. Search the files for _fdlib_version. It's 
probably something declared extern.

Henk

Jay Francis wrote:
> In an attempt to use the free math library:  I brought the necessary
files
> into my project subdirectory.
> Added them to my project
> fdlibm.h
> w_log10.c
> e_log10.c
> e_log.c
> 
> Referenced the header in my c file that uses the log10 function AND in
the
> above c files,   #include "fdlibm.h"
> 
> I get these 3 errors.  I haven't any idea what this means.  The
w_log10.c
> file is a wrapper and makes no sense to me.  Any help would be
appreciated.
> Jay
> 
> 
> Link Error   : w_log10.c: '_fdlib_version' referenced from 'log10' is
> undefined.
> 
> Link Error   : w_log10.c: 'isnan' referenced from 'log10' is
undefined.
> 
> Link Error   : w_log10.c: '__kernel_standard' referenced from 'log10'
is
> undefined.
> 
> 
> 
> 


-- 
------------------------------------------------------------------------
-
[EMAIL PROTECTED]
www.metaviewsoft.de

<A
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
------------------------------------------------------------------------
-


----------------------------------------------------------------------

Subject: Re: Records left locked in a multisegment app
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:44:22 -0600
X-Message-Number: 35


>Incidentally, assuming (and to be sure this is a big assumption :-))
>that PalmOS_Startup.c (e.g. as reflected in the 5.0 SDK) really is the
>startup code used by CodeWarrior, the CW runtime library uses
>DmGet1Resource() in the same way and would be similarly subverted.

Nope... current versions of CW use PalmOS_Startup.cpp from the "CW for
Palm 
OS Support" folder -- PalmSource really shouldn't be distributing old 
runtime sources, but that's a different issue.

However, the code to release code resources is similar in the two 
files.  I'll check to see if we can still malfunction like this.  Thanks

for the headsu up.

> > Perhaps GDB is leaving the segments locked when it loads the app
onto
> > the device/emulator.
>
>Whether or not a GDB is connected has no effect whatsoever on how the
>application is loaded or locked down.

Ah... the CW debugger adds an additional lock on all the code resources
as 
it loads them onto the device so it can fix the location of all the code
to 
map to the SYM symbolics file and debug the same program across multiple
runs.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: RE: INetMgr Functions not compiling for me.  Code has good
  commenting :)
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:48:52 -0600
X-Message-Number: 36

At 09:28 2002-11-27 -0500, you wrote:
>I am going to put your book on my list for purchase recommendations!  I
>am currently investigating the PalmOS as a development platform.
>
>I am, in fact, specifically researching for the Palm VII/VIIx/i705.
You
>say PalmOS5 doesn't support the wireless? or the INetLib?

Palm OS 5 supports wireless technology, but everything it supports is
able 
to use plain NetLib -- 802.11b, Bluetooth, GPRS -- or uses the SMS layer

(short messaging).

>Does Palm 5 have something else to replace it?

NetLib -- Greg Winton's book "Palm OS Network Programming" is an
excellent 
tutorial/reference on that.

>If I use that new method, will it still work on the Palm VII/VIIx/i705?

No.  Those devices require INetLib to go wireless, but its a dead-end 
beyond the life of those devices (actually, its likely the Tungsten W
will 
support it, but that's because its still a Palm OS 4.1 device, and it
will 
support NetLib too).

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Table custom fields can cause TblDrawTable to fail in Palm OS5
From: DeVon Fowler <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 08:55:06 -0800 (PST)
X-Message-Number: 37

Summary:
The custom draw routine initializes all table fields
as "customTableItem".  The draw routine collects the
information to be displayed and calls a speciality
routine based on the required formatting.  The
speciality routine creates a new field with specific
attributes, the field is drawn on the table, then the
field is destroyed.  The FormPtr passed to
FldNewField() changes from x7602 to x7D94.  
TableDrawText displays data successfully in the
correct table location when steped through in debug.

On return from the custom draw routine, DrawTable
(internal to TblDrawTable) produces an error as shown
below.  Best guess is that the FormPtr change (from
x7602 to x7D94) is causing the problem.  Looks like
TblDrawTable does not handle a changed FormPtr
gracefully.

Has anyone encountered this issue?  Any ideas on ways
to resolve this issue in the port to Palm OS 5?  Any
receipes for working around this issue would be
helpful and appreciated.

DeVo

Error Details:
... just read from memory location 0x000076E6, which
is in an unallocated chunk of memory.

Code Details:
void InitializeMyListTableDisplay(void)
{
        TablePtr        tableP =
(TablePtr)GetObjectPtr(PlayerLookupListTable);
        short           rowsInTable, colsInTable;
        short           row, col;
        
        rowsInTable = TblGetNumberOfRows(tableP);
        colsInTable = TblGetNumberOfColumns(tableP);
        for (row = 0; row < rowsInTable; row++) 
        {
                for(col=0;col<colsInTable;col++)
                {
                        TblSetItemStyle(tableP, row, col,
customTableItem);
                }
        }

        for(col=0;col<colsInTable;col++)
        {
                TblSetColumnUsable(tableP, col, true);
                TblSetCustomDrawProcedure(tableP, col,
DrawMyListTableRow);            
        }       
}
//
void DrawMyListTableRow(VoidPtr table, short row,
short column, 
        RectanglePtr bounds)
{
...
        switch(column)
        {
                case 1:
                        ...//populate gBuffer
                        TableDrawText(table, row, column, bounds, (char
*)gBuffer, fntId);
        ...
        }
}
//
void TableDrawText(VoidPtr table, Short row, Short
column, 
        RectanglePtr bounds, char* valu, FontID fntId)
{
...     
        frmP = FrmGetActiveForm();
        oldFrmP = frmP;
        fld = FldNewField((void**)&frmP, objectID, 
                                0, 0, 0, 0, 
                                0, kMaxTextStringLength, false,
noUnderline, true,
false,
                                leftAlign, false, false, false);
        //frmP != oldFrmP after call
...
        FldDrawField(fld);
        FldFreeMemory(fld);
...
}


----------------------------------------------------------------------

Subject: Re: Table custom fields can cause TblDrawTable to fail in Palm
  OS5
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 11:02:42 -0600
X-Message-Number: 38

At 08:55 2002-11-27 -0800, you wrote:
>Summary:
>The custom draw routine initializes all table fields
>as "customTableItem".  The draw routine collects the
>information to be displayed and calls a speciality
>routine based on the required formatting.  The
>speciality routine creates a new field with specific
>attributes, the field is drawn on the table, then the
>field is destroyed.  The FormPtr passed to
>FldNewField() changes from x7602 to x7D94.
>TableDrawText displays data successfully in the
>correct table location when steped through in debug.
>
>On return from the custom draw routine, DrawTable
>(internal to TblDrawTable) produces an error as shown
>below.  Best guess is that the FormPtr change (from
>x7602 to x7D94) is causing the problem.  Looks like
>TblDrawTable does not handle a changed FormPtr
>gracefully.
>
>Has anyone encountered this issue?  Any ideas on ways
>to resolve this issue in the port to Palm OS 5?  Any
>receipes for working around this issue would be
>helpful and appreciated.

Rather than creating a new field, have a stored non-usable field on the 
form.  Move and resize it as needed to to your drawing, or just make
your 
own code to draw multi-row text that uses the various font routines to 
calculate the width of chars and where to wrap text.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: RE: Use Appforge
From: "Ezekiel Sunday" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:07:42 -0000
X-Message-Number: 39

hi Marcelino
 happy to find that you also use appforge.I have developed an
application which i have deplored unto the palm device.However i have
realise that i can't uninstall the application since the application
goes into the ROM after the hotsync process that transfers the
application.
Could you please help me as to how one can uninstall the application.

thanks

-----Original Message-----
From: Marcelino San Miguel F. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:53 PM
To: Palm Developer Forum
Subject: Re: Use Appforge


x-precedence:bulk

Hello Ezequiel,

I use Appforge for development in Palm. If you require of some aid, I am
to
your you order

Yo uso Appforge para desarrollar en dispositivos Palm. Si requieres de
alguna ayuda, estoy a tus ordenes.

Marcelino


----- Original Message -----
From: "Ezekiel Sunday" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 9:23 AM
Subject: Use Appforge


Hi All
 Is there any one using Appforge to develop palm - held applications
Please if you do,get in touch with me

thanks
ezekiel

-----Original Message-----
From: Alf C Stockton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 9:06 AM
To: Palm Developer Forum
Subject: Variables


x-precedence:bulk

Could someone please send me  a list of variable types from the earlier
SDKs and how they map to SDK 5.
Two variable types that I need right now are Word and Int(note the
capital i). What are their SDK 5 equivalents ?

Regards,
Alf Stockton www.stockton.co.za
It is against the law for a monster to enter the corporate limits of
Urbana, Illinois.


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

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



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

----------------------------------------------------------------------

Subject: Re: SysCurAppDatabase in a patched DmGet1Resource and Overlays
From: Daniel Seifert <[EMAIL PROTECTED]>
Date: 27 Nov 2002 18:52:19 +0100
X-Message-Number: 40

Am Die, 2002-11-26 um 16.57 schrieb Ken Krugler:

Hi,

thanks for your reply.

> >overlay. As the application already has an overlay, here's another
> >question: can an application have two overlays?
> 
> Yes, but only one gets automatically opened for you.

Any way to open the other one using system calls?

> >Or can I make the
> >application (or rather DmGet1Resource) think that my database is an
> >overlay, too?
> 
> Not easily, or without a lot of mucking w/internal Data Mgr
structures.

Ah, I'd rather not do that ;)
-- 
Daniel Seifert <[EMAIL PROTECTED]>


----------------------------------------------------------------------

Subject: Re: Use Appforge
From: "Steven M. Jerrett" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 12:28:24 -0600
X-Message-Number: 41

To uninstall any application on the Palm, use the Delete menu item from 
the Application Launcher screen.

Ezekiel Sunday wrote:

>hi Marcelino
> happy to find that you also use appforge.I have developed an
>application which i have deplored unto the palm device.However i have
>realise that i can't uninstall the application since the application
>goes into the ROM after the hotsync process that transfers the
>application.
>Could you please help me as to how one can uninstall the application.
>
>thanks
>
>  
>

-- 
Steve Jerrett
Systems Analyst
City of Columbia, MO




----------------------------------------------------------------------

Subject: Re: 30000 records
From: Jim Cooper <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:53:02 +0000
X-Message-Number: 42


> In reviewing the thread, perhaps I read too much into your reply.

Perhaps :-)

> While the application can get marginally more complex

It only gets lots more complicated where the records in the large
database can be added to on the device, and they need to be kept in
order. You're starting to look at b-tree type algorithms then. But I
must say I have very rarely come across that (there is a discussion on
the falch.net groups about this, I think). The conduit issues are just
frightening then, as you can't control the record order.

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

----------------------------------------------------------------------

Subject: Re: ToJim Cooper
From: Jim Cooper <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:54:50 +0000
X-Message-Number: 43

Zak,

> and i want to know what's a new about your Sync component ?

Nothing since the version you have. A v2 beta should be out over the
Christmas/New Year period for you to have a look at.

Cheers,
Jim Cooper

____________________________________________

Jim Cooper      [EMAIL PROTECTED]
Tabdee Ltd      http://www.tabdee.ltd.uk

TurboSync - Connecting Delphi with your Palm
____________________________________________

----------------------------------------------------------------------

Subject: Re: Use Appforge
From: "Marcelino San Miguel F." <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 13:00:43 -0600
X-Message-Number: 44

Hello,

This is right, in the same way ...  eliminate also booster,
BasicIngots-BASI
.... and all the archives that installed (version 2.1). Previous version
only booster eliminate.
Single I know this way to do
( idea--- generate one application that eliminate this "files"-
Uninstall
Application)

Best regards,


Esa es la manera de hacerlo.... tienes que eliminar  tambien el booster,
BasicIngots-BASI y los demas archivos que se instalan con el booster
(version 2.1 en adelante). Con las versiones anteriores unicamente
eliminas
el booster.
S�lo conozco esa manera de hacerlo
(una idea--- crear una aplicaci�n que elimine estos "archivos"-
Aplicaci�n
DesInstalar )

Saludos

Marcelino

Sorry, my english is not good ...



----- Original Message -----
From: "Steven M. Jerrett" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 12:28 PM
Subject: Re: Use Appforge


> To uninstall any application on the Palm, use the Delete menu item
from
> the Application Launcher screen.
>
> Ezekiel Sunday wrote:
>
> >hi Marcelino
> > happy to find that you also use appforge.I have developed an
> >application which i have deplored unto the palm device.However i have
> >realise that i can't uninstall the application since the application
> >goes into the ROM after the hotsync process that transfers the
> >application.
> >Could you please help me as to how one can uninstall the application.
> >
> >thanks
> >
> >
> >
>
> --
> Steve Jerrett
> Systems Analyst
> City of Columbia, MO
>
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


----------------------------------------------------------------------

Subject: Re: 30000 records
From: Douglas Handy <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:43:09 -0500
X-Message-Number: 45

Jim,

>Perhaps :-)

Sorry...

>It only gets lots more complicated where the records in the large
>database can be added to on the device, 

Yes.  While that would still be encapsulated behind functions on the
device
side, it is more complicated.  But not as complicated as the two-way
sync
conduit issues...

Doug

----------------------------------------------------------------------

Subject: high-resolution timing on OS 5?
From: Paul B. Johnson <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:56:33 -0500
X-Message-Number: 46


Anyone know if there is a way to access a high-resolution (microsecond 
or better) timer on an OS 5 device?

With 68K devices you could peek at the hardware timer counters on the 
chip, but this obviously won't work with OS 5.  

TIA,
Paul


----------------------------------------------------------------------

Subject: Gremlins
From: "Jay Francis" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:45:03 -0600
X-Message-Number: 47

Is there a way to keep the gremlins from using the Palm keyboards?  In
my
application I have turned both graffiti and the keyboard feature off to
protect errant entries in a text field.  The only characters allowed are
on
a push button layout in my application.  Trouble is the gremlins somehow
have access to the keyboard feature and then are able to type unwanted
characters.  Again, this is not possible in my application but the
gremlins
are doing it.  In addition, my application is the only application
selected
in the Gremlin setup.  Thanks  Jay


----------------------------------------------------------------------

Subject: Re: Gremlins
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:47:24 -0600
X-Message-Number: 48

At 14:45 2002-11-27 -0600, you wrote:
>Is there a way to keep the gremlins from using the Palm keyboards?  In
my
>application I have turned both graffiti and the keyboard feature off to
>protect errant entries in a text field.  The only characters allowed
are on
>a push button layout in my application.  Trouble is the gremlins
somehow
>have access to the keyboard feature and then are able to type unwanted
>characters.  Again, this is not possible in my application but the
gremlins
>are doing it.  In addition, my application is the only application
selected
>in the Gremlin setup.  Thanks  Jay

Gremlins directly inserts keyDownEvents into the event list... just have
a 
handler that looks for this and if its not a command key, tosses the
character.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Re: List Weirdness
From: "Matt Hebley" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 10:02:23 +1300
X-Message-Number: 49

Aha, the old form-object-processing-order-switcheroo between OS3.5 and
OS4.0

Always a good thing to check when things are strange changing OS!

Matt

----- Original Message -----
From: "Steve Mann" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 1:44 PM
Subject: Re: List Weirdness


> >That's weird behaviour alright.  Have you tested to see if it's a
complier
> >optimisation bug?  (eg: in your eventloop, throw up an alert if the
> >lstSelectEvent pops up, before passing it to frmHandleEvent.)
>
> I used to run into that occasionally, so I always leave optimizations
> turned off until towards the end of the development cycle. A few
> years ago, before I started doing that, I would have suspected it.
>
> Actually, I figured out what it was. There was a duplicate list
> object exactly the same size as the one I was having the problem
> with. I must have created it accidentally in Constructor when first
> building the form. Since it was the same size, and in the same place,
> it was invisible.
>
> Apparently OS 3.5 was treating penDown events as hitting that list,
> which was empty. Hence, no lstSelect events (there was nothing to
> select). OS 4.0 was treating penDown events as hitting the list I was
> tracking, and it had items, so it generated lstSelect events.
>
> It's one of the weirdest things I've run into in six years of doing
> this. Once I eliminated practically every other thing, by stripping
> code out until there was almost nothing left, and it still didn't
> work, I figured it had to be something with the form itself. Sure
> enough...
>
> Regards,
> Steve Mann
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


----------------------------------------------------------------------

Subject: Re: high-resolution timing on OS 5?
From: Ron Nicholson <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 13:24:58 -0800
X-Message-Number: 50

On Wed, 27 Nov 2002 12:02:11, Paul B. Johnson writes:
>Anyone know if there is a way to access a high-resolution (microsecond
>or better) timer on an OS 5 device?

Why do you need a high-resolution timer when the GUI and screen
refresh is running at the same rate or slower than the tickcount?
I remember some psychology experimenter who was trying to draw
graphics at single millisecond resolution  ...  onto a video monitor
with only a 60 Hz refresh rate.

>With 68K devices you could peek at the hardware timer counters on the
>chip, but this obviously won't work with OS 5.

If your app knows it's running on an m550/OMAP, you can also peek
at what seems to be a 32-bit 72 MHz counter from an armlet (32-bit
hardware register reads don't seem to work from 68k code under
PACE).

Ron Nicholson
HotPaw
   <http://www.hotpaw.com/rhn/hotpaw >

----------------------------------------------------------------------

Subject: Re: missing object in form
From: "Matt Hebley" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 10:25:18 +1300
X-Message-Number: 51

FYI, sometimes if I cancel a debug session, and hit debug again while
POSE
is still resetting, I can get an error like this.

Matt

----- Original Message -----
From: "Bill MacAdam" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 6:34 AM
Subject: RE: missing object in form


I would use PRC Explorer to make sure that the resource is actually
present in the prc file.  If you don't have it, you can download it for
free from PalmGear.

Bill MacAdam
Visual Solutions


-----Original Message-----
From: Max Bian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 9:55 AM
To: Palm Developer Forum
Subject: missing object in form


Hello.

I just picked up the palm programming again and I got a problem I cannot

  solve.  Pose reported the following message:

MyApp (2.0) called SysFatalAlert with the message:
"Form.c, Line:1762, Object #3401 in form #3600 is
missing".


I am not sure what happened.  The object #3401 is a popuptrigger.  I am
sure it is in the resource and I have not touched the code that deals
with it.  All I did was spliting some other codes into several segments.

  What's the best to find out the cause?  I am using prc-tools with
pilrc 2.9.9

Thank you.

Max


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

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



----------------------------------------------------------------------

Subject: Re: high-resolution timing on OS 5?
From: Paul B. Johnson <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 16:42:35 -0500
X-Message-Number: 52

In article <102934@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> On Wed, 27 Nov 2002 12:02:11, Paul B. Johnson writes:
> >Anyone know if there is a way to access a high-resolution
(microsecond
> >or better) timer on an OS 5 device?
> 
> Why do you need a high-resolution timer when the GUI and screen
> refresh is running at the same rate or slower than the tickcount?
> I remember some psychology experimenter who was trying to draw
> graphics at single millisecond resolution  ...  onto a video monitor
> with only a 60 Hz refresh rate.

I need a source of cryptographic entropy.  This has nothing to do with 
GUI or screen refreshes.  Take my word for it, I need a high-res timer.

Exactly how high-res is debateable, but certainly considerably more than

the 60-100Hz of TimGetTicks.

> >With 68K devices you could peek at the hardware timer counters on the
> >chip, but this obviously won't work with OS 5.
> 
> If your app knows it's running on an m550/OMAP, you can also peek
> at what seems to be a 32-bit 72 MHz counter from an armlet (32-bit
> hardware register reads don't seem to work from 68k code under
> PACE).

I've not researched ARMlets yet, but I had assumed this was the way to 
go.  Do you have any pointers to docs on how to access the exact 
hardware registers in question?

Paul


----------------------------------------------------------------------

Subject: SysCopyStringResource Advice`
From: Edward Ross <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 14:07:59 -0800
X-Message-Number: 53

I'm looking for a little advice on how best to handle this situation:

I have placed my strings that were hard coded into String Resources in
Constructor. I was going ot use SysCopyStringResource to
get the string, do compares, use for preferences struct, default labels
on popup triggers etc.

Is using SysCopyStringResource the best way to do this?

Any advice would be appreciated.  Sorry if the question seems vague, I
can clarify it if need.

Ed.


----------------------------------------------------------------------

Subject: Re: SysCopyStringResource Advice`
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 16:11:16 -0600
X-Message-Number: 54

At 14:07 2002-11-27 -0800, you wrote:
>I'm looking for a little advice on how best to handle this situation:
>
>I have placed my strings that were hard coded into String Resources in 
>Constructor. I was going ot use SysCopyStringResource to
>get the string, do compares, use for preferences struct, default labels
on 
>popup triggers etc.
>
>Is using SysCopyStringResource the best way to do this?
>
>Any advice would be appreciated.  Sorry if the question seems vague, I
can 
>clarify it if need.

This function works fine, and if you're just reading the string, getting

the resource via DmGetResource and then locking it and using the pointer

also works well.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com


----------------------------------------------------------------------

Subject: Re: Using multisegment error
From: "Dominique" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:15:32 -0500
X-Message-Number: 55


"Amit Solanki" <[EMAIL PROTECTED]> wrote in message
news:102808@palm-dev-forum...
>
> I have included "sections.h" before defining functions with sections.
> But, is there need to define all my functions to one section?
> Means, I have some of my functions as globals and some are defined in
> "sections1" and some in "section2".

I think your 'C' code is fine. They "#include sections.h" so the
compiler
knows what segments you want. You need to define these segments to
multigen
in the .def file. As John pointed out in this thread, even if you could
#include in a .def file, the expansion of SECT1 and SECT2 is NOT what
you
want. Please just replace as has been suggested below and see what
happens!
(As John pointed out, the " is not required, but doesn't hurt!). Make
sure
you have a line that reads:

multiple code {"section1" "section2"}


> I don't think that multigen can use 'C' style #defines, and in that
case
> you'd need a #include "sections.h" (or whatever). Replace SECT1 and
SECT2
> with "section1" and "section2" (you must use the ") and see what
happens.
>
>     Dominique
>
>
>



----------------------------------------------------------------------

Subject: Re: high-resolution timing on OS 5?
From: Ron Nicholson <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 16:45:16 -0800
X-Message-Number: 56

Paul B. Johnson writes:
>I need a source of cryptographic entropy.

Any synchronous counter or timer is suspect as a source
of entropy.

How about using the sampled sound manager to listen to
the microphone for a few seconds (e.g. several thousand
samples of background noise) and using a strong hash
on that data as a portion of your entropy?

The OMAP 1510 manual does not appear to be publicly
available; but there is an OMAP 5910 manual in pdf format
somewhere on the TI web site.

Ron Nicholson
HotPaw
   <http://www.hotpaw.com/rhn/hotpaw >




----------------------------------------------------------------------

Subject: Palm Pilot to sell (Japanese OS)
From: Edward Ross <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 17:02:29 -0800
X-Message-Number: 57

Does anyone have an old cheap Japanese Palm Pilot running OS 3.1 or
higher that they'd want to get rid of?  You can email me at
[EMAIL PROTECTED] ...

Thanks,
Ed


----------------------------------------------------------------------

Subject: RE: 30000 records
From: "Jon Blackman" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 18:08:05 -0800
X-Message-Number: 58

If I can interject a question - I am coming from Satellite Forms, where
the system seems to slow after 10,000 records or so.  My app will have
about 15,000 medical codes in one file, and one major reason to rewrite
in CW would be to bring all the files onto the Palm.  Is this a
manageable number - will it display and allow lookup in a list quickly,
or will there be a significant delay?

Jon


----------------------------------------------------------------------

Subject: Re: How to get hotsync user name?
From: "Miken" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 10:43:19 +0800
X-Message-Number: 59

Thanks,but your code is useless.I use Codewarrior7+sdk3.5 or sdk4,and
compile failure,undefined identifier 'dlkMaxUserNameLength' and
'DlkGetSyncInfo'.




----------------------------------------------------------------------

Subject: 5.0 Simulator
From: "Brad Figler" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 20:04:00 -0700
X-Message-Number: 60

Does the 5.0 simulator have the capability to save it's current state,
like
the emulator.  Every time I shut it down and re-launch it (when I get
the
next day), it is completely reset (as if it did a hard reset).  Is there
a
setting I need to change?

Thanks,

Brad



----------------------------------------------------------------------

Subject: Re: Records left locked in a multisegment app
From: "Dominique" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 23:02:33 -0500
X-Message-Number: 61

Thanks for these responses! John, if you wouldn't mind emailing me that
database browser, I'd appreciate it. I will investigate with more code
of my
own too.

I tried using GDB to test _GccReleaseCode, and it appeared to work OK,
but I
haven't checked the error codes on the unlock/release code - I'll have
to
check registers for that :-). I'm not aware of subverting the process as
has
been suggested - I am not using any resource databases, and I have not
opened any of my apps databases either (confirmed with scripts in POSE).

I probably won't be back on this before the weekend, but I'll post what
I
find.

    Dominique

"John Marshall" <[EMAIL PROTECTED]> wrote in message
news:102860@palm-dev-forum...
<<clipped>>
> the application's extra code resources: they are the only resources
that
> are locked down before PilotMain() runs but not immediately unlocked,
> which fits the symptoms Dominique is seeing.  (I hacked a lock count
> column onto a (crappy old) database viewer application of mine, which
I
> can send to Dominique if she likes, so she can confirm this.  Or it's
a
> five minute job to add a quick and nasty check from within the app.)
>
> However this does not necessarily indicate a problem with the startup
> (well, shutdown :-)) code.  More likely the application is
accidentally
> subverting that code.
>
> The code in question [1] simply iterates over 'code' resources using
> DmGet1Resource() and unlocks them until there are no more of them.
> There is an obvious fragility here in that it is only looking in the
> top-most resource database (and its overlays), and it won't find any
> 'code' resources to iterate over if your application is not top-most
[2].
>
> Thus the easiest way to subvert the multiple code resources unloader
is
> to be using another resource database in your application and then to
> leave it open when your application exits.  Don't do that.
>
> Perhaps Dominique's application is doing that?



----------------------------------------------------------------------

Subject: Re: Records left locked in a multisegment app
From: "Dominique" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 23:05:15 -0500
X-Message-Number: 62

I'm using PRC-tools 2.2. I have installed the changes from Ton van
Overbeek
for multisegment GDB

    Dominique

"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:102817@palm-dev-forum...
> what development environment are you using?
>
> i had a fix for prc-tools 2.0 available where you compiled gccfix.[ch]
into
> your application. the problem was fixed with prc-tools 2.0.90 and
later.
if
> you are still compiling that, it may cause problems; that is, if John
has
> changed the locking/unlock routines in the startup code.
>
> i use multisegmented apps a lot, and, i dont run into the problem you
have
> so, i doubt its a default 'setup' thing. however, i am running
prc-tools
> 2.1 with my own arm-gcc setup.
>
> *motto: stick with what works :)
>
> ---
> Aaron Ardiri
[EMAIL PROTECTED]
> CEO - CTO                                                  +46 70 656
1143
> Mobile Wizardry
http://www.mobilewizardry.com/
>
>
>



----------------------------------------------------------------------

Subject: RE: How to get hotsync user name?
From: Amit Solanki <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 09:55:00 +0530
X-Message-Number: 63

But why don't you use SDK 5.0 ? It is already available on palmos.com.

-----Original Message-----
From: Miken [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 28, 2002 8:13 AM
To: Palm Developer Forum
Subject: Re: How to get hotsync user name?

Thanks,but your code is useless.I use Codewarrior7+sdk3.5 or sdk4,and
compile failure,undefined identifier 'dlkMaxUserNameLength' and
'DlkGetSyncInfo'.




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

----------------------------------------------------------------------

Subject: RE: How to get hotsync user name?
From: Ben Combee <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 22:39:47 -0600
X-Message-Number: 64

At 09:55 2002-11-28 +0530, you wrote:
>But why don't you use SDK 5.0 ? It is already available on palmos.com.

It isn't a SDK problem... you need to also include the <DLServer.h>
header 
file to use these macros and functions.  This header isn't included in
the 
group that <PalmOS.h> includes.

>-----Original Message-----
>From: Miken [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, November 28, 2002 8:13 AM
>To: Palm Developer Forum
>Subject: Re: How to get hotsync user name?
>
>Thanks,but your code is useless.I use Codewarrior7+sdk3.5 or sdk4,and
>compile failure,undefined identifier 'dlkMaxUserNameLength' and
>'DlkGetSyncInfo'.



----------------------------------------------------------------------

Subject: Re: How to get hotsync user name?
From: "Chris Tutty" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 17:44:45 +1300
X-Message-Number: 65

From: "Miken" <[EMAIL PROTECTED]>
> Thanks,but your code is useless.I use Codewarrior7+sdk3.5 or sdk4,and
> compile failure,undefined identifier 'dlkMaxUserNameLength' and
> 'DlkGetSyncInfo'.
> 
You might want to try 
#include <DLServer.h>

at the top of your source file.  I think you'll find that 
DlkGetSyncInfo appears 4.0 PalmOS Programmer's 
API Reference around page 1082, suggesting that a search 
of the PalmOS system headers might be advisable before 
declaring that the code offered is "useless".

Chris Tutty



----------------------------------------------------------------------

Subject: RE: Using multisegment error
From: Amit Solanki <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 10:27:28 +0530
X-Message-Number: 66

Thanks Domnique and John for your help. 
I have changed .def file as you suggested but there are still problems.


Again I am asking, Is there need to declare all my functions with a
section?
(section1 or section2)

Like this: 

void OpenDatabase() SECT1;
void CloseDatabase() SECT1;

In StartApplication() global function I am calling OpenDatabase() and in
StopApplication() I am calling CloseDatabase()

And StartApplication() and StopApplication() are not declared with any
sections, They are globals.

I am getting these errors:

main.c:146: undefined
reference to `frmMain_HandleEvent'
main.o: In function `StopApplication':
main.c:230: undefined reference to `__text__section1'
main.o:
In function `PilotMain':
main.c:265: undefined reference to `__text__section1'
In function `PilotMain':
main.c:265: undefined reference to `__text__section1'
main.o: In function `StartApplication':
main.c
:85: undefined reference to `__text__'
compile failed for segment 0

Amit.

----------------------------------------------------------------------

Subject: Re: Using multisegment error
From: "Dominique" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 00:25:00 -0500
X-Message-Number: 67

Ah! These are compiler errors (not linker, as you had before). As I
understand it, you must declare all functions that you want in a
particular
section in the way that you have indicated it. I don't know why you are
getting those undefined reference errors. I can only suggest that you
carefully review the steps to multisegmenting in the documentation and
ensure that, in your makefile, that you (relace <appname> with your
application name):

1) Call multigen (this will create <appname>-sections.s).
2) Assemble the stub: something like m68k-palmos-gcc -c
<appname>-sections.s
3) When you link, ensure that you link with <appname>-sections.ld (which
is
generated by step 2).

Good luck!
Dominique

"Amit Solanki" <[EMAIL PROTECTED]> wrote in message
news:102976@palm-dev-forum...
>
> Thanks Domnique and John for your help.
> I have changed .def file as you suggested but there are still
problems.
>
>
> Again I am asking, Is there need to declare all my functions with a
section?
> (section1 or section2)
>
> Like this:
>
> void OpenDatabase() SECT1;
> void CloseDatabase() SECT1;
>
> In StartApplication() global function I am calling OpenDatabase() and
in
> StopApplication() I am calling CloseDatabase()
>
> And StartApplication() and StopApplication() are not declared with any
> sections, They are globals.
>
> I am getting these errors:
>
> main.c:146: undefined
> reference to `frmMain_HandleEvent'
> main.o: In function `StopApplication':
> main.c:230: undefined reference to `__text__section1'
> main.o:
> In function `PilotMain':
> main.c:265: undefined reference to `__text__section1'
> In function `PilotMain':
> main.c:265: undefined reference to `__text__section1'
> main.o: In function `StartApplication':
> main.c
> :85: undefined reference to `__text__'
> compile failed for segment 0
>
> Amit.
>
>



----------------------------------------------------------------------

Subject: Re: Using multisegment error
From: "Dominique" <[EMAIL PROTECTED]>
Date: Thu, 28 Nov 2002 00:26:10 -0500
X-Message-Number: 68

Sorry - these may still be linker errors!

"Dominique" <[EMAIL PROTECTED]> wrote in message
news:102979@palm-dev-forum...
>
> Ah! These are compiler errors (not linker, as you had before). As I
>





---

END OF DIGEST

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


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

Reply via email to