the 'divide by 400' rule. D'oh
Not that this has anything to do with Palm OS :-)
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
, but that's
optimisation for you. It's never free.
Are we off-topic for this list yet? :-)
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
there than starting from scratch.
No idea how this compares with the Lz77 API.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
the basic build script to read a file
of projects in order to automate the building of a set of libraries
and the apps that used them, although if I had to do it again
I'd start by finding a vbscript debugger.
Chris Tutty
--
For information on using the PalmSource Developer Forums
on.
The data module can be built as if it was an object with get()
and set() methods for each field. Although C doesn't support
object-oriented programming syntactically there's no reason
you can't apply object-oriented design principals.
Chris Tutty
--
For information on using the PalmSource
structures - the conduit
API does that for you).
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
than a bug in the Palm OS source and, if it is a
bug in the Palm OS source you're down to debugging assembler
because you're not going to get access to the Palm OS source.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http
the location of the crash.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
. Is that intended to replace the simulator
as the primary debugging tool or is it just for low level tech
stuff?
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
that it's a gray area, but I'm thinking that this at least would
allow us to gradually improve the robustness of the simulator as a
debugging tool, although it depends on PalmSource being willing to
apply resources to those bug reports.
Chris Tutty
--
For information on using the PalmSource
up on-line, but I just don't have the time
to debug and document it.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
with run-time
language selection).
It takes a bit of setting up and generally isn't necessary or desirable
so I'm only mentioning that it's possible as an interim measure.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev
From: Ornstein, Adam [EMAIL PROTECTED]
1. (brute force?) I was thinking that we could spider the tool, and
produce a large number of files, that could be linked to one another from
the PDA tool's main interactive page. Making it seem interactive... but
is
there something out there that can
isn't a good way to obtain an accurate conversion
of a floating value because you don't have control over issues like
truncation.
I think you should be using an explicit conversion function so that
1409.99...
is rounded to 1410 rather than being truncated to 1409.
Chris Tutty
--
For information
at least shows signs that he's investigating these problems
himself. We've had posters in the past that have said
I can't do this, please write the code for me and I need it
by tomorrow.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http
manager’s data structures. Any help will be
appreciated!!
And an excellent error message it is. The last sentence about writing
past the end of the buffer says it all. Check the logic that limits
the amount of data written and the size of the buffers allocated.
Chris Tutty
--
For information
a Close() function to reverse this. Of
course if Open() does something else entirely then your bug
is elsewhere.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
you're not trying
to fit the whole data block into a single memory object so 64K
becomes completely irrelevant (as long as you're not talking about a
database with only one record). Multi-megabyte databases are common
with Palm apps.
Chris Tutty
--
For information on using the PalmSource Developer
at least you've got some alternatives to think about.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
more chance of doing something
useful.
Chris Tutty
(snip)
Boolean nofield = false;
static Boolean frmMain_frmTestButton_OnSelect(EventPtr event)
{
// Insert code for frmTestButton
GetFieldData( fldTest, testdata, 255 );
if (nofield) status = FrmAlert(frmAleart);
nofield = false
via the header. While this is still global from the compilers
point of view it provides good modularity for code
management.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
essentially just using the loop to
step through a sequence (a simple state machine) to ensure
that the before and after logic in always consistent.
Chris Tutty
#include PalmOS.h
#include testaleart.h
#include testaleart_res.h
Char testdata[256], testdata1[256];
Boolean nofield = false;
UInt16
more
complicated if you're building a string up and concatenating
because you need to take the existing length of the string into
account but for StrNCopy it's generally just a matter of passing
the defined length -1.
Chris Tutty
Boolean GetFieldData (UInt16 fldNbr, Char *text, UInt16 maxLen
From: Chris Tutty [EMAIL PROTECTED]
From: druid [EMAIL PROTECTED]
Here's a better way that has error checking, default processing and
takes
advantage of a unique feature of the PalmOS StrNCat() function to
prevent
stack corruption:
Are you sure it's StrNCat you want and not StrNCopy
hText = FldGetTextHandle(fldP);
if (hText)
{
MemPtr *pMem = MemHandleLock( hText );
StrCopy( text, (Char*)pMem );
StrNCopy( text, (Char*)pMem, length );
text[length - 1] = '\0';
MemHandleUnlock( hText );
}
} else
{
MemSet(text, length, '\0');
}
}
Chris Tutty
From: Jonathan King [EMAIL PROTECTED]
Here is a simple way to do what you are doing.
static void GetFieldData( UInt16 fld, Char *text )
{
FormPtr frm = FrmGetActiveForm();
FieldPtrfldP = FrmGetObjectPtr(frm,
FrmGetObjectIndex(frm,fld));
if(FldGetTextLegnth(fldP))
which needs to
. This means that the function is safe
regardless of what's passed to it. You just need to check the
fldP for null and I think the function as written is fine.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support
of the field or
whether the start of the constant is wrong by four bytes but the
data has been written to the wrong location. There are some
compiler settings for how constants are handled but I wouldn't
have thought they'd cause this sort of problem.
Chris Tutty
--
For information on using
, but I was pleasantly surprised by
how easy it was - of course this requires devices that have
flashable ROM.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
PDBGo that will let you write
custom scripts to extract database contents to exact
specifications (there also used to be a PDBC tool that allowed
COM access to PDB files from memory). Google should
answer this.
Chris Tutty
--
For information on using the PalmSource Developer Forums
that implement the forms so it's easy to extend these simple
examples without stopping to think that at some point their
underlying design has to be re-examined.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support
as long as you don't change the active window.
It's good that you can continue moving forwards, but I'd treat
the underlying problem as mising rather than fixed.
Chris Tutty
UInt16 entered_name = 0;
static Boolean frmMain_fldName_OnfldEnter(EventPtr event)
{
// Insert code for fldName
the GetFieldData() know to limit the data to 256? I would
have thought that this function would also need to be passed a
buffer length.
Aside from that it all looks sensible.
Chris Tutty
- Original Message -
From: druid [EMAIL PROTECTED]
To: Palm Developer Forum palm-dev-forum@news.palmos.com
dbPtr - if it's owned externally
then the db find, open and close should be external, if the open and
close are going to be done by this function then it needs to own the
dbPtr.
A fast fix is to set dbPtr to null after the close.
Chris Tutty
static Boolean frmMain_saveButton_OnSelect(EventPtr
this group should be able
to fix those for you fairly quickly. At least with that approach
you get your head into the right space in terms of the design,
code, debug cycle.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com
widths
you're likely to start wanting to make all sorts of detailed changes.
Biting the bullet to go to custom drawing pays off when you're
fine-tuning the list style.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev
doing something suggests that by the time you get here something
in the first two interations has corrupted memory or the heap. The
problem might not be in this code at all.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http
hug? Come on, don't be shy).
And apologies to druid for starting a side-conversation without
re-subjecting his thread.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
money because without this group they'd have to
provide real support :-)
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
? Paging the GamesMeister...).
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
handling mechanisms.
Feel free to flame me for issuing a condescending lecture on
code style rather than working out what the problem is. :-)
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
). When you add register colouring to the
equation it gets even more complicated.
My suggestion is to add an else clause that does something
different whichcauses sufficient side-effect that the compiler
is forced to execute it and see what the debugger shows
when you test that.
Chris Tutty
world im going broke LOL
I've trained several Palm OS developers and have mentored
people working through self-teach programs via email. If
you're interested contact me off-list and we can discuss rates
and structure.
Chris Tutty
--
For information on using the PalmSource Developer Forums
of the smaller stack. You
generally have to refactor the code to use memory-based
mechanisms for building and iterating the tree, making the
job more complex than a simple port.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev
some work
into trying to reproduce it. See if you can get a copy of the emulator
session your client is working with, or any details as to the sequence
of events that cause it.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http
that have more complex inter-connectivity it can get complicated.
I'm not sure how easy it is to compile a PODS project under
CW, but that might give you the info you need to make the app
single-segment.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe
to
contribute is too big a job for anyone to take on as a hobby.
It's a pity and, IMHO, the sort of thing that stays unresolved
unless someone puts up a stack of money to fund the framework
and, as for IBM and eclipse, there's got to be a good business
reason to do that.
Chris Tutty
--
For information
in the conduit
area since then. As an example I've seen examples in this
group of Delphi-based conduits that seemed to do a great
deal of work fairly easily. So I'm not suggesting that these ideas
are the best way to do things, just some alternatives you might
keep in mind.
Chris Tutty
downloads
include them.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
bids. I'm
sure that this has been done half a dozen times before so
another approach might be to search PalmGear and google
for existing products.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
can
save some pain downstream.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
From: epross [EMAIL PROTECTED]
Thanks for the quick response. Just to note, I only get this with
Netscape. With IE it works just fine. What browser are you using?
It's showing a problem that has something to do with cookie
handling - do you have cookies turned off?
Chris Tutty
code making sure
that every pointer is tested for null. This is time-consuming
but is useful to ensure that your code is robust.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
project on.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
it for. I couldn't find any info on
using AddIt in this way - all documentation assumes that it is downloaded
for use as a software portal and so doesn't talk about distribution
or licensing for other uses.
Can you point me to the documents that cover the legal and pricing
details?
Chris Tutty
sequence
you will receive when a form opens.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
of the information
you want regarding free space.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
Atari1040 had been squeezed into a 'top-pocket'
device but that was a while ago now and the OS is really
starting to show its age.
What I'm more interested in is whether the Linux kernel
will be accessible or whether it will be locked away the
same way the original threaded kernel was.
Chris Tutty
still be useful if you're writing many strings
and want to quickly extract one without reading the preceeding
strings.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
.
As an aside - the SDK used to have a spreadsheet buried
somewhere wityh european translations of the standard Palm OS
text. Useful if you're doing internationalisation yourself on the
cheap.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http
aren't usable it isn't that hard to write a function
that wraps text to the screen. Come back if you need more
detail on this option.
Chris Tutty
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
) + 1, twice.
Sorry if this is confusing but, as I say, it's been covered very
well just recently by someone.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
My apologies,
I didn't read your message carefully enough (thanks to Vesselin
for answering properly). Please ignore my earlier reponse.
From: Orasanu Iuliana [EMAIL PROTECTED]
I'm finding very difficult to work with memory allocation on this
platform... :-(
I'm trying to reallocate a memory
API call would return a locked
error, but my guess was that it was an old doc error, or a side-effect
of the low-level code that handles ptrs and chunks.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
://www.palmos.com/dev/support/docs/protein_books/File_Formats/Intro.html#970019
http://www.palmos.com/dev/support/docs/protein_books/File_Formats/PDBandPRCFormat.html#972428
With the oft-repeated note that there are a number of tools
available for working with these files (par, pdbc, ...).
Chris
itself shouldn't produce
a reset so you might be looking for a different problem
completely, with the unfreed chunk just a side-issue.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
anyone that's taken this step got an opinion on whether it
can be implemented as a wrapper lib without code changes?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
storage gets tight - it's worth helping users
to keep some spare space if you can.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
certainly has the credibility to sign into an
agreement with PalmSource. Now I've never done this, but I've
worked with hardware developers for whom it's commonplace.
Has your organisation contacted PalmSource with a view to gaining
access to their internal resources?
Chris Tutty
--
For information
work in DOS and do in Palm OS.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
like this.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
that if you had an AppInfoArea but didn't storing categories (the
PDB spec doesn't provide any way to identify this). Does this
sound about right?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
This
is who we are and we want it now.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
be possible to identify
the source of the difference, but that it might take weeks of work,
some seriously low-level debugging and disassemblies of the
NetLib code on both the device and the Simulator.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see
work to write your
own so...
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
releasing the record, but that's just me).
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
the library so I had good
control over both sides of the relationship.
Chris Tutty.
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
. Just bail out and return
control to the user.
Now that's the kind of excellent technique that's obvious once
someone's suggested it.
I'll just steal that idea and tuck it away in my things to add to my
default startup project pile.
Chris Tutty
--
For information on using the Palm Developer
?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
processing that describe how to organise your event loop and avoid
hogging the device, many relating to serial comms handling, but
providing generic solutions.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
about setting index to DmNumRecords
to add a record at the end. Although it's probably fine,
is there any reason you can't use dmMaxRecordIndex
as the documentation for DmNewRecord
suggests?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http
to the palmos dev forums page) has more detail on this.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
is failing for some other reason.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
and come back to
this group with specific questions. Reading the source for a sample
such as MemoPad will also provide insight as to how the database
functions work in practice.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com
suspect
from your bio that I don't need to explain this to you. :-)
Don't expect anything of value in the UniqueID field, it's only
significant on the device and can be zeros for created PDBs.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http
that notification is
meant to tell you. Of course most apps aren't interested in the launcher
launch, because it almost always follows an application exit but
Palm OS has to tell you so you have to check for it and ignore it.
Chris Tutty
--
For information on using the Palm Developer Forums
launcher, then it's the launcher who gets called.
Now that's much better than my answer, I wasn't detecting custom
launchers at all (scurries off to change his code).
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support
, this will happen
before the event handler for the form is in place. Or am I missing
something?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
to parse floats in text
was more of a deficiency than no multi-century date math.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
From: Clive Walden [EMAIL PROTECTED]
Chris Tutty wrote:
After all, if we're talking about missing functions I would have
thought that not providing a function to parse floats in text
was more of a deficiency than no multi-century date math.
OKs
I had no intention of starting one of those
From: Vesselin Bontchev [EMAIL PROTECTED]
From: Chris Tutty
The real problem is that HackMaster was created because
the trap redirection can cause the device to become unstable
if multiple apps try to hook into the same trap - I can't
OK, I have researched the issue and here is what I've
- Original Message -
From: Vesselin Bontchev [EMAIL PROTECTED]
To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Thursday, March 24, 2005 4:03 AM
Subject: Re: How to intercept application launching?
The real problem is that HackMaster was created because
the trap
(My apologies for the double post - OE obviously has problems with
multiple messages open for posting).
From: Vesselin Bontchev [EMAIL PROTECTED]
From: Chris Tutty
From memory you create a code segment, attach it to your app
as a resource (Ben's answer to my question on how to do
the first create does the second start working?
Have you checked that the DBName is different? How do you
know that it doesn't exist? Databases and prcs with the same
CRID are often reported as a lump in the Palm OS info screens
so you need to use an app such as Filez if you want more info.
Chris
.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
they are). You will also need to give a loud warning to the user
that your hack cannot be used in conjunction with any other
hack. Annoying, but it's the only option - one hack per device
or only use HackMaster compatible apps.
Chris Tutty
--
For information on using the Palm Developer
to turn that code into a sample and document it.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/
into strings and might need to be converted back into
numbers before you can calculate with it. On the other hand
if you're just displaying these values it doesn't matter.
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev
To be correct, this needs changing from:
From: Chris Tutty [EMAIL PROTECTED]
All that pack really means is that instead of storing strings padded
with spaces to a constant length
as in
'2938012 AUTO_ADD 100.20 '
'2938013SOME OTHER DATA100.20 '
'2938013THREE
1 - 100 of 501 matches
Mail list logo