Virtual Driver under PalmOS 5

2003-06-25 Thread Thomas Damme
Hello folks,

I somehow have problems writing a virtual serial driver for PalmOS 5. I
created a driver based on the CryptoComm Example of PalmSource. It also
works fine on PalmOS4.x-devices and the Emulator. But I cant get it running
on a Simulator or a T-T. The new device-ID does not appear.
I tried to locate where it fails but it seems the DrvEntryPoint is never
called(I added a ErrFatalDisplay("EntryPoint") in DrvEntryPoint, but the
simulator does not crash).

So what is the diffence between virtual drivers under PalmOs5 and 4? Is the
PalmOS5-driver required to be native? Does somebody have a hint or example?

Thanks,

Thomas



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


RE: MemPtrFree - invalid chunk

2003-06-25 Thread Agus Silas
Yeap, you're right...

Thanks Chris


Agus

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de Chris
Tutty
Envoyé : mercredi 25 juin 2003 01:22
À : Palm Developer Forum
Objet : Re: MemPtrFree - invalid chunk

From: "Agus Silas" <[EMAIL PROTECTED]>
> In fact, I've moved the free session from the end of the AppEventLoop to
> AppStop. I thought that I "cut" then "paste", but instead I "copy" then
> "paste", so I freed twice.
>
A good way to avoid this error, or at least prevent it
causing problems is to set every pointer to null immediately
after freeing it (I used to use a macro that did both steps so
that it was impossible to forget).  You can then test pointers
for null before freeing them, preventing double-frees (some
platforms will ignore a free of null, making the test redundant,
but some won't so I tend to check to be on the safe side - not
sure about Palm OS).

Of course it's not a replacement for careful coding, but it's nice
to have procedures that produce robust code even if it's 3:00am
and you haven't slept in two days.  :-)

Chris Tutty

--
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/


Re: How to wrap text in a table column..

2003-06-25 Thread Prashant Jha
Alan,
I looked into the ToDo list/DateBook examples but they
capture the event to wrap the text, whereas in my
case, I know that I will always have text to be
wrapped in two rows in one column,so I needed a
simpler solution..
Finally I have managed to do it. The text gets wrapped
alright with '\n' but the problem was that the height
of the row was not enough to fit both the rows. So the
second line was getting drawn alright but then
overwritten by the second row of data in the table.
Hence now I'm using "void TblSetRowHeight (TableType
*tableP, Int16 row, Coord height)" to increase the
height and everything works fine.
However, another question, tapping on the second line
of the column does not generate any event. Is there
someting I'm missing?
Thanks again.
Prashant

--- Alan Ingleby <[EMAIL PROTECTED]> wrote:
> Table are fun aren't they?  Seriously though, while
> I don't know the exact
> cause of your problem, can I suggest you look at the
> sourcecode for the ToDo
> list.  It uses tables extensively, and shows how to
> do what you're after.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: fatal alert: table.c, line:2408

2003-06-25 Thread Aaron Ardiri
> This occurs when I scroll down past my 8 rows to the end and 
> I select a row, I get this error.

i'll take a hint that your probably running on an OS4 device,
so the FATAL ALERT most likely is this one:

 ErrFatalDisplayIf (row >= tableP->numRows, "Invalid row");

does that help? :) you are obviously trying to select a row
when you dont have enough there in the table. you might want
do do some checking on how many rows you have before you pass
a call to this function

are you calling: TblGetItemBounds? :P

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


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


I need a list with normal ScrollBar

2003-06-25 Thread Ralf Krauss
Hi:

I need  a list with normal ScrollBar and not with the default one.
Can I change the "ListAttr" (hasScrollBar) of  a list during runtime?

thanks.
Ralf







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


Armlet optimization

2003-06-25 Thread Jan Slodicka
Hello

I am using CW9 and I tried to test the influence of global optimizations on
the armlet speed. However, the results indicate absolutely no speed
difference irrespectively of whether the optimizations are off or set to
level 2. Is it right or am I missing something?

Jan Slodicka




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


Re: How to wrap text in a table column..

2003-06-25 Thread Douglas Handy
Prashant,

>However, another question, tapping on the second line
>of the column does not generate any event. Is there
>someting I'm missing?

You didn't tell us what OS release levels you are testing it on.  I believe the
OS did not recognize taps beyond the first line in a table row until 4.0.

Try your program on 4.0+ and see if it acts the way you expect.  If you need to
support the same user experience prior to 4.0, you have to trap the pen down
event yourself, AFAIK.

Doug

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


RE: Bad executable generation

2003-06-25 Thread Roger Stringer

Subject: Bad executable generation
From: "Dave Mottorn" <[EMAIL PROTECTED]>
I'm using Codewarrior 8.32 to develop a program that now has three
segments.  I don't think there are any later updates to version 8. Last
night I made a few changes and compiled and linked the program.  I didn't
get any error messages but when I tried to install the new version on my PDA
it not only didn't install the new version, it removed the application.  I
had the same problem once before but that was because one of the segments
was a little too large and the linker didn't detect it.  This time I'm sure
the segments are all in bounds.  It must be a programming error that
CodeWarrior doesn't detect but I haven't been able to find it.  Any Ideas?
If you are using multiple segments, then you should set your compiler to be 
"Small" as this will maximize performance and minimize program size.   This 
also means your segments should not be greater than 32K and nowhere nearer 
the HotSync-driven 64KB limit.
** Actually the segments can creep a little over 32KB, but you'll get link 
errors once they get too big.

