Hi Paul,
which printf do you use? And where does it print? I've never used printf
in my palm apps. Can't you use the normal API calls?
Henk
[EMAIL PROTECTED] wrote:
> hello,
>
> when I use printf in a simple application on my palm m505, it works fine. if
> the line is long, and wraps to the
On Thu, 2002-10-10 at 07:43, Sebastian from Berlin/Germany wrote:
>
> Hey,
>
> if i run the following code:
>
> Int16 count[6];
> char counterlabel[40];
> Int16 p, all,allcards;
>
> count[1]=2000;
> p=(100*count[1]);
> StrPrintF (counterlabel,"Box 1 - %d cards (%d %%) - %d",
> count[1],p,coun
Hey,
if i run the following code:
Int16 count[6];
char counterlabel[40];
Int16 p, all,allcards;
count[1]=2000;
p=(100*count[1]);
StrPrintF (counterlabel,"Box 1 - %d cards (%d %%) - %d",
count[1],p,count[1]);
i get a counterlabel = "Box 1 - 2000 cards (3392 %) - 2000"
Why the hell 3392??? I
On Thu, 2002-10-10 at 04:35, JB Parrett wrote:
> Are you using the Emulator with debug ROMs? Use the latest POSE (3.5) and
> the OS 4.1 debug ROMs with all the debug checks turned on and run Gremlins.
> POSE does a pretty thorough job of looking for memory accesses in forbidden
> places, and the d
The majority of Palm software is distributed online through sites such as
Palmgear.com, Handango.com etc... some is boxed and sold through normal
retail channels... it's up to you how you want to do it... I don't think
there is a "best" way to do it - it depends on the target audience of the
app i
Thanks for everyone's different explainations, now I understand a little
more. The program actually does what I want it to now. Once I did some
digging I found another function from greg's glib that would easily set the
field text and simplified the multiple api calls.
"Ben Combee" <[EMAIL PROT
At 00:04 2002-10-10 -0400, you wrote:
>On Wednesday, October 9, 2002, at 11:45 PM, Ben Combee wrote:
>>
>>OK... I'm looking at the POL source, and I'm wondering what would happen
>>if you wrote
>>
>>CDatabase *db = new CDatabase((void *)0);
>>
>>The default constructor for CDatabase just sets it
On Wednesday, October 9, 2002, at 11:45 PM, Ben Combee wrote:
>
> OK... I'm looking at the POL source, and I'm wondering what would
> happen if you wrote
>
> CDatabase *db = new CDatabase((void *)0);
>
> The default constructor for CDatabase just sets it internal DmOpenRef
> to NULL. A DmOpenR
At 23:36 2002-10-9 -0400, you wrote:
>On Wednesday, October 9, 2002, at 10:58 PM, Ben Combee wrote:
>
>>>I've already thought of several ways to "work around" this bug, but I'd
>>>rather not have to since I have other code that uses similar methods and
>>>that would require making several archi
When a field is initialized by the system, it has no text yet, so the field
manager doesn't allocate a handle for it. You'll need to allocate your own
and copy text to it (or you may already have such a thing handy), and use
FldSetTextHandle to put it in place. Finally, if you have already drawn y
If the field hasn't been populated yet (nothing entered or
initialized), then it will have a null handle.
Best bet is to encapsulate this stuff (SetFieldText) and never mess
with field handles in your form handler.
Hal
--
For information on using the Palm Developer Forums, or to unsubscribe,
Are you using the Emulator with debug ROMs? Use the latest POSE (3.5) and
the OS 4.1 debug ROMs with all the debug checks turned on and run Gremlins.
POSE does a pretty thorough job of looking for memory accesses in forbidden
places, and the debug ROMs do a good job of checking your use of the Pal
At 23:05 2002-10-9 -0700, you wrote:
>I'm trying to set text in a field when a form opens, the problem is that I
>keep getting a null handle. I make a call to a function I received along
>with greg winton's FTPview example.
>
> nameH = GFrmGetFieldTextHandle (formP, SigninNameField);
> nameP =
On Wednesday, October 9, 2002, at 10:58 PM, Ben Combee wrote:
>> I've already thought of several ways to "work around" this bug, but
>> I'd rather not have to since I have other code that uses similar
>> methods and that would require making several architectural changes
>> to our design. I'v
I'm trying to set text in a field when a form opens, the problem is that I
keep getting a null handle. I make a call to a function I received along
with greg winton's FTPview example.
nameH = GFrmGetFieldTextHandle (formP, SigninNameField);
nameP = nameH ? (Char*) MemHandleLock (nameH) : NULL
You can also open one of your source files **while the debugger is running**
and set break points in places you need.
JB @ PalmSource
on 10/9/02 7:32 PM, Gavin Maxwell at [EMAIL PROTECTED] wrote:
> I've never used that option, however I think you'll find it easier if you
> manually set breakpoi
At 22:32 2002-10-9 -0400, you wrote:
>This is a debug build so optimizations are turned off. I'd can't change
>the constructor for the Contact class since it's being created by the
>Sybase Ultralite generator, although I could subclass if that makes any
>difference.
I wish I knew what was happ
Actually, you'll have to get the 4.0 SDK (the 5.0 SDK no longer contains
Beamer). :-(
JB @ PalmSource
on 10/9/02 7:08 PM, Gavin Maxwell at [EMAIL PROTECTED] wrote:
> Check out the Beamer sample from the SDK...
>
>
> Cheers,
> Gavin.
>
> S Santoso <[EMAIL PROTECTED]> wrote in message
> news:9
MemMove is just like memmove. It differs from memcpy in that the source and
destination are allowed to overlap. If they do, the source will not be unchanged
after the move. If they are disjoint, then there is no difference between MemMove and
memcpy: the source will not change.
-bob mckenz
This is a debug build so optimizations are turned off. I'd can't change
the constructor for the Contact class since it's being created by the
Sybase Ultralite generator, although I could subclass if that makes any
difference.
I've already thought of several ways to "work around" this bug, but
At 19:22 2002-10-9 -0700, you wrote:
>Is MemMove comparable to memcpy()?
Actually, its closer to the ISO C library call memmove(). It can be used
anywhere memcpy() would be used, but it handles copying between overlapping
regions of memory safely.
>Is the source still valid after a MemMove?
Is MemMove comparable to memcpy()?
Is the source still valid after a MemMove?
Thanks,
Brad
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
At 19:06 2002-10-9 -0700, you wrote:
>- Original Message -
>From: "Mark F Rodriguez" <[EMAIL PROTECTED]>
> >
> > // create instances for helper classes
> > m_contactPtr = new Contact();
> > m_contactPDBPtr = new CDatabase;
> >
> > If I comment out the line "m_contactPDBPtr = new CDatabase;
- Original Message -
From: "Mark F Rodriguez" <[EMAIL PROTECTED]>
>
> // create instances for helper classes
> m_contactPtr = new Contact();
> m_contactPDBPtr = new CDatabase;
>
> If I comment out the line "m_contactPDBPtr = new CDatabase;" everthing
> compiles OK. However, I get the s
At 21:38 2002-10-9 -0400, you wrote:
>On Wednesday, October 9, 2002, at 08:52 PM, Ben Combee wrote:
>
>>ICE errors indicate that the compiler detected an internal inconsistency
>>and stopped, rather than continue and crash or generate bad code. The
>>compiler was updated twice from V6 to V8, mo
On Wednesday, October 9, 2002, at 08:52 PM, Ben Combee wrote:
> ICE errors indicate that the compiler detected an internal
> inconsistency and stopped, rather than continue and crash or generate
> bad code. The compiler was updated twice from V6 to V8, mostly with
> new C++ front-end code. T
At 20:53 2002-10-9 -0400, you wrote:
>I've got a fairly large C++ application in Codewarrior that uses the POL
>framework. Things were working fine until I added a Init method to one of
>my custom classes that does something like:
>
>void CMyClass::Init()
>{
> // create instances for he
I've got a fairly large C++ application in Codewarrior that uses the
POL framework. Things were working fine until I added a Init method to
one of my custom classes that does something like:
void CMyClass::Init()
{
// create instances for helper classes
m_contactPtr = new Conta
At 19:55 2002-10-9 -0400, you wrote:
>I use breakpoints all the time. A 'break' is more useful when your program
>is getting stuck in an endless loop and its not immediately clear where it
>is. I'm using Gremlins and its happening after 20,000 or so events, so its
>takes a while to track down an
I use breakpoints all the time. A 'break' is more useful when your program
is getting stuck in an endless loop and its not immediately clear where it
is. I'm using Gremlins and its happening after 20,000 or so events, so its
takes a while to track down an endless loop using only breakpoints. If
Without looking at the code, the leak is not caused by the allocation
itself - it's caused by not freeing that allocation when you are done with
it...! If you allocate some memory you need to ensure it is freed.
Commenting out an allocation will, of course, 'fix' the leak - but I can't
imagine yo
I know a couple of companies who had similar requirements, so they simply
bought m100's and ripped em apart. Cheap and easy.
Gavin.
Eamon Kelly <[EMAIL PROTECTED]> wrote in message news:97831@palm-dev-forum...
>
> Hi,
> our company had decided to replace the keypad and display in our
intelligen
I've never used that option, however I think you'll find it easier if you
manually set breakpoints where you want your app to stop, then you can step
through easily. To set a breakpoint click in the far left portion of the
source window - a red dot should appear. Alternatively you can using F9 (PC
Hi John,
Something like this...?
//
// Scrolls a field object by a defined number of lines
// negative values will scroll field 'up', positive will scroll field 'down'
// returns a boolean which defines if the field was actually scrolled
//
static Boolean ScrollLines( FieldPtr field, Int32 numLi
Check out the Beamer sample from the SDK...
Cheers,
Gavin.
S Santoso <[EMAIL PROTECTED]> wrote in message
news:97866@palm-dev-forum...
>
> Hi all,
>
> Do you know how to convert a signature writing to a bitmap? I have this
> global BitmapPtr variable which store the signature, which will be us
Work-around would be to have a small stub app on the device with the same
creator ID, but a different name (so it didn't get written over when the
real app was copied into main memory).
Gavin.
Acrocat <[EMAIL PROTECTED]> wrote in message news:97867@palm-dev-forum...
>
> If an application reside
I don't see this at all Paul - around 5% most of the time...
TiPB 550/Jaguar/POSE3.5/m505
Gavin.
Paul Nevai <[EMAIL PROTECTED]> wrote in message
news:97847@palm-dev-forum...
>
> Well, POSE is really MacOSX unfriendly in terms of CPU usage. Could this
be
> dealt with in the next release? /Paul
At 14:58 2002-10-9 -0700, you wrote:
>cool, I'll give that a shot. btw: I forgot to set my commandKeyMask
>modifier for my event object.
>After that, the event posted fine and did as expected.
>
>I'll still need to look at doing your other suggestion due to some refresh
>issues that I'm still ha
cool, I'll give that a shot. btw: I forgot to set my commandKeyMask
modifier for my event object.
After that, the event posted fine and did as expected.
I'll still need to look at doing your other suggestion due to some refresh
issues that I'm still having on the form that I'm going to, BUT - i
At 14:51 2002-10-9 -0700, you wrote:
>I gave that a try, I created an event and posted it, but the popup list
>still didn't close.
>
> EventType event;
> MemSet( &event, sizeof(event), 0 );
> event.eType = keyDownEvent;
> event.data.keyDown.chr = vchrCardCloseMenu;
> EvtAddEven
I gave that a try, I created an event and posted it, but the popup list
still didn't close.
EventType event;
MemSet( &event, sizeof(event), 0 );
event.eType = keyDownEvent;
event.data.keyDown.chr = vchrCardCloseMenu;
EvtAddEventToQueue ( &event );
Any idea?
Thanks - bill
"B
At 14:29 2002-10-9 -0700, you wrote:
>I was hoping to just solve my problem by just doing a SysUIAppSwitch to my
>own app, but unfortunately when I do that I run into problems because my
>global variables are blowing up the system.
>So since the only way I've found to close that window is via send
I was hoping to just solve my problem by just doing a SysUIAppSwitch to my
own app, but unfortunately when I do that I run into problems because my
global variables are blowing up the system.
So since the only way I've found to close that window is via sending an
appstop event to my app, but I can
hello,
when I use printf in a simple application on my palm m505, it works fine. if
the line is long, and wraps to the next line, this is also fine. however as
soon as the 'long' line gets to the bottom of the screen, the screen goes
clear (apart from leaving characters down the right edge of the
I have almost following kind of code in my application
to capture user's drawing. In emulator I am getting
one memory leak at :
bitmapP = BmpCreate(drawArea.extent.x,
drawArea.extent.y, depth, clrTableP, errorP);
If I comment this line no memory leak.
If I put something like
BmpCreate(100
Well I can get the appStop to work by just sending an appStop event to the
queue, so I guess I can make it as simple as just exit the app. I need a
way to close that window and make the current form active so that our
FrmGotoForm works properly.
thanks - bill
>
> We have a trigger in our code
Sorry, but I don't know how this mailing list work!
No problem. I never will do questions.
Sorry for that dozen questions and for my bad english.
- Original Message -
From: "Dave Lippincott" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09,
All I can say is "that's odd...". Poser 3.5 includes specific support for Mac OS X
with regards to not eating up CPU cycles. In fact, it accidentally *broke* Poser on
Mac OS 9 (delay loops in emulated code practically all but disappeared).
-- Keith Rollin
-- Palm OS Emulator engineer
At 3:1
We have a trigger in our code that when a user selects something, a
popuplist is then displayed.
(we do this by createing a list and setting the height.)
When a user clicks any of the application buttons (e.g. global find or
application launcher) - the list disappears and then the system responds
>When properly installed on the PalmOS Simulator, HostFS indeed shows up
>as "POSESlot1" in my Launcher categories dropdown. When I call
>ExpCardInfo() to acquire the card's serial number, it fails with an
>expErrInvalidSlotRefNum.
>
>Also, Palm's own Card Info fails to show the card in its dropd
#
Which version are you trying, and which device are you emulating ?
With version 3.5 emulating a Palm m505, there was no more than 3% to 5% of
CPU taken, when in the launcher... ( don't remember if I'm using the
distrib
At 12:03 2002-10-9 -0700, you wrote:
>Hi Everyone,
>
>Does anyone know a way to force CodeWarrior to use a
>different resource type for bitmaps? For example, if
>I wanted the resource type 'TBmp' to be 'FROG'
>instead.
>
>I have been able to do this using Pilrc, but I hate to
>convert all my .rsr
Hi Everyone,
Does anyone know a way to force CodeWarrior to use a
different resource type for bitmaps? For example, if
I wanted the resource type 'TBmp' to be 'FROG'
instead.
I have been able to do this using Pilrc, but I hate to
convert all my .rsrc files to .rcp file (BTW, I've
tried some of
At 11:40 2002-10-9 -0700, you wrote:
>(Simulator 5.1.0.28, HostFS_for_Simulator v1.0)
>
>When properly installed on the PalmOS Simulator, HostFS indeed shows up
>as "POSESlot1" in my Launcher categories dropdown. When I call
>ExpCardInfo() to acquire the card's serial number, it fails with an
>ex
(Simulator 5.1.0.28, HostFS_for_Simulator v1.0)
When properly installed on the PalmOS Simulator, HostFS indeed shows up
as "POSESlot1" in my Launcher categories dropdown. When I call
ExpCardInfo() to acquire the card's serial number, it fails with an
expErrInvalidSlotRefNum.
Also, Palm's own Ca
I'm trying to get the Up/Down repeating buttons to scroll a field. So far
I've found examples that scroll tables but none that scrolls a field.
Can someone send me example code or suggest example code for the above?
Thanks in advance,
John McDowell
--
For information on using the Palm Devel
If an application resides on an expansion card but the databases reside on the actual
device, both having the creator ID of and there is a conduit associated with
creator ID , will it run in that case? Or does the app have to reside on the
actual device? If that is the case, is there
Hi all,
Do you know how to convert a signature writing to a bitmap? I have this
global BitmapPtr variable which store the signature, which will be used
later in the session. Can I use BmpCreate function to store signature to
BitmapPtr? What's really the steps (in term of function to use) to ca
> I've been trying to get Palmsource to fix that bug
> since OS3. CERNN (Coalition for Equal Rights
> of Negative Numbers) is planning a protest
> soon at the Palmsource campus. Anyone interested
> in attending?
Yes! Just post the day and time here a couple days
in advance and I'll be there
Keith Rollin wrote:
> I'm not clear on whether you're looking for USB support or SrmExtOpen support. If
>the former, I don't think there's a (supported) way to find out. If the latter, take
>a look at the ROM Transfer tool sources that come with the Palm OS Emulator sources
>-- they include e
> HAHAAHAAH
> I will!! Negative numbers should not be treated with less importance
because
> the are smaller!!
actually, in binary form, negative numbers are larger :) the negative
bit is the MSB (bit 32, 16 etc) :P hehe.. so, -1 is really 65535 with
a 16bit integer *g*
---
Aaron Ardiri
Hi Paul !
Le mercredi, 9 oct 2002, à 15:52 Europe/Paris, Paul Nevai a écrit :
> Well, POSE is really MacOSX unfriendly in terms of CPU usage. Could
> this be
> dealt with in the next release? /Paul N.
>
> PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
> VSIZE
> 5847 to
On Thu, Oct 03, 2002 at 05:43:38AM -0500, Michael Harrison wrote:
> TraceOutput( TL( appErrorClass, "re-allocated %hu bytes of record
> memory", gNumRecordsAllocated * sizeof(UInt16) ) );
The sizeof operator returns a size_t, which, on Palm OS with both GCC
and CodeWarrior, is the same size as a
Well, POSE is really MacOSX unfriendly in terms of CPU usage. Could this be
dealt with in the next release? /Paul N.
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
5847 top 10.8% 0:01.91 11419 304K 376K 600K 13.6M
5830 Palm OS Em 37.1% 1
HAHAAHAAH
I will!! Negative numbers should not be treated with less importance because
the are smaller!!
- Original Message -
From: "Dave Lippincott" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 6:14 AM
Subject: Re: Negative Number
Yes, we heard you the first dozen times.
Read the Palm OS reference and draw the button yourself.
- Original Message -
From: "Roberto Sobachi" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 1:39 PM
Subject: Tables and Table custom Item
Feels nice to be cited. ;-)
I've been trying to get Palmsource to fix that bug since OS3.
CERNN (Coalition for Equal Rights of Negative Numbers) is planning a protest
soon at the Palmsource campus. Anyone interested in attending?
- Original Message -
From: "Doug Whetham" <[EMAIL PROTECT
When debugging, either with or without gremlins running, I'd like to be able
to stop the run at the current line of execution and start stepping through
my app. "Debug > Break" is always off (grayed out). How do I activate it?
I looked through preferences, but didn't see anything.
Thanks!
Rich
Well you wouldn't handle it per se - you would send it to an application
that could handle it... :-)
http://www.escribe.com/computing/pcpqa/m53513.html
Cheers,
Gavin.
Madhusudhan <[EMAIL PROTECTED]> wrote in message
news:97830@palm-dev-forum...
>
> Hi
>
> I would like to know whether handling
link your program with m68k-palmos-g++
Piotr Banasiak wrote:
>When I compile and link I have error from linker no reference to __new__ and
>to __delete_ .
>So I have changed compiler options to -fno-exceptions -fno-rtti
>and put linker options -lnoexcept
>
>And then I have got no reference to fr
Hi All,
I have a query related to distributing my palm
softwares.
We as a team have developed few quite interesting
application which we wish to distribute.
What is the best way to distribute softwares?
Any help will be much appreciated ..
Thanks,
Rahul
_
Hi,
our company had decided to replace the keypad and display in our intelligent
controller devices with either an embedded Palm or WinCE device.
We found loads of WinCE hardware suitable for embeddeding in our controllers
for around $500, but not a single Palm device.
So despite that fact that
Hi
I would like to know whether handling this launch code in my application
would give me the service list which the network panel uses. If now, could
anybody tell me how do I get the Service list of the Palm programtically?
Thanks in advance.
Regards
Madhu
--
For information on using the Pal
quennie wrote:
>decided to use an global variable, say n_text as passing parameter between
>FormA and FormB. So, the n_text will be assigned a value from one of the
>selectorTrigger(when the selectorTrigger was triggered) to FormB. Similarly
>to the FormB, the n_text will be assigned a value to Fo
74 matches
Mail list logo