At 03:15 AM 12/10/2009, you wrote:
Subject: Database question
From: Darren adelph...@yahoo.co.uk
Date: Wed, 09 Dec 2009 02:23:51 -0800
how is the unique id seed value obtained, please ?
DmDatabaseInfo() does not return it.
Cannot find any structs for database headers, so locking a pointer
I have a program that uses a single record database for its data. On the start
of the applicationam the db is opened, and the record is gotten Locked. Upon
exit all is unlocked, released closed.
problem is that some user, after many months the program starts showing garbage
data
Probably an artifact issue. I don't think she null-terminated her char
arrays. So, if the old string is longer than the new one, she'ld be
reading past the new one into the old one. Remember that she didn't
DmResizeRecord() on the record either.
Richard Hartman wrote:
Wait a sec ... if the
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]...
Probably an artifact issue. I don't think she null-terminated her char
arrays. So, if the old string is longer than the new one, she'ld be
reading past the new one into the old one. Remember that she didn't
DmResizeRecord() on the record
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]...
I can't use offsetof() in my application. My StructType is defined as
typedef struct {
UInt32 Id1;
UInt32 Id2;
char Data[1];
} StructType;
I can use offsetof(StructType, Id1) to write to the first field, but how
can I
update data
Hi,
This one is a challenge for me but I am sure it's a breeze for the more
experienced Palm developers out there.
Got a database full of tests as per below:
---
typedef struct {
long test_id;
long sort_id
build POSE complains that it can't install because the database is
still open. In my App Stop routine I call DmCloseDatabase (gDataBase) then I
call FrmCloseAllForms (). Am I doing this all wrong? Oh, another strange
thing about it is, this only happens in POSE with the 2.0 ROM. The 3.5 ROM
doesn't
Keith, silly question perhaps, but what does the database name field
refer to? It is obviously more important (based on your response to
another post) than I realized.
Roger Stringer
Marietta Systems, Inc.
--
Subject: Re: my
Hello All,
I have a strange/annoying little problem. When I install my app and run it,
it creates a data base. However, whenever I exit my app and try to install a
newer build POSE complains that it can't install because the database is
still open. In my App Stop routine I call DmCloseDatabase
The unable to connect error could be caused by Constructor. You may want to
make sure you don't have it running when you try to debug. (unless you're
using v 1.5v7 on Win 98)
I don't know about the corrupt db error.
--
For information on using the ACCESS Developer Forums, or to
A record's record index may move when you insert new records into the
database right?
I might be wrong, but that's what I gather from the writeup on
DmNewRecord().
Steve Mann wrote:
I was just wondering if database records, when created, were assigned with a
unique record ID of some sort
Hello all,
I was just wondering if database records, when created, were assigned with a
unique record ID of some sort? Like a persistent field, seen or unseen, that
persists for the life of the record? To my understanding, databases on the
Palm OS are just a bunch of structs in memory
Hi Jason,
Does it mean that it is not feasible to maintain very large number of
records
(palm database records) in palm? Can Oracle Lite solve this problem?
Thanks,
Sam
Jason Garrett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Sam,
I would suspect that your memory could
Hi all,
i wrote a palm program to get database records from PC to palm using FTP
protocol. the program is running on SPT1500. it works fine at the
beginning, but when the palm database grows large, the record insertion is
very slow. and the program throw a fatal error at last (it maybe my
design might not be very
IMHO, you should use similar database design principles as you would on
other platforms. Overloading a single database with storage of multiple
structures of different types of data (although I've seen it done) may
eventually get you into trouble for either performance or code
Thanks for your reply. However, I figured out what I was doing wrong. I was
using FrmDoDialog to put up the dialog box. So, when I clicked OK to add the
data the form got closed before I could get the data out of it. So, now I
use FrmPopupForm () and then handle the form erasing and deleting
Hello all,
I am having some problems adding a new record to the database of my program.
In my program I put up a dialog box containing text fields and want to get
the data from those fields and put them into the database. When I click the
OK button to process the code to add the record, no record
, but I think I too prefer a database attribute that you can
set. This is cheap memory-wise, and doesn't require the application to have
to do any extra work (which a notification might). It also seems like a
sensible default -- if I beam an application, certain databases may need to
go
Danny Epstein wrote:
Exactly. Note that you can only send a single database at a time. You have
to disconnect and reconnect for each database.
Your idea of bundling all the databases up into a single database got me
thinking. You could create a self-extracting archive and beam
How does this help? If App2 has been deleted
from my device, then the problem remains how
someone -else- gets the database when I beam
App1 to him.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Pierre Baux wrote in message [EMAIL PROTECTED
oups ... Now I'm not so sure of what µI just wrote : (
Sorry
Pierre Baux
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
What I've done may not be the easiest way but it works fine:
I wrote an application that create the database and fill it, It has the same
program ID than the main application.
I call it from the main application to build the db and then delete it from
the main application.
let's call our main
Scott Johnson wrote:
I am developing an application that relies on a database to run. I would
also like people to be able to beam the application and have the database
beam with it. I assumed that when you beamed an application using the Beam
menu option from the application launcher
I am developing an application that relies on a database to run. I would
also like people to be able to beam the application and have the database
beam with it. I assumed that when you beamed an application using the Beam
menu option from the application launcher, that all of that apps databases
Record types in any given database is dependant
solely upon the application that created that database.
There is no general solution to what (I think) you are asking
except a hex dump display of the data found.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's
of database
anyone has some code about writing and reading records from a database??
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the ACCESS Developer Forums, or to unsubscribe
Steve,
so I guess it would be prudent to write a function that walks throught the
entire database using All categories as part of the application start up
and update them once, yes?
Thanks for the help by the way :-)
Darren
Steve Mann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED
defaults for the new data fields. But how
would you do this if you had to save the data back into the same database?
If there is any example code to do something like this, can you point me in
its direction :-) Or alternatively am I thinking about this the wrong way
TIA
Darren - in a confused
How do you make a database and an application beamable?
(mine are locked by default)
Thanx
Pierre Baux
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
I don't know but I would like to know it too.
I've heard of soft like mobileDB, JFTrans or listdb but I think they have
their own data base format so if anyboby could give some precisions it would
be nice
Pierre Baux
Farzin Ashraghi [EMAIL PROTECTED] a écrit dans le message :
[EMAIL PROTECTED]
@news.palmos.com
Sent: Thursday, June 29, 2000 11:01 PM
Subject: Read Palm Database from PC : please help
Hello:
I am new to palm and I want to read palm database structure, record names
and their size, from a PC application. I have done it on palm programes
but
haven't come across an example where from
in a database
Size of a file (database)
--
Bradly J. Barton - [EMAIL PROTECTED]
Jenies Technologies Incorporated
(972) 602-1835
http://www.JTI.net
http://PalmInHand.com
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech
Ok, dumb question time.. but the Knowledge Base is down..
What are the following limits on Palm:
Number of files (databases)
Number of records in a database
Size of a file (database)
--
Bradly J. Barton - [EMAIL PROTECTED]
Jenies Technologies Incorporated
(972) 602-1835
http
database are there. Then delete the
app (using the standard Palm launcher, not Z'Catalog) then
check again. If the database is still there but the app is gone,
then we've got a real mystery...
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Jose
The creator ID database http://www.palmos.com/dev/tech/palmos/creatorid/
allows you to register, unregister, and search by ID.
It does not, however, allow you to modify, nor search by anything other than ID.
Are there any plans to change the current behavior? If not, why not?
--
Adam Wozniak
I am having trouble writing to a database/record from a shared library. I
can read database records, but cannot write. The DmWrite function is
failing indicating that the record in invalid.
Here is a code snippet...
DmOpenRef db = DmOpenDatabaseByTypeCreator(DBTYPE
in the
database header. Returning this value is O(1). DmNumRecordsInCategory is
O(n) because it must loop through all the records in the database, checking
to see if they are not deleted and in the right category.
The only way to get the number of non-deleted records in O(1) is to store
the number
John J. Corelli [EMAIL PROTECTED] writes:
Is this because when the data was retrieved (upon opening the main
edit form), they got the handle to the record in the database and set
it to the pointer to the text handle in the field and all the while
you are changing text, you're updating
, December 06, 2000 7:22 AM
Subject: Is there any limitation to the size ofa Palm database ?
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
Hi All,
I am new to programming Palms, and want to experiment with creating a basic
questionnaire application. I am curious about how Palm databases store and
retrieve data. My database will hold multiple records, each containing
several fields of data inputted by the user in the main form
that assigns dmMaxRecordIndex to offset to go
above the DmNewRecord. What's happening now is that you call DmNewRecord
with an index that could be any value (since offset has not been
initialized at that point). This is strange, but probably OK, especially
if you plan to sort the database later
On Mon, 31 Jan 2000 [EMAIL PROTECTED] wrote:
Hi All,
Can anyone please give me tips on how to receive a database file, ie binary
data, through http ?
1.open network
2.open socket to server at port 80
3.write to network GET [your filename] HTTP/1.0 \n\n
4.read the response
if you need sample
Hi,
Is it safe to store the local id of a record and access it later? Does it
ever change?
What I am doing is indexing a database using a separate index database.
This index database stores an id string and the local id of the record in
the other database. I can then do a binary search
If your app knows that the database is old (by a version number, the file
name, etc), then you can:
Open the old database.
Read through the data copying it into a new database (in the new field
positions).
Delete the old database.
Maybe rename the new database.
Steve Achelis
Barnes
The source code for the built-in apps is included in the SDK.
- Original Message -
From: Nicolas Castin [EMAIL PROTECTED]
Newsgroups: palm-dev-forum
To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Tuesday, November 28, 2000 5:29 AM
Subject: Database informations
I looking
I looking for standart database (mail, memo, datebook, contact, ...)
informations (CreatorID, Structure, ... all things needed to connect use
those db)
Thanks
Nicolas Castin
Software Engeneer
Veridis S.A.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
hello,
How can I know the record status if I insert a new record in palm database,
whether check the dirty flag of record attribute? and if I want to reset that
flag , What can I do?
Thanks
hymanho wrote in message [EMAIL PROTECTED]...
Hello
I have a palm application need to access more than one database in
palm. Normally, I need to create the record structure for each database,
but that will increase the program size and do not common. the more
database I access ,the more
Hello
I have a palm application need to access more than one database in palm.
Normally, I need to create the record structure for each database,
but that will increase the program size and do not common. the more database I
access ,the more record structure I must create. so I wonder
Sorry the first line should read:
// Open the Palm Datebook database.
gDateBookDB = DmOpenDatabaseByTypeCreator (dbDataType, sysFileCDatebook,
dmModeReadWrite | dmModeShowSecret);
Jeremy Roever [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't think I am, but here's
I don't think I am, but here's the code:
// Open the Palm Datebook database.
gDateBookDB = DmOpenDatabaseByTypeCreator (dbDataType, sysFileCDatebook,
dmReadWrite | dmModeShowSecret);
err = DmGetLastErr();
When I run this through debug, I receive the error (516). Now, if I modify
the first
trying to create an appointment in the Palm built-in Datebook
application via my application. However, when I attempt to open the
database, it appears it can only be opened in ReadOnly mode. (error code
516 when attempting to do otherwise). How do you go about opening the
database
I am trying to create an appointment in the Palm built-in Datebook
application via my application. However, when I attempt to open the
database, it appears it can only be opened in ReadOnly mode. (error code
516 when attempting to do otherwise). How do you go about opening the
database
Say I have an application on a Palm which creates some databases that
the
user modifies. I then write an update version of the app, and want to
sync
that onto the device while still keeping the database information the
user
has input.
Does that happen automatically? I mean, does
[[ This message was both posted and mailed: see
the To, Cc, and Newsgroups headers for details. ]]
I suggest you look at the SDK documentation. The Palm database format
would handle what you want just fine. The Memo Pad sample code there
would be helpful, too. In fact, what you are asking
Subject: Database Finding and Naming
From: Steve Achelis [EMAIL PROTECTED]
Date: Fri, 27 Oct 2000 08:12:06 -0600
I'm seem to be confused about the role of a database's name.
I created a database on POSE (via CW C). For this example I'll call it
database1.pdb. I can find and open this database
I'm seem to be confused about the role of a database's name.
I created a database on POSE (via CW C). For this example I'll call it
database1.pdb. I can find and open this database using
DmFindDatabase(0,database1). It has an appropriate creator ID (etc) and
works fine.
I need a duplicate
I am looking for tools that I can use to create PDB databases in the Windows
environment. Hopefully they would be easy to use.. like Access or something
similar. Do such things exist?
Thanks,
Joe
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see
I have an idea for a program for the Palm and I was wondering if I could get
alittle advise.
I want to have a database that contains information about certain characters
from a TV show and I was wondering what would be the best way to create it.
The information about the characters would
Seems like a lot of trouble. What's the difference between
whether the user sees a list of a dozen palm databases or
a dozen records in one database?
Or are you afraid that those dozen separate databases will
show up separatedly in the applications screen? If they have
the same creator ID
Even though this doesn't answer your question
(1) How could you a char * in a struct if you are writing the struct as a
whole to the database?. I am assuming you use something like
DmWrite(ptr, 0, myStruct, sizeof(myStruct));
You will be storing the address of the character string, which
I have a structure with the following fields:
UInt16 id
UInt8 bitflag
UInt32 datestamp
Char * desc
When I write a record of this type out to the database, I can examine the
data and see that, yes indeed, there a 2-byte integer, followed by a 1-byte
integer, followed by a 4-byte integer
.
Are you suggesting using both DmResizeRecord and MemHandleResize when
Packing to
a database?
-Elizabeth
|+---
|| [EMAIL PROTECTED]|
|| uch.com |
|| |
|| 10/04/00
Richard Hartman wrote:
She was using DmStrCopy() ... (checking docs) ... hey! Are the
docs
(http://www.palmos.com/dev/tech/docs/palmos/DataAndResourceManager.html#9274
Opps, missed that.
However, you notice that in her pack routine, no DmResizeRecord() calls
were ever made? DmStrCopy()
by StrLen ... or for length+1?
If the former, then there will be no terminating NUL char written to
the database.
Perhaps Elizabeth could replace her DmStrCopy w/ the explicit
calls to StrLen and DmWrite and see if it changes the behavior.
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]...
I was trying to write the whole record with updates before and failed. The
problem is in the update data. If the sizes of old and new data are the
same,
no problem. If old data size is bigger, it erases data from the following
field.
[EMAIL PROTECTED]
To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Monday, September 18, 2000 11:25 AM
Subject: Database Recors
Hello
I'm trying to move some records from a database to another but my
program crashes : here is the code of my move :
h = DmQueryRecord(dbSync, home
Hi can anyone give me some ideas of how to organize my database(s)?
I have in mind keeping track of a large indeterminate number of small
transactions (say less than 4 bytes). I assume that it would be
incredibly wasteful to allocate each of these transactions to their
own record. So I suppose
Help!
I can't create a new Database. The call DmCreateDatabase(0, DBName,
DBCreator, DBType, false), won't work anymore
I succeded before, but the same code won't work anymore. Is there anyone who
has a clue?? I'm totaly lost..
I use CW6
--
For information on using the ACCESS
I'm something of a newbie at this, so I apologize if I'm
wasting time with a basic question...
(but here goes anyway ;-)
I am writing an app that stores records in a database.
Each record includes a date. I'me using the
DateTimeType. What's the best way to store that date in
my record
When creating a database in a shared library, I don't see the database when
I want to delete it from Palm OS menu..? What's wrong?
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
Can a shared library have a database?
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
hi, is here anyone who knows how messages are stored in messages database of
treo sms application? so far i found that format differs from format used in
system database where message is stored after i use PhnSms...functions, but it
doesn't help much...
--
For information on using the ACCESS
Hello,
I noticed some problems with my methods adding records to Calendar/DateBook
databases. I am using functions from Palm's PIM sample applications. (DateBk.c,
DateBk.h). From version to version some datebook structures are different so
there is problem on some devices with integrity of
I recommend you go to pdn.palm.com and get their developer's guide. It says
a lot about db records and compatibility.
On 9/26/07, Srdan Suka [EMAIL PROTECTED] wrote:
Hello,
I noticed some problems with my methods adding records to
Calendar/DateBook databases. I am using functions from Palm's
, they fail. The initial sense
is that the database header format may be 'slightly' different, as
the output I get seems to be 'slightly' off. Now, I am prepared to
reverse engineer this problem and find the answer myself. But I
thought some kind soul out there might want to clue me in about what
At 04:15 AM 7/10/2007, you wrote:
Subject: error message: Can't open record database
From: [EMAIL PROTECTED]
Date: Tue, 10 Jul 2007 00:23:45 -
X-Message-Number: 7
I have an appl that was working fine. I then decided that I was
going to add alarm processing to it. I can set the alarm (or so
Based on extensive debugging, it seems that when the alarm is triggered via
sysAppLaunchCmdAlarmTriggered and the OS is relaying this info to the appl, for
whatever reason it is not even getting there. Does the error message above
indicate that the OS is trying to send my app the launch code
I have an appl that was working fine. I then decided that I was going to add
alarm processing to it. I can set the alarm (or so it seems, because I don't
have a appl to tell me if it was indeed set. I am testing this in simulator.) I
am assuming it is set correctly because I get corresponding
Hello,
I am in need of figuring out if a databse is in the ROM of RAM.
So far I have been trying to use this:
/* RomBased: returns true if the databse is in ROM, false elsewise*/
Boolean ROMBased (LocalID id)
{
Err err;
DmOpenRef ref;
ref = DmOpenDatabase (0, id, dmModeReadWrite);
if
Phreak OnALeash wrote:
I am in need of figuring out if a databse is in the ROM of RAM.
check the archive. It was discuessed a while ago.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
Thank you very much Borszczuk, I found what I need.
I will search in the future, first ;-)
/*PhreakOnALeash*/
On 6/29/07, Borszczuk [EMAIL PROTECTED] wrote:
check the archive. It was discuessed a while ago.
--
For information on using the ACCESS Developer Forums, or to unsubscribe,
Hello All,
I have to set a handheld database version to a specific value during
synchronization. Is there a way to do this? In the palm API there is a function
for that: DMSetDatabaseInfo. I searched the Sync Manager API for an anologue of
this function and didn't fing anything.
Can anyone
Thanks, that did the trick.
By th way, what is the not-so-simple way you seem to be refering to? :-)
Jeff Loucks wrote:
The simplest check is if (MemLocalIDKind (dbID) == memIDPtr).
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see
How can I found out if a certain database is in ROM. The ReadOnly attribute is
not guaranteed, as it can be set for any database. But I see that FileZ can
tell, so there must be a way. Does anyone know?
Lionscribe
--
For information on using the ACCESS Developer Forums, or to unsubscribe
The simplest check is if (MemLocalIDKind (dbID) == memIDPtr).
On 2/27/07, Lionscribe [EMAIL PROTECTED] wrote:
How can I found out if a certain database is in ROM. The ReadOnly
attribute is not guaranteed, as it can be set for any database. But I see
that FileZ can tell, so there must
Is there a way I can use ExgDBWrite to beam a database subset (like
the Beam Category of the built-in apps) without first building an
intermediate database? Is it how these apps proceed?
Checking what gets sent, I see the name of the DB starts at byte 0
of the first beamed block. After
Le Blanc wrote:
Is there a way I can use ExgDBWrite to beam a database subset (like
the Beam Category of the built-in apps) without first building an
intermediate database? Is it how these apps proceed?
Checking what gets sent, I see the name of the DB starts at byte 0
of the first beamed block
On 2/21/07, Rabbi [EMAIL PROTECTED] wrote:
u can use the below api for creating a database:
you have some logical error here:
Err err = 0;
LocalID dbID = DmFindDatabase(0,BugSquBugsDYTC);
gDB = NULL;
if (dbID 0) gDB = DmOpenDatabase(0, dbID, dmModeReadWrite);
if (!gDB)
{
err
hi i know how to create database but i want to know how to insert bulk data
into database. can any one tell me plz.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
hi all
I am very much new in palm development. i have downloded palm os development
suit 2.0 and creating application which uses lots of data and provide personal
information . so am not getting how to use database in PODS . how to create PDB
file . i have read diffrent access and creation
u can use the below api for creating a database:
Err DmCreateDatabase (UInt16 cardNo,const Char *nameP, UInt32 creator, UInt32
type,Boolean resDB)
have a look at the code below
Err err = 0;
LocalID dbID = DmFindDatabase(0,BugSquBugsDYTC);
gDB = NULL;
if (dbID 0) gDB = DmOpenDatabase(0, dbID
Durgesh Trivedi wrote:
Is their any API by which we r able to get the database structure of any
palm application
If you know what in fact Palm database is, you'd know the answer: No.
Regards,
--
Daddy, what Formatting drive C: means?...
Marcin http://wfmh.org.pl/carlos
Is their any API by which we r able to get the database structure of any palm
application means we dont have the source code of SMS or versa mail application
but if i want to know what is the database field they r using in their
application is their any way to do that
so that i can
Hi Durgesh,
I believe the answer is no - unless the app owner (or hacker) publishes the
structure you are stuck.
The best you can probably do is use a tool like FileZ to examine and reverse
engineer the database records (when permitted by law).
Regards,
On 10/02/07, Durgesh Trivedi [EMAIL
Hi Walt,
Yes, I think your way is better.
I was wondering why I suggested a temporary copy and rename. I then
remembered that the last time I did something similar it was copying
configuration files between networked machines operating in a master/slave
hot-standby mode. There you had to
I think each record in vhsu.pdb has the Deleted attribute set. Now, while I
don't think PalmOS should be deleting databases that have the Deleted attribute
set on each record, maybe this is a part of the cause. Try changing the record
attributes and see if it still happens.
Alex
--
For
() at
strategic places. Although some people suggested use DmSyncDatabase() after
each and every DmWrite(), but I didn't want to do that because it might be too
costly; 2. Recreate each and every record before closing the database.
With these two tricks in place, so far it seems to be all right. My
Have you checked if DmSyncDatabase() helps at all?
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
Sorry to post again on this issue, but it's driving me nuts.
I'm still trying to design an elegant method for installing database
files for my app either in RAM or on an expansion card.
The user will install the .prc file and two or more from a set of .pdb
files.
If the pdb files go on the card
1 - 100 of 2232 matches
Mail list logo