Roger Stringer
Marietta Systems, Inc.  (www.RF-TP.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Multi segment problem with typedef struct

2003-06-25 Thread Giorgos Sarris
Hi to all,

I use CW9, C++.

I make a multi-segment program.
In the main segment I have (eg):

typedef struct
{
UInt8   lastHighScore;
} GamePreferenceType;

GamePreferenceType Prefs;

How can I call that from the second segment???
I tried:
extern GamePreferenceType Prefs;

but it doesn't work!!

Thanks a lot.
Giorgos



Do You Yahoo!?
Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr

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


Re: Multi segment problem with typedef struct

2003-06-25 Thread Thomas Damme
I think, the segment has nothing to to with this. Did you declare the struct
in the second file? You should place the declaration in a header file and
include it into both files:


typedef struct{
 UInt8 lastHighScore;
} GamePreferenceType


#include "headerfile.h"
GamePreferenceType Prefs;


#include "headerfile.h"
extern GamePreferenceType Prefs;

If you just say "extern .." without declaring the structure, the compiler
does not know it.

Thomas

"Giorgos Sarris" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
> Hi to all,
>
> I use CW9, C++.
>
> I make a multi-segment program.
> In the main segment I have (eg):
>
> typedef struct
> {
> UInt8 lastHighScore;
> } GamePreferenceType;
>
> GamePreferenceType Prefs;
>
> How can I call that from the second segment???
> I tried:
> extern GamePreferenceType Prefs;
>
> but it doesn't work!!
>
> Thanks a lot.
> Giorgos
>
>
> 
> Do You Yahoo!?
> ÁðïêôÞóôå ôç äùñåÜí @yahoo.gr äéåýèõíóç óáò óôï http://www.otenet.gr
>
>



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


Re: Bad executable generation

2003-06-25 Thread Eric VERGNAUD
le 25/06/03 14:22, Roger Stringer à [EMAIL PROTECTED] a écrit :

> 
>> Subject: Bad executable generation
>> From: "Dave Mottorn" <[EMAIL PROTECTED]>
>> 
>> I'm using Codewarrior 8.32 to develop a program that now has three
>> segments.  I don't think there are any later updates to version 8. Last
>> night I made a few changes and compiled and linked the program.  I didn't
>> get any error messages but when I tried to install the new version on my PDA
>> it not only didn't install the new version, it removed the application.  I
>> had the same problem once before but that was because one of the segments
>> was a little too large and the linker didn't detect it.  This time I'm sure
>> the segments are all in bounds.  It must be a programming error that
>> CodeWarrior doesn't detect but I haven't been able to find it.  Any Ideas?
> 
> If you are using multiple segments, then you should set your compiler to be
> "Small" as this will maximize performance and minimize program size.   This
> also means your segments should not be greater than 32K and nowhere nearer
> the HotSync-driven 64KB limit.
> ** Actually the segments can creep a little over 32KB, but you'll get link
> errors once they get too big.
> 

Sorry to have to mention this, but you can - and should as much as possible
- grow your segments to the 64k limit.

This is because calling one function from one segment to another is much
more time and space consuming than calling it within the same segment. So if
you can have 2 segments instead of 4, your code will be smaller and more
efficient.

It is true that you may get some link errors when doing this with code model
set to "Small". This is because when set to "Small", a jump address within a
segment uses only 2 bytes (the relative offset) so it is limited to +- 32k.

This can be solved by reordering your code in the 'segment' panel, and
ensuring that calls within a segment are inside this limit. You do this by
changing the files order inside a segment, or the methods order inside a
file.

Sometimes, due to the code itself, this cannot be achieved. In that case, if
you have only 1 or 2 link errors, you can create what is known as an
'island':

For example:

MethodAtBeginningOfSegment()
{
}

MethodAtEndOfSegment()
{
MethodAtBeginningOfSegment();
}

may lead to an unsolvable link error if your segment size is > 32k. The
'island' technique leads to the following:

MethodAtBeginningOfSegment()
{
}

IslandInMiddleOfSegment()
{
MethodAtBeginningOfSegment();
}

MethodAtEndOfSegment()
{
IslandInMiddleOfSegment();
}

Which will solve the link error.

Please note that this technique is only useful when there are only very few
unsolvable link errors, otherwise it leads to lots of space consumption and
overhead, which is exactly what you're fighting against.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


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


Re: bitmaps in titlebar

2003-06-25 Thread Jan Slodicka
Hello

see below portion of the rc file that we use for that purpose

Jan Slodicka


FORM ID MainForm AT (0 0 160 160)
NOFRAME
NOSAVEBEHIND
USABLE
MENUID MainFormMenuBar
BEGIN
TITLE "..."
//... other controls ...

// This is bmp that covers the whole title bar
FORMBITMAP  AT (0 0) Bitmap AppTitleBmp USABLE

// Additionally we add some buttons drawn over title bar bmp
BUTTON  "" ID btnIcons   AT (115 1 15 11) NOFRAME GRAPHICAL BITMAPID
IconsBmp  SELECTEDBITMAPID IconsSelectedBmp
BUTTON  "" ID btnReport  AT (130 1 15 11) ... etc
END

BITMAPFAMILYEX ID AppTitleBmp
BEGIN
BITMAP "AppTitleL.bmp"  BPP 8  COMPRESS DENSITY 1
BITMAP "AppTitleH.bmp"  BPP 8  COMPRESS DENSITY 2
END

- Original Message -
From: "Christopher G. Abiad" <[EMAIL PROTECTED]>


> How do I add bitmaps to the title bar area of my palm application?
>
> (using CW9)
>
> Thanks in advance,
> chris



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


Re: Acer S50

2003-06-25 Thread David Beers
David Mottorn wrote:
> Does anyone know how you can buy the Acer S50?  Acer doesn't sell them
> in this country.

I talked with a couple of different people in Acer's marketing and products
divisions and they didn't have any ideas at all about how you could acquire
one in the US.  Both agreed that this situation is rather weird.  This was
about 2 months ago.

David Beers


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


RE: Bad executable generation

2003-06-25 Thread Dave Mottorn
The problem I've had at least three times is I don't get link errors.  Once
my segment was just a little over the size limit and twice I had syntatic
errors that weren't detected by the compiler.  In the latter two cases I had
some fairly complicated code that looked ok to me.  With my failing memory I
was able to remember all the changes I made and go back and do the more
complicated ones differently.  Both times after redoing the code - mostly to
break up all the stuff that was on one line - it Hotsynced correctly.

Thanks for your reply.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Eric
VERGNAUD
Sent: Wednesday, June 25, 2003 8:50 AM
To: Palm Developer Forum
Subject: Re: Bad executable generation


le 25/06/03 14:22, Roger Stringer à [EMAIL PROTECTED] a écrit :

>
>> Subject: Bad executable generation
>> From: "Dave Mottorn" <[EMAIL PROTECTED]>
>>
>> I'm using Codewarrior 8.32 to develop a program that now has
three
>> segments.  I don't think there are any later updates to version 8. Last
>> night I made a few changes and compiled and linked the program.  I didn't
>> get any error messages but when I tried to install the new version on my
PDA
>> it not only didn't install the new version, it removed the application.
I
>> had the same problem once before but that was because one of the segments
>> was a little too large and the linker didn't detect it.  This time I'm
sure
>> the segments are all in bounds.  It must be a programming error that
>> CodeWarrior doesn't detect but I haven't been able to find it.  Any
Ideas?
>
> If you are using multiple segments, then you should set your compiler to
be
> "Small" as this will maximize performance and minimize program size.
This
> also means your segments should not be greater than 32K and nowhere nearer
> the HotSync-driven 64KB limit.
> ** Actually the segments can creep a little over 32KB, but you'll get link
> errors once they get too big.
>

Sorry to have to mention this, but you can - and should as much as possible
- grow your segments to the 64k limit.

This is because calling one function from one segment to another is much
more time and space consuming than calling it within the same segment. So if
you can have 2 segments instead of 4, your code will be smaller and more
efficient.

It is true that you may get some link errors when doing this with code model
set to "Small". This is because when set to "Small", a jump address within a
segment uses only 2 bytes (the relative offset) so it is limited to +- 32k.

This can be solved by reordering your code in the 'segment' panel, and
ensuring that calls within a segment are inside this limit. You do this by
changing the files order inside a segment, or the methods order inside a
file.

Sometimes, due to the code itself, this cannot be achieved. In that case, if
you have only 1 or 2 link errors, you can create what is known as an
'island':

For example:

MethodAtBeginningOfSegment()
{
}

MethodAtEndOfSegment()
{
MethodAtBeginningOfSegment();
}

may lead to an unsolvable link error if your segment size is > 32k. The
'island' technique leads to the following:

MethodAtBeginningOfSegment()
{
}

IslandInMiddleOfSegment()
{
MethodAtBeginningOfSegment();
}

MethodAtEndOfSegment()
{
IslandInMiddleOfSegment();
}

Which will solve the link error.

Please note that this technique is only useful when there are only very few
unsolvable link errors, otherwise it leads to lots of space consumption and
overhead, which is exactly what you're fighting against.

---
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
---


--
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/


RE: Acer S50

2003-06-25 Thread Dave Mottorn
Thanks.  There must be a distributor in Malasia or somewhere else in Asia
that would sell them to us.  Has anyone dealt with any of them?

It seems Acer's US-based folks have been told not to discuss it with
prospective buyers in the US.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of David
Beers
Sent: Wednesday, June 25, 2003 9:44 AM
To: Palm Developer Forum
Subject: Re: Acer S50


David Mottorn wrote:
> Does anyone know how you can buy the Acer S50?  Acer doesn't sell them
> in this country.

I talked with a couple of different people in Acer's marketing and products
divisions and they didn't have any ideas at all about how you could acquire
one in the US.  Both agreed that this situation is rather weird.  This was
about 2 months ago.

David Beers


--
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/


Re: getting registered directories

2003-06-25 Thread Sebastian Voges
On Tue, 24 Jun 2003 20:03:31 -0400, Carlos Junco wrote:

> 
> Is there a function for getting all the registered directories for a
> specific media type? (VFS)

Hi,
isn't there only *one* directory assigned to a  specific media type?? at least
that's how I understand it. VFSGetDefaultDirerctory() gets it.


regards,

Sebastian



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


Re: How to Implement Version Update

2003-06-25 Thread David Chevalier
Andrew wrote:

Hi All,

The application we are doing now has been designed to have VERSION UPDATE
function. It means that the application can download the latest version from
server via network and then the running application replace itself with the
new one.
At current stage, the problems of doing that include:

1. How to download an application (*.prc) file correctlly? 
ExgDbRead()
(I'd still recommend writing the app to a file stream first, then convert the 
file stream using ExgDbRead() instead of trying to use ExgDbRead directly on 
the socket - there's a few tricky things if there's not enough data at a given 
time to fill the record)

2. How does a running application replace itself with others?
A) write a separate installer prc that downloads and converts the new version, 
then ExgDbRead() gives a hook where you can delete a pre-existing app.

B) use a third party packaging tool (eg. Combiner) to package your new 
version, then launch it programmatically from your app (which then replaces 
your original app as it extracts).

C) anything else as long as you're not trying to replace the open database 
that you're exectuting your code from.

-Dave

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


Palm Application Packaging

2003-06-25 Thread Paturi, Ramesh P (IndSys)
All:
I have made a PRC application and I have to distribute the same to
the clientele. Is there a way I can do packaging and licensing the
application? I need this to release my palm software. if anyone is aware of
a mechanism please lemme know.

Thanks in advance.

Thanks and regards
Ramesh


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."


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


Re: How to Implement Version Update

2003-06-25 Thread Sebastian Voges
On Tue, 24 Jun 2003 16:28:58 +0800, Andrew wrote:

> 
> Hi All,
> 
> The application we are doing now has been designed to have VERSION UPDATE
> function. It means that the application can download the latest version from
> server via network and then the running application replace itself with the
> new one.
> 
>

Hi Andrew,

take a look at http://softwareupdate.sourceforge.net/
that should give you ideas, or even better you might be able to use
it. 

best regards,

Sebastian


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


Mysterious error message

2003-06-25 Thread Matthew Fleming
Palm-meisters,

I'd appreciate your help with the following. I am trying to integrate the
Zire 71's camera with my own application. I have cut and pasted bits of the
sample application from the Palm SDK into my own. What I find is that the
camera works - once. When I install everything fresh, and turn on the camera
by opening the slider, I can take and save pictures. However, if I turn off
the camera by closing the slider, return to the rest of my application, and
then open the slider again, I usually get a crash. Sometimes I also get the
following error message:

Fatal Alert: Emul68KMain.c, Line:403, illegal instruction 19F0 at address
0002

It would be helpful to know if this message should point me in any
particular direction. I though there might be a problem with registering and
unregistering for slider notifications, or with loading and unloading the
camera library. Also, I should note that with the addition of the camera
code my application has grown to be more than 32K in size (its about 37K,
without the addition of armlet resources).  My understanding is that this
might cause the application to fail to compile, but that if it does compile,
it shouldn't cause crashes. But maybe I'm wrong.

Your assistance much appreciated.

Matthew Fleming



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


OS5 - how to wait for interrupting programs (e.g. brightness dialog,Find, Alarm...)

2003-06-25 Thread Jeff Diamond
This may sound elementary, but I'm totally stumped.
My app is running - some other app interrupts it - could be an alarm or 
a system dialog...
Before OS 3.5, I got a winExitEvent so I knew I was interrupted - and I 
just waited for a winEnterEvent to continue.

Then, in OS 3.5-4.2, I didn't get the winExitEvent until AFTER the 
interrupting app FINISHED.  But this was still not an real issue, 
because my 68K app was truly interrupted and so it couldn't do anything 
until control returned to it - it then got both the winExitEvent and 
winEnterEvent and continued on its way.

BUT NOW - in OS 5.x, not only don't I get the winExitEvent in time, but 
also my application isn't blocked from running after it's interrupted. 
The result is that my application keeps running AFTER the external 
dialog appears, drawing over top of the dialog completely before losing 
all pen input.

Since most other applications seem to "just work" when being 
interrupted, what could I be doing wrong?
When my app gets "interrupted", all hell breaks loose, and this was 
never an issue before.  But this is now a significant compatibility 
problem, and it can be quite dangerous when, for example, the user can't 
see a low batery warning.

Any advice is greatly appreciated!
- Jeff


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


Re: Palm Application Packaging

2003-06-25 Thread Thomas Damme
We usally use Pilot Catapult from www.beiks.com for the packaging. The
licensing depends on your customers.

TD


"Paturi, Ramesh P (IndSys)" <[EMAIL PROTECTED]> schrieb im
Newsbeitrag news:[EMAIL PROTECTED]
>
> All:
> I have made a PRC application and I have to distribute the same to
> the clientele. Is there a way I can do packaging and licensing the
> application? I need this to release my palm software. if anyone is aware
of
> a mechanism please lemme know.
>
> Thanks in advance.
>
> Thanks and regards
> Ramesh
>
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
>
>



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


Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog, Find, A

2003-06-25 Thread jeffreyrdiamond
I just wanted to add that in many cases (e.g. an alarm going off) I
look at my event trace and can't find a single event notifying my
application that anything has happened.  In other cases I might get an
event (like AutoPowerDown), but don't know what to do with it -
because instead of the power really going off my App just keeps on
running.

Again, any insights into this would be greatly appreciated.
- Jeff

--- In [EMAIL PROTECTED], Jeff Diamond
<[EMAIL PROTECTED]> wrote:
> This may sound elementary, but I'm totally stumped.
> My app is running - some other app interrupts it - could be an alarm or 
> a system dialog...port/forums/


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


Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog, Find, A

2003-06-25 Thread jeffreyrdiamond
One last comment - we ARE passing onto the system any and all events
which we don't handle ourselves.  And what we do seemed to work fine
in the older OSes.

- Jeff

--- In [EMAIL PROTECTED], Jeff Diamond
<[EMAIL PROTECTED]> wrote:
> This may sound elementary, but I'm totally stumped.
> My app is running - some other app interrupts it - could be an alarm or 
> a system dialog...


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


Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Nicolas Pabion
Add your profile and make sure that the profile you created is the first in
the profile list (eg use NetServicesProfileSetOrder() ) so that on the next
connection it will be used first.
Note: Opening the WiFi Panel might mess up your new account since WiFi Panel
stores the connection profiles in a seperate db and will override the
current profiles.

Nicolas

"Shashidhar Kura" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hello All,
>
> Is there any API in Palm SG SDK to initiate a connection to a 802.11
network
> using a profile that is created using NetServiceProfileAdd() ?
>
> The NetServices sample does not have any hints for the existance of such
> API.
>
> Any information or pointers are greatly appreciated.
>
> Thanks in advance for your help.
>
> Shashi
>
>
>
>



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


Re: Mysterious error message

2003-06-25 Thread Aaron Ardiri
> Fatal Alert: Emul68KMain.c, 
> Line:403, illegal instruction 19F0 at address 0002

look carefully at address, looks like affiliated with NULL. if your
using a function pointer, thats an even more obvious cause.. 

> It would be helpful to know if this message should point me in 
> any particular direction. I though there might be a problem with 
> registering and unregistering for slider notifications, or with 
> loading and unloading the camera library. Also, I should note that 
> with the addition of the camera

ahh.. notifications = function calls :) you probably have a notification
callback set to NULL or something.

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


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


VFS and long file names...

2003-06-25 Thread Armel Asselin
Hello all,

it may be of interest to any application using card...
As I was particularly annoyed by some vfsErrFileGeneric error while
enumerating files in the root folder of a card, I finished digging into FAT
structure and root directory structure.
It seems that when you use more than 25 LFN entries in one directory (this
number seems quite exact: one less and it is OK, there is also about 10
short entries), VFS goes bad and returns the vfsErrFileGeneric error.
(my code is reduced to simple loop over VFSDirEntryEnumerate calls)

does any one at PalmSource knows about that ?

Armel


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


Multiple forms handled by one .c

2003-06-25 Thread Steven Fisher
A coworker and I are having a bit of an argument over whether or not 
multiple forms should be handled by a single source file. I'm a big fan 
of considering .c files to be objects, and trying to use an 
object-oriented approach to developing forms. However, he's right that 
handling related forms with a single .c file takes a lot less source 
code (though I'm not really convinced it's that much less object code).

So, I thought I'd ask here: What are the advantages/disadvantages to 
each approach? Have you regretted one extreme or the other? Is some 
comfortable middle ground (like related forms in a single .c) a better 
approach than either extreme?

I'm willing to be convinced either way. Please let me know what you 
think. :)

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


Re: Multiple forms handled by one .c

2003-06-25 Thread Dave Lippincott
I've done both and IMHO think one .c file per form makes it easier to follow
and manage the code.  But in practice, the Metrowerks IDE makes it easier
for me to just dump most of a Palm project's form routines into the same .c
file.
However, I almost always use separate handler functions for each dialog.
Even it there is tons of common code.  Which, in that case, I attempt to
break the code into as many common sub-routines as possible (while retaining
separate handlers).
When Palm migrates towards a C++ common framework, I plan on one class
instance per form (as I do when writing code for that other OS).
Smaller Palm executable is just not the priority as it once was.

- Original Message -
From: "Steven Fisher" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 2:07 PM
Subject: Multiple forms handled by one .c


> A coworker and I are having a bit of an argument over whether or not
> multiple forms should be handled by a single source file. I'm a big fan
> of considering .c files to be objects, and trying to use an
> object-oriented approach to developing forms. However, he's right that
> handling related forms with a single .c file takes a lot less source
> code (though I'm not really convinced it's that much less object code).
>
> So, I thought I'd ask here: What are the advantages/disadvantages to
> each approach? Have you regretted one extreme or the other? Is some
> comfortable middle ground (like related forms in a single .c) a better
> approach than either extreme?
>
> I'm willing to be convinced either way. Please let me know what you
> think. :)
>
> --
> 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/


Low memory check failed in POSE 4.0

2003-06-25 Thread Jason Simpkins

Hello,

I'm struggling to try and figure out where this low
check sum failure is occuring.   What tools can I use
to find the exact C code that is doing this?   I'm
using CW6.0 and the 4.0 SDK.  I try and use the
debugger but it just gives me the asm code.

Thanks,
Jason

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


ARM ?

2003-06-25 Thread Paul Johnson
OK, I've finally made a start. All my library compiles having emptied out
some functions etc. It won't link as I'm using Falch.Net and it won't build
a static library without gnu tinkering that I'm also (previously) blissfully
ignorant of for now. I guess it should be doable though, so I'll ask about
something else I really don't understand:

In short, my question is "What is all this 16bit crap ?" I'm (attempting to)
target ARM only OS5 and was hoping that's what my compiler would spit out.
Is this not the case ? I even get it moaning that "1<<16" is too big so I
assume 32bit numbers are voodoo ?  Wow!

Worse, apparently I've filled my .code, .data and .bss segments before I've
even compiled any of my actual games code. Is there a tutorial somewhere
that explains how to write decent-sized programs ?  The RAM on OS5 devices
and the processor speed of an ARM is gonna need a little bit more than what
seems available by default.

Is there no way to shortcut all this 16bitness and just build a large
program ?

I've tried to to make this not sound like a rant, but I can't believe their
isn't a better development system for the new wave of hardware. Backwards
compatibility is one thing, but not if that just means crippling new stuff,
surely. Please tell me I'm reading this wrong 

If anyone knows of a tutorial for building a large static library using gnu
(or even better, falch.nets IDE) I will gladly bear your children.


Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com


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


Re: Too many calls to "new"?

2003-06-25 Thread Ben Combee
At 09:15 PM 6/24/2003, Richard Coutts wrote:
> I believe that the m515 only has 256K of dynamic memory available to the
> device.  Your global memory and your stack space is included in that
value,
> so 200K may very well be the limit.
Ah.  Just so I'm clear on this -- the database resides in storage space, but
since I'm loading every value of the database into a graph, then I'm
effectively creating a copy of the database in dynamic memory, which is very
limited in size on some devices?
Is dynamic memory faster than storage memory?
For reading, dynamic and storage memory is equivalent.  For writing, memory 
on the dynamic heap can be written much quicker, as you don't have to go 
through pointer validation and memory protection.

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

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


Re: Armlet optimization

2003-06-25 Thread Ben Combee
At 06:00 AM 6/25/2003, Jan Slodicka wrote:
Hello

I am using CW9 and I tried to test the influence of global optimizations on
the armlet speed. However, the results indicate absolutely no speed
difference irrespectively of whether the optimizations are off or set to
level 2. Is it right or am I missing something?
Have you checked your code at the assembly level.  There should be real 
changes between level 0 and level 2, especially when using more 
registers.  Are you building for Thumb or ARM code.

The original ARMlet compiler in V9 has problems with optimization; when 9.2 
is released, it will have a ARM compiler that's been through another seven 
months of testing and optimization and performs a bit better.

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

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


RE: Bad executable generation

2003-06-25 Thread Ben Combee
At 08:44 AM 6/25/2003, Dave Mottorn wrote:
The problem I've had at least three times is I don't get link 
errors.  Once
my segment was just a little over the size limit and twice I had syntatic
errors that weren't detected by the compiler.  In the latter two cases I had
some fairly complicated code that looked ok to me.  With my failing memory I
was able to remember all the changes I made and go back and do the more
complicated ones differently.  Both times after redoing the code - mostly to
break up all the stuff that was on one line - it Hotsynced correctly.
V8's "too large" detection used the wrong value for warning about segments 
that exceeded the HotSync limits.  It was using 64K, but the real limit was 
about 100 bytes less than that.  We recently found that the segment size 
limit is even less on the Tungsten T by about 20 bytes, so 9.2 will use 
64000 bytes as the warning threshhold to allow breathing room.

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

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


Re: Low memory check failed in POSE 4.0

2003-06-25 Thread Jason Simpkins
Its appears that maybe its the serial manager that is
having a problem.  


--- Jason Simpkins <[EMAIL PROTECTED]> wrote:
> 
> Hello,
> 
> I'm struggling to try and figure out where this low
> check sum failure is occuring.   What tools can I
> use
> to find the exact C code that is doing this?   I'm
> using CW6.0 and the 4.0 SDK.  I try and use the
> debugger but it just gives me the asm code.
> 
> Thanks,
> Jason
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: Multiple forms handled by one .c

2003-06-25 Thread Paul Nevai
IMHO flexibility should rule. As a matter of fact, I have multiple instances
when I have a number of similar forms and then I handle them not only in one
.c file by via one single event handler function. In my particular situation
this has tremendous advantages. However, I believe that there should be no
general rule carved into stone. /PaulN [pedit etc.]

P.S. pedit itself is broken up into appr. one hundred .c files many of which
are shared by my other stuff.

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


Re: offtopic: who can figure out this for loop

2003-06-25 Thread Paul Johnson
1. The ++x won't get compiled either :)


Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com


- Original Message -
From: "Aaron Ardiri" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 8:18 PM
Subject: Re: offtopic: who can figure out this for loop


> > Not really PalmOS related, but hey you can run it on your Handheld:
> >
> >   int x = 1;
> >   for( int i = 0; i < 100; ++i );
> > // What will the next line do? Increment???/
> > ++x;
> >
> > what's the value of x after this code ran on a standard c++ compiler?
>
> 2.
>
> why?
>
> >   for( int i = 0; i < 100; ++i );  <-- see that ';'
>
> the compiler interprets this code as:
>
> int x = 1;
> for (int i=0; i<100; i++)
> {
> }
> ++x;
>
> basic C :)
>
> ---
> Aaron Ardiri[EMAIL PROTECTED]
> CEO - CTO   +46 70 656 1143
> Mobile Wizardry  http://www.mobilewizardry.com/
>
>
> --
> 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/


Re: offtopic: who can figure out this for loop

2003-06-25 Thread Paul Johnson
I can see I'm a litle late on this. I got the ";" bit right as I do this
once a day myself. That bit on trigraphs is nasty tho. Why is this stuff
still around ?  :S


Regards,
Paul Johnson
Applewood House
www.applewoodhouse.com


- Original Message -
From: "Paul Johnson" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 8:51 PM
Subject: Re: offtopic: who can figure out this for loop


> 1. The ++x won't get compiled either :)
>
>
> Regards,
> Paul Johnson
> Applewood House
> www.applewoodhouse.com
>
>
> - Original Message -
> From: "Aaron Ardiri" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 24, 2003 8:18 PM
> Subject: Re: offtopic: who can figure out this for loop
>
>
> > > Not really PalmOS related, but hey you can run it on your Handheld:
> > >
> > >   int x = 1;
> > >   for( int i = 0; i < 100; ++i );
> > > // What will the next line do? Increment???/
> > > ++x;
> > >
> > > what's the value of x after this code ran on a standard c++ compiler?
> >
> > 2.
> >
> > why?
> >
> > >   for( int i = 0; i < 100; ++i );  <-- see that ';'
> >
> > the compiler interprets this code as:
> >
> > int x = 1;
> > for (int i=0; i<100; i++)
> > {
> > }
> > ++x;
> >
> > basic C :)
> >
> > ---
> > Aaron Ardiri[EMAIL PROTECTED]
> > CEO - CTO   +46 70 656 1143
> > Mobile Wizardry  http://www.mobilewizardry.com/
> >
> >
> > --
> > 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/
>


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


Re: Help! How go from doze mode to bright light state(for dark place) programatically

2003-06-25 Thread rudolfpolzer2000
>   i need to programmatically make the Palm device from
> doze mode(on-display state) to bright light state(for dark place)
> without pressing on/off button continuously. 

try this one with switch = true and new as needed:

static Boolean Light(Boolean switch, Boolean new)
 {
 Boolean old;
 HwrDisplayAttributes(false, 0x12, &old);
 if (switch && (old != new))
  EvtEnqueueKey(vchrBacklight, 0, commandKeyMask);
 return old;
 }

Rudolf Polzer



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


Re: fatal alert: table.c, line:2408

2003-06-25 Thread Will Leong
Thanks Aaron.

I came across the culprit TblInsertRow.  As I scrolled the table up and
down, my table was get bigger each time.

I have been starring at this code too long.

Thanks again,

Will

"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> > This occurs when I scroll down past my 8 rows to the end and
> > I select a row, I get this error.
>
> i'll take a hint that your probably running on an OS4 device,
> so the FATAL ALERT most likely is this one:
>
>  ErrFatalDisplayIf (row >= tableP->numRows, "Invalid row");
>
> does that help? :) you are obviously trying to select a row
> when you dont have enough there in the table. you might want
> do do some checking on how many rows you have before you pass
> a call to this function
>
> are you calling: TblGetItemBounds? :P
>
> ---
> Aaron Ardiri[EMAIL PROTECTED]
> CEO - CTO   +46 70 656 1143
> Mobile Wizardry  http://www.mobilewizardry.com/
>
>
>



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


Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Shashidhar Kura
Nicolas,

Thanks for your prompt response.

The reason I posted my original question is due to the following note in
NetServices API guide in Palm SG SDK.

"NOTE: The NetServices API does not provide a method to add profiles to the
existing Wi-Fi Panel. If you create a Net Services application, you must
design your own panel to display and create profiles, connect to access
points, and so forth"

1) Which API lets an application, connect to specific access point ?
2) Since the profiles created by my application and Wifi Panel may not be
the same, it might be a confusing experience to the user if they end up
using both the applications to view the profiles. How can I avoid this
confusion ? Is there a way to hide the Wifi Panel from the user after our
application is installed ?

Shashi

"Nicolas Pabion" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Add your profile and make sure that the profile you created is the first
in
> the profile list (eg use NetServicesProfileSetOrder() ) so that on the
next
> connection it will be used first.
> Note: Opening the WiFi Panel might mess up your new account since WiFi
Panel
> stores the connection profiles in a seperate db and will override the
> current profiles.
>
> Nicolas
>
> "Shashidhar Kura" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > Hello All,
> >
> > Is there any API in Palm SG SDK to initiate a connection to a 802.11
> network
> > using a profile that is created using NetServiceProfileAdd() ?
> >
> > The NetServices sample does not have any hints for the existance of such
> > API.
> >
> > Any information or pointers are greatly appreciated.
> >
> > Thanks in advance for your help.
> >
> > Shashi
> >
> >
> >
> >
>
>
>
>



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


Re: PalmNetServices API in Palm SG SDK

2003-06-25 Thread Nicolas Pabion
> 1) Which API lets an application, connect to specific access point ?
It's up to you to aetup the access point in the profile. You can find the
availbale access point doing a BSS Scan. There is a sample code for that.

> 2) Since the profiles created by my application and Wifi Panel may not be
> the same, it might be a confusing experience to the user if they end up
> using both the applications to view the profiles. How can I avoid this
> confusion ? Is there a way to hide the Wifi Panel from the user after our
> application is installed ?

Create a Panel with the same creator and type as the WiFi Panel.

Nicolas



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


Re: getting registered directories

2003-06-25 Thread Carlos Junco
Sorry, when I said "media type" I meant external card media type. (i.e.
Memory stick, SD card...etc.) I wanted to know how to get all the currently
registered directories for a specific card media type.

"Sebastian Voges" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Tue, 24 Jun 2003 20:03:31 -0400, Carlos Junco wrote:
>
> >
> > Is there a function for getting all the registered directories for a
> > specific media type? (VFS)
>
> Hi,
> isn't there only *one* directory assigned to a  specific media type?? at
least
> that's how I understand it. VFSGetDefaultDirerctory() gets it.
>
>
> regards,
>
> Sebastian
>
>
>
>



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


Re: OS5 - how to wait for interrupting programs (e.g. brightness dialog,Find, Alarm...)

2003-06-25 Thread James
Jeff Diamond wrote:
>
> This may sound elementary, but I'm totally stumped. My app is
> running - some other app interrupts it - could be an alarm or a
> system dialog... Before OS 3.5, I got a winExitEvent so I knew I was
> interrupted - and I just waited for a winEnterEvent to continue.
> 
[...]
> 
> BUT NOW - in OS 5.x, not only don't I get the winExitEvent in time,
> but also my application isn't blocked from running after it's
> interrupted. The result is that my application keeps running AFTER
> the external dialog appears, drawing over top of the dialog
> completely before losing all pen input.

In OS 5.x, exactly how does your application continue to run?

Your application normally can't receive additional events, because even in OS
5.x, AFAIK there's a single, shared event queue, and if there's a dialog
active, that dialog's event handler grabs all events.

Do you mean that your application continues to receive notifications?  If so,
then that's the same behavior as in previous OS versions, and you need to check
to see if the active form/window is yours within your notification handlers.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


shortcut..2 on Sony TG50

2003-06-25 Thread Danny Wong
how do you put the device is debug mode
on the Sony TG50 using the keyboard?

thanks

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


Re: shortcut..2 on Sony TG50

2003-06-25 Thread James
Danny Wong wrote:
>
> how do you put the device is debug mode
> on the Sony TG50 using the keyboard?

IMO, it's easier to use the DotDotTwo application included with the Palm OS SDK
sample code.

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: Multiple forms handled by one .c

2003-06-25 Thread DongDong
This is style issue. Everybody has its own style.

I prefer to have different forms in different .c files. That results in more
clear structure and debugging more easy. However, dialog boxes are put in
separate .c file but in same .c with the form triggering it.

Here is my preferred arrangement:
1. main.c (program entry point and application event loop)
2. routine.c (shared program routines usable by modules)
2. [module1].c
3. [module2].c
. . .
where module1, module2, ... is name describing what the form is doing.

On desktop, Delphi is my usual tools and I get used to using object-oriented
approach too. So I'm going to use POL but it may take some time to study it
at first.


"Steven Fisher" <[EMAIL PROTECTED]> ¦b¶l¥ó news:[EMAIL PROTECTED] ¤¤
¼¶¼g...
>
> A coworker and I are having a bit of an argument over whether or not
> multiple forms should be handled by a single source file. I'm a big fan
> of considering .c files to be objects, and trying to use an
> object-oriented approach to developing forms. However, he's right that
> handling related forms with a single .c file takes a lot less source
> code (though I'm not really convinced it's that much less object code).
>
> So, I thought I'd ask here: What are the advantages/disadvantages to
> each approach? Have you regretted one extreme or the other? Is some
> comfortable middle ground (like related forms in a single .c) a better
> approach than either extreme?
>
> I'm willing to be convinced either way. Please let me know what you
> think. :)
>
>



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


PalmSim.exe crash on frmCloseEvent

2003-06-25 Thread David Beers
I receive a fatal PalmSim.exe Application Error (instruction at 0x0x8881a8
referenced memory at 0x) every time my application tries to pass a
frmCloseEvent for a particular form to FrmDispatchEvent. (Other
frmCloseEvents are not a problem, in fact other frmCloseEvents to the *same*
form do not cause this problem if they don't arise from a FrmGotoForm()
call)  I don't know if the frmCloseEvent is a red herring since it's not my
application that's crashing, but the Simulator itself. However the crash
always occurs at exactly the point where FrmDispatchEvent() is passing the
frmCloseEvent following a FrmGotoForm call. Don't even know where to begin
looking for a solution.

I'm using CW9.1, SDK5, and the Simulator on a Win2k machine.  Any
suggestions much appreciated.

David


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


Re: PalmSim.exe crash on frmCloseEvent

2003-06-25 Thread David Beers
I forgot to mention: the crash doesn't occur on a real device.  The
application seems to run fine there, although I have more to do and would
like to be able to use the Simulator for debugging.

David

- Original Message - 
From: "David Beers" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:02 PM
Subject: PalmSim.exe crash on frmCloseEvent


> I receive a fatal PalmSim.exe Application Error (instruction at 0x0x8881a8
> referenced memory at 0x) every time my application tries to pass a
> frmCloseEvent for a particular form to FrmDispatchEvent. (Other
> frmCloseEvents are not a problem, in fact other frmCloseEvents to the
*same*
> form do not cause this problem if they don't arise from a FrmGotoForm()
> call)  I don't know if the frmCloseEvent is a red herring since it's not
my
> application that's crashing, but the Simulator itself. However the crash
> always occurs at exactly the point where FrmDispatchEvent() is passing the
> frmCloseEvent following a FrmGotoForm call. Don't even know where to begin
> looking for a solution.
>
> I'm using CW9.1, SDK5, and the Simulator on a Win2k machine.  Any
> suggestions much appreciated.
>
> David
>


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


Re: How to wrap text in a table column..

2003-06-25 Thread Prashant Jha
Doug,
> You didn't tell us what OS release levels you are
> testing it on.  I believe the
> OS did not recognize taps beyond the first line in a
> table row until 4.0.
I'm running the application on OS 3.5 and above and
like you said I tested it on 4.0 and 4.1 but it
doesn't behave the way I want it.

>If you need to support the same user experience prior
>to 4.0, you have to trap the pen down event yourself,
>AFAIK.
Looks like I will have to handle the pen down event
myself now. I hope this works.
Thanks
Prashant


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: I need a list with normal ScrollBar

2003-06-25 Thread Dan Patrutiu
You won't change the default list behaviour (that is, showing the two
scroll buttons) by setting the hasScrollBar flag. If you need a list with a
normal scrollbar, you must program this yourself by the following:
- set the number of items of the list to exactly the list height
- attach the scrollbar to the list and set the scrollbar's dimensions to be
appropriate
- when the user scrolls, you set again the Items pointer to the new
location, but keep the number of items the same
By using these artifacts, the list doesn't know that you have more items
than it can display and it won't show the scroll buttons. The inconvenience
is that you must program all the stuff yourself.

Dan Patrutiu


"Ralf Krauss" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi:
>
> I need  a list with normal ScrollBar and not with the default one.
> Can I change the "ListAttr" (hasScrollBar) of  a list during runtime?
>
> thanks.
> Ralf
>
>
>
>
>
>
>
>



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


Emulator reports invalid Program Counter

2003-06-25 Thread Rudolf Polzer
With production ROM everything runs fine.
With debug ROM, the emulator reports that
the program counter becomes invalid at the
end of the function animate (which does all
of its work correctly but only once)
and the debugger reports
EXCEPTION ID = $80
 100459EC  *RTS
That is how the code looks like:

static void animate (void)
{
Int16 xa, ...
WinSetDrawWindow (FrmGetWindowHandle (FrmGetActiveForm ()));
xa = ...
WinDrawLine (xa, ya, xe, ye);
}
static void waitForEvents (void)
{
EventType e;
do
 {
 EvtGetEvent (&e, 10); // wait max. 0.1 seconds
 if (!SysHandleEvent (&e)) // do system events
  if (!HandleMyEvent (&e)) // do my events
   animate (); // do animation
 }
// code here is not reached with debug ROM!
while (e.eType != appStopEvent);
}
I am using Debug ROM palmos35-de-nonezdbg.rom
with Emulator Version 3.5
Thanks for a hint
Rudolf Polzer
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/