Experiences with POL (Palm Object Library)?

2005-06-13 Thread Christoph Regli
Who has gained experiences with POL? I was developing some applications using 
the standard C API and stumbled across the Palm Object Library (www.pollib.com) 
that claims to speed up the development process. I am using Metrowerks 
Codewarrior 9 and I am an experienced C++ developer.

- How was the learning curve if the standard PalmOS API is known?
- Is there a huge overhead (resulting in increased .prc file size or degraded 
application performance) when using the library? I intend not to use RTTI.
- Are new PalmOS APIs supported (e.g. Treo wireless communication, sound, ...)? 
If not, is it possible to extend on my own?
- Is the POL development still ongoing?
- Drawbacks?

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


re: Camera Library Load/Remove and Invalid Chunk Pointer

2005-06-13 Thread Andrew Waites
Okay,

Eventually found this one. 

The Codewarrior code was mapping the cmdPBP to the correct structure using 

   mPowerCtx = (TmPowerCtx)cmdPBP

which worked fine for the Codewarrior code but when this same structure was 
passed back in the callframe to SysUIAppSwitch it did not pass back correctly 
after the called application did a

  MemPtrSetOwner(mPowerCtx,0);
  SysUIAppSwitch(yada yada yada)

On returning to the yada yada application it failed to correctly access the 
cmdPBP - it could actually read it fine but the emulator (bless its little 
cotton sox) threw lots of error reading unowned chunk type messages (that lazy 
slob simulator said nothing). Anyway, the simulator/emulator would finally blow 
a gasket when trying to exit this app.

  Solution was to:

  mPowerCtx = MemPtrNew(sizeof(TmPowerCtx));
  MemMove(mPowerCtx,cmdPBP,sizeof(TmPowerCtx));

  instead of

  mPowerCtx = (TmPowerCtx)cmdPBP;

But I guess everyone else in the world knows this.

rgds


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


giving error as app1 just read from memory location 0*000000001,which is in low memory

2005-06-13 Thread rupesh kumar
hi all,
i am trying to access the contacts database.my application name is app1.
its compiled well but at runtime when tring to get the data it is giving error 
as app1 just read from memory location 0*1,which is in low memory.
why this error is coming ?
please help me.
thanks
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


winExit event broken on Tungsten T2 (?)

2005-06-13 Thread Frantisek Dufka

Hello,

it seems that winExit event is not send before system dialogs like 
Brightness or Find on my T2 device. I found something like this 
mentioned here 
http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg65623.html


Anybody can confirm this and knows what devices are affected and what is 
best workaround in the code? Thank you.


Frantisek Dufka

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


Re: winExit event broken on Tungsten T2 (?)

2005-06-13 Thread Frantisek Dufka

Hi again,

found also one thread here: 
http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg4.html


Still nothing about OS version but as I see it happening I suppose my T2 
is in the list. Also the workaround suggested is not very robust.


Looks like I need to take defensive approach and do my exit form code on 
every unknown/known event except few safe ones like penUp/Down 
keyUp/Down etc, or are these unsafe too?


I really need to do some cleanup code before my app loses control of 
screen and events.


Frantisek

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


Re: Icon for Application

2005-06-13 Thread sachin jesukaran
thank u for ur reply.
the problem is that i already have a bitmap image  want it to be my application 
icon in palm and want to change the name of my application.
please help me out with this.

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


PalmOne SDK

2005-06-13 Thread Pradeepkumar Chaturvedi
Hi,

I have downloaded Palm One 5 SDK. I am using CodeWarrior 8.3. How I can
include this SDK for developing applications.

Thanks,
Pradeep

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


DB Name Field in CodeWarrior

2005-06-13 Thread Erico Franco

Hi,

How do I get the DB Name Programatically? ( in Codewarrior is what I 
entered in DB NAME under Target Settings-PRC file settings for my 
project)


thanks

Erico

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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread Matt DeCaro
Christoph Regli [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Who has gained experiences with POL? I was developing some applications
using the standard C API and stumbled across the Palm Object Library
(www.pollib.com) that claims to speed up the development process. I am using
Metrowerks Codewarrior 9 and I am an experienced C++ developer.

 - How was the learning curve if the standard PalmOS API is known?

It's a wonderful system.  I have used it for several apps - I'd never go
back to developing without it.

 - Is there a huge overhead (resulting in increased .prc file size or
degraded application performance) when using the library? I intend not to
use RTTI.

It does increase the size of the apps, I haven't noted any compromise in
speed.

 - Are new PalmOS APIs supported (e.g. Treo wireless communication, sound,
...)? If not, is it possible to extend on my own?
 - Is the POL development still ongoing?
 - Drawbacks?

 Thanks for your feedback.


They are not actively developing as far as I know - I wish they would
restart.  It is possible to extend it.  The source code is provided.

Highly recommended.


-- 
_
Matt DeCaro
[EMAIL PROTECTED]
[EMAIL PROTECTED]



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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread imran baig
WILL POL support Palm OS 6.0 in future ?



On 6/13/05, Matt DeCaro [EMAIL PROTECTED] wrote:
 Christoph Regli [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Who has gained experiences with POL? I was developing some applications
 using the standard C API and stumbled across the Palm Object Library
 (www.pollib.com) that claims to speed up the development process. I am using
 Metrowerks Codewarrior 9 and I am an experienced C++ developer.
 
  - How was the learning curve if the standard PalmOS API is known?
 
 It's a wonderful system.  I have used it for several apps - I'd never go
 back to developing without it.
 
  - Is there a huge overhead (resulting in increased .prc file size or
 degraded application performance) when using the library? I intend not to
 use RTTI.
 
 It does increase the size of the apps, I haven't noted any compromise in
 speed.
 
  - Are new PalmOS APIs supported (e.g. Treo wireless communication, sound,
 ...)? If not, is it possible to extend on my own?
  - Is the POL development still ongoing?
  - Drawbacks?
 
  Thanks for your feedback.
 
 
 They are not actively developing as far as I know - I wish they would
 restart.  It is possible to extend it.  The source code is provided.
 
 Highly recommended.
 
 
 --
 _
 Matt DeCaro
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 
 
 --
 For information on using the PalmSource Developer Forums, or to unsubscribe, 
 please see http://www.palmos.com/dev/support/forums/


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


GPRS Settings?

2005-06-13 Thread imran baig
Does anybody know how to configuring/create GPRS settings (APN,
username and password) programmatically?

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


re: DB Name Field in CodeWarrior

2005-06-13 Thread Dr. Vesselin Bontchev
UInt16 cardNo;
LocalID dbID;
Char dbName [dmDBNameLength];

SysCurAppDatabase (cardNo, dbID);
DmDatabaseInfo (cardNo, dbID, dbName, NULL, NULL, NULL, NULL, NULL, NULL, 
NULL, NULL, NULL, NULL);
// Now dbName holds the database name of the currently running application.

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


Installing CDK 6.0 on network

2005-06-13 Thread Palm
Hello,

Is there any parameters with the CDK Install files...  like installing into
dir.. by default, run hide etc /s or -s.

I'm looking for a parameters to install the CDK on multiple machine without
showing the install windows.. like the Palm Comm Object.

Thanks



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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread Luciano A. Stertz

imran baig wrote:

WILL POL support Palm OS 6.0 in future ?


	And since Code Warrior for Palm OS is dead, will it be 'ported' to 
prc-tools/PODS? That would be great.


Luciano





On 6/13/05, Matt DeCaro [EMAIL PROTECTED] wrote:


Christoph Regli [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


Who has gained experiences with POL? I was developing some applications


using the standard C API and stumbled across the Palm Object Library
(www.pollib.com) that claims to speed up the development process. I am using
Metrowerks Codewarrior 9 and I am an experienced C++ developer.


- How was the learning curve if the standard PalmOS API is known?


It's a wonderful system.  I have used it for several apps - I'd never go
back to developing without it.



- Is there a huge overhead (resulting in increased .prc file size or


degraded application performance) when using the library? I intend not to
use RTTI.

It does increase the size of the apps, I haven't noted any compromise in
speed.



- Are new PalmOS APIs supported (e.g. Treo wireless communication, sound,


...)? If not, is it possible to extend on my own?


- Is the POL development still ongoing?
- Drawbacks?

Thanks for your feedback.



They are not actively developing as far as I know - I wish they would
restart.  It is possible to extend it.  The source code is provided.

Highly recommended.


--
_
Matt DeCaro
[EMAIL PROTECTED]
[EMAIL PROTECTED]



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







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


Re: DB Name Field in CodeWarrior

2005-06-13 Thread Erico Franco

Dr. Vesselin Bontchev wrote:

UInt16 cardNo;
LocalID dbID;
Char dbName [dmDBNameLength];

SysCurAppDatabase (cardNo, dbID);
DmDatabaseInfo (cardNo, dbID, dbName, NULL, NULL, NULL, NULL, NULL, NULL, 
NULL, NULL, NULL, NULL);
// Now dbName holds the database name of the currently running application.

Regards,
Vesselin



got it! thanks Vesselin

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


Re: Zire Rom ID problem

2005-06-13 Thread Jim Cooper


 i wanted to know which model in the zire series does not have 1?

It used to be anything without Flash ROM did not have an ID. If that 
call fails, then you've found out :-)



Cheers,
Jim Cooper

__

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

TurboSync - Connecting Delphi to your Palm
__

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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread Christoph Regli
Let's go even further: If the POL framework is that elaborated, smoothly 
integrated and powerful as stated, why didn't PalmSource consider an 
integration into PalmOS 6.0, i.e. provide a contemporary object oriented API?

Somehow I am hesitating, I am embarrassed to add an additional layer to my 
software: Is it my bug or is it in the layer, which documentation do I have to 
consult (POL, Palm), ...?

Finally, as the POL sources are available: Wouldn't GNU be a logical next step?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


RE: Zire Rom ID problem

2005-06-13 Thread Jeffry Loucks
Devices without Flash ROM do not have serial numbers available in ROM.
Devices without Flash use a mask ROM that cannot be modified, thus cannot be
programmed with a serial number.

Treo devices may have a serial number, but do not respond to the
SysGetROMToken() call. You must use the
HsGetVersionString(hsVerStrSerialNo). Here's sample code:

char serialNumber[32];
serialNumber[0] = 0;
if (handspring)
{
UInt16 size;
size = sizeof(serialNumber);
HsGetVersionString(hsVerStrSerialNo,serialNumber,size);
}
else
{
UInt8 *p;
UInt16 size;
if (SysGetROMToken(0,sysROMTokenSnum,p,size) == 0  size
 0  *p != 0xFF)
{
if (size  sizeof(serialNumber)-1)
size = sizeof(serialNumber)-1;
MemMove(serialNumber,p,size);
serialNumber[size] = 0;
}
}


Jeff Loucks
Work 425-284-1128 [EMAIL PROTECTED]
Home 253-851-8908 [EMAIL PROTECTED]
Mobile 253-691-8812


-Original Message-
From: Yuen Kwee [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 10, 2005 8:54 PM
To: Palm Developer Forum
Subject: Zire Rom ID problem


hi there! 

a user of the program i wrote is having problems getting the rom id from hi
Zire 71, i wrote this to get the rom id 

returnVal = SysGetROMToken((UInt16) 0,(UInt32)
sysROMTokenSnum,datap,size); 

the line works, but not for treo and tungsten E. are the zire series the
same as the TE? or some of the zire series has and some doesn't?

please help!

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


RE: Zire Rom ID problem

2005-06-13 Thread Yuen Kwee
thanks for the replies!

i have already discovered the treo 1. the problem now is with the zire(s)... :(
any 1 know which 1 has flashable rom? and which doesn't?

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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread Ben Combee

At 10:36 AM 6/13/2005, you wrote:
Let's go even further: If the POL framework is that elaborated, smoothly 
integrated and powerful as stated, why didn't PalmSource consider an 
integration into PalmOS 6.0, i.e. provide a contemporary object oriented API?


When I was at PalmSource, we did talk about POL a bit.  However, Palm OS 
Cobalt has its own C++ layer underneath the Protein API, so the thinking 
was that once the tools stabilized and there was a standard C++ ABI, those 
objects would be directly exposed.  There was some talk about getting POL 
ported to Protein, but we never started business discussions about this.  I 
expect with the move to Palm OS for Linux, the C++ API discussion will be 
opened up again within PalmSource, but I don't know if anything will be 
exposed to developers.


Somehow I am hesitating, I am embarrassed to add an additional layer to my 
software: Is it my bug or is it in the layer, which documentation do I 
have to consult (POL, Palm), ...?


I really like programming with POL, and I'd probably not do a complicated 
program for Garnet without it right now.  However, it does need some new 
features -- I had to alter my local sources to get five-way navigation to 
work right on the Treo, and it's never been updated to handle the dynamic 
input area as part of the framework.


Finally, as the POL sources are available: Wouldn't GNU be a logical next 
step?


They still have value.  Until recently, Metrowerks was selling a product 
that had POL as a feature.  The better place to discuss the future of this 
is www.pollib.com, since that's where the author and rightsholder Maks is.



-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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


I need help testing something on a T5

2005-06-13 Thread Scott Erickson
Anyone that has a T5 and would like to take 15 mins to help me with a 
problem.  I have an app that is stoping on a FrmEraseForm() call.  It only 
happens on the T5 and it only happens in one function.  It is part of a 
memory card scan.  What im looking for is a few people that would be able to 
run my app on their T5 and tell me if they get the same problem.  The 
application is a Anti-V app.  The app requiers a Demo license, which can be 
made over the net on the device.  Please let me know if you can help me out.

-- 


Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED] 



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


re: I need help testing something on a T5

2005-06-13 Thread Dr. Vesselin Bontchev
Instead of sending out your whole application and having people bother 
obtaining demo licenses, why don't you simply create a separate stand-alone 
application that does nothing but test the function you have a problem with? It 
probably won't even have to scan for viruses - just enumerate every file on 
every memory card, open each one of them and read its contents, then close it. 
In fact, this apporach (trying to isolate the minimal code that illustrates the 
problem) can often help you find the problem yourself.

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


Re: Experiences with POL (Palm Object Library)?

2005-06-13 Thread Christoph Regli
Thank you for your feedback. I have been in contact with Maksim Pyatkovskiy and 
he stated that everything is frozen at the moment.
Anyway, I will go through the tutorial and will play around with the library 
while writing a small prototype for a customer. I guess I will know more 
thereafter and have a basis to decide upon the further proceeding.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


How to create a large bitmap?

2005-06-13 Thread Paul Reger

I can not seem to create a bitmap for an image 960 (wide) by 720 (tall), depth 
16, and no ColorTableType. (My application will show only small 'clips' of the 
large image.)

The error I am getting is sysErrNoFreeResource.

Is there a trick to working around this?

Thanks in advance for any help you can lend.

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

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


Re: How to create a large bitmap?

2005-06-13 Thread Logan Shaw

Paul Reger wrote:
I can not seem to create a bitmap for an image 960 (wide) by 
720 (tall), depth 16, and no ColorTableType. (My application

will show only small 'clips' of the large image.)

The error I am getting is sysErrNoFreeResource.


960x720 at depth 16 will require about 1.4 MB of contiguous space
available in the dynamic heap.  The first question to ask is
whether you are on a device that ever has that much space in
its heap.  Some devices do, and some don't.  Even if a device
does, it may not be contiguous by the time your program runs
and allocates and deallocates a bunch of stuff.

A good test is whether you can do a MemGluePtrNew (960 * 720 * 2).
If so, then you have *some* hope of being able to create the
bitmap.  If not, then you're definitely out of luck.

The next step is probably to use the BitmapRsrc example code from
the developer knowledge base to create the bitmap.  I don't know
what the built-in functions use to allocate memory (they may just
use regular MemPtrNew() on some or all devices, in which case the
maximum size will be 64kB), but I do know that the BitmapRsrc
functions use some sort of trick that lets them allocate more
than 64kB.

Whatever you do, make sure you have good error handling.  :-)

  - Logan

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


Text Column not displaying on the last row

2005-06-13 Thread Terry Schumacher
I'm a novice Palm developer, so I'm very confused.

I have a loop that will display information in a table.  It works fine except 
for the last row.  On that row, the only text field remains blank.

I've used the emulator and debug to step thru the code.  It executes the same 
code for each row.
===
static Err SessionDetailLoadItem(void * table, Int16 row, UInt16 column
, Boolean 
editable, MemHandle *dataH
, UInt16 * 
dataOffset, UInt16 * dataSize
, FieldPtr fld)
{
UInt16  recordNum;
MemHandle   recordH;
ptrGNSCsessionDetailsessionDetailRec;
MemHandle   tmpStringH;
char*tmpString;
UInt16  tmpColumn = column; 
// Get the record number that corresponds to the table item.
// The record number is stored as the row id.
recordNum = TblGetRowID (table, row);

recordH = DmQueryRecord( g_gnscDetailDB, recordNum);
//ErrFatalDisplayIf ((! recordH), Record not found);
if (! recordH)
{ // no records
tmpColumn = noRecordSelected;
}
else
{ // lock the memory handle
sessionDetailRec = (ptrGNSCsessionDetail) MemHandleLock 
(recordH);
}
tmpStringH = MemHandleNew(MAX_STRING_SIZE);
switch (tmpColumn)
{
case noRecordSelected:
tmpString = MemHandleLock(tmpStringH);
StrCopy(tmpString,No Records);
*dataH = tmpStringH;
*dataOffset = 0;
*dataSize = MemHandleSize(tmpStringH) ;  // add 1 for 
null terminator
break;
case SessionDetailUPCCol:
tmpString = MemHandleLock(tmpStringH);
StrCopy(tmpString,sessionDetailRec-upc);
*dataH = tmpStringH;
*dataOffset = 0;
*dataSize = MemHandleSize(tmpStringH) ;  // add 1 for 
null terminator
break;
case SessionDetailLineNumberCol:
tmpString = MemHandleLock(tmpStringH);
StrIToA(tmpString, recordNum);
*dataH = tmpStringH;
*dataOffset = 0;
*dataSize = MemHandleSize(tmpStringH) ;  // add 1 for 
null terminator
break;
}
MemHandleUnlock(tmpStringH);
//MemHandleFree(recordH);
if (tmpColumn != noRecordSelected)
{ 
DmReleaseRecord(g_gnscDetailDB, recordNum, false);
MemHandleUnlock (recordH);
}
return (0);
#ifdef GNUC
CALLBACK_EPILOGUE
#endif
}
==
But the last row doesn't have the value.  When I examine the contents of 
tmpString, it has the proper value.

Now here is the funny part.  If I tap the column in the field above it, then 
tap back into the last row twice (not a double tap), the value appears.  When I 
tap back in the column on the line above, it disappears again.  

Can someone explain what is going on?

Thanks

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


Re: Icon for Application

2005-06-13 Thread Baxter
Actually, you need several different versions of your bitmap for different
color depths and screen resolutions.  Then you include them in your resource
file as a BITMAPFAMILY.   Exactly how you do this depends on what toolset
you're using - CodeWarrior?  Gcc?  PODS?  Other?  PilRC?  Constructor?  etc.

-- 
-
Free software  - Baxter Codeworks  www.baxcode.com
-


sachin jesukaran [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 thank u for ur reply.
 the problem is that i already have a bitmap image  want it to be my
application icon in palm and want to change the name of my application.
 please help me out with this.

 thank u.
 sachin




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


T650 resource cloning problem

2005-06-13 Thread PalmDev

I'm using the api DmCreateDatabase() to create a new database
then duplicating an existing application. basically making a copy of
a application.  I've set the new db to the original app's attributes eg:
resource, backup bites and yet when i do a softreset the new cloned
app disappears.

could this have anything to do with the app not been in NVFS or the
shadow folder?

this all works on the Tungsten.

thanks


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


re: giving error as app1 just read from memory location 0*000000001,which is in low memory

2005-06-13 Thread roderick young
What I suggest, if you're using the Palm OS Development Suite (PODS) is to run 
your program under the debugger, and let it give the error message.  You will 
then be given the opportunity to go into the debugger.  From there, hopefully a 
call stack will be displayed, showing exactly where in your code was executing 
at the time of failure.

There may be calls to system routines made by other system routines, but check 
the calls that you make for proper parameters.  For example, is there an 
uninitialized or null pointer somewhere?

That said, I've noticed things like this happen during normal operation of my 
Handspring ROM.  It could be normal OS functioning, if nothing else seems 
wrong.  The way to determine this is to try your same application under (say) 
the Garnet (5.2) simulator, and see if the same issue happens.  If there is no 
more complaint, then perhaps it was normal operation for your older version of 
OS.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


RE: I need help testing something on a T5

2005-06-13 Thread Michael Hallett
Have you tried using the T5 debug and release simulators that are available
from palmOne?

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Erickson
Sent: Monday, June 13, 2005 1:15 PM
To: Palm Developer Forum
Subject: I need help testing something on a T5

Anyone that has a T5 and would like to take 15 mins to help me with a 
problem.  I have an app that is stoping on a FrmEraseForm() call.  It only 
happens on the T5 and it only happens in one function.  It is part of a 
memory card scan.  What im looking for is a few people that would be able to

run my app on their T5 and tell me if they get the same problem.  The 
application is a Anti-V app.  The app requiers a Demo license, which can be 
made over the net on the device.  Please let me know if you can help me out.

-- 


Scott Erickson
Software Development Team, FB-4, Inc.
[EMAIL PROTECTED] 



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



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


Re: T650 resource cloning problem

2005-06-13 Thread Ben Combee

At 05:04 PM 6/13/2005, you wrote:

I'm using the api DmCreateDatabase() to create a new database
then duplicating an existing application. basically making a copy of
a application.  I've set the new db to the original app's attributes eg:
resource, backup bites and yet when i do a softreset the new cloned
app disappears.

could this have anything to do with the app not been in NVFS or the
shadow folder?


What database name are you giving to the new database?  On which revs of 
the Treo 650 software have you tried this?  Have you closed the new 
database to make sure it's written back to flash before doing the soft reset?



-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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


re: Icon for Application

2005-06-13 Thread roderick young
If you are using a .rcp file with pilrc, the simplest way to add an icon is to 
add the lines

ICON icon.bmp
APPLICATIONICONNAME ID 1000 MyIcon

to that file.

icon.bmp is something you have created separately with (say) Windows Paint, 
say, 22 x 22 pixels in dimension.

That will get you started.  Then look in the documentation for how to create 
icons for different resolutions and color depths.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


PalmOS asc() equivalent?

2005-06-13 Thread Chris Williams
Hi, all...I'm having problems finding an asc() equivalent in the API.
What I need is the ASCII value of an given character. So:

int my_ascii_value = asc('A');
printf(Result: %d, my_ascii_value);

Result: 65

Is there a way to do that with the PalmOS API? I don't see a function or API to 
do that. Any help would be appreciated.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


RE: PalmOS asc() equivalent?

2005-06-13 Thread Jonathan King
Correct me if I am wrong, but wouldn't this give the same result:
int my_ascii_value = 'A';
printf(Result: %d, my_ascii_value);
I was under the impression that 'A' and 65 were the same value, just
expressed in a different way. What is the purpose of asc()?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:bounce-441832-
 [EMAIL PROTECTED] On Behalf Of Chris Williams
 Sent: Monday, June 13, 2005 7:00 PM
 To: Palm Developer Forum
 Subject: PalmOS asc() equivalent?
 
 Hi, all...I'm having problems finding an asc() equivalent in the API.
 What I need is the ASCII value of an given character. So:
 
 int my_ascii_value = asc('A');
 printf(Result: %d, my_ascii_value);
 
 Result: 65
 
 Is there a way to do that with the PalmOS API? I don't see a function
or
 API to do that. Any help would be appreciated.
 --
 For information on using the PalmSource Developer Forums, or to
 unsubscribe, please see http://www.palmos.com/dev/support/forums/



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


RE: PalmOS asc() equivalent?

2005-06-13 Thread Chris Williams
asc() is to get the ASCII value of a character. I need to use it to get an 
integer value from the Hotsync ID, that I can work with to get a serial number. 
It's fairly difficult to make a serial number without touching numbers at all.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: PalmOS asc() equivalent?

2005-06-13 Thread Ben Combee

At 06:00 PM 6/13/2005, you wrote:

Hi, all...I'm having problems finding an asc() equivalent in the API.
What I need is the ASCII value of an given character. So:

int my_ascii_value = asc('A');
printf(Result: %d, my_ascii_value);

Result: 65

Is there a way to do that with the PalmOS API? I don't see a function or 
API to do that. Any help would be appreciated.


Just say

int my_ascii_value = 'A'.

Single characters already have an integer type in the C language.


-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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


Re: PalmOS asc() equivalent?

2005-06-13 Thread Scott Erickson
Just put the hotsync name in a Char* my_string and step through it. the 
value of *my_string will be the value that the pointer points to, which 
would be the ascii value of the current char in the string.  something like 
this would work...

Char* temp = my_string;
for(i=0,iStrLen(my_string);i++){
assci_value = *my_string;
//do something with the ascii value here//
my_string++;
}
my_string = temp;
-- 



Scott Erickson
(937) 241-3790
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Chris Williams [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi, all...I'm having problems finding an asc() equivalent in the API.
 What I need is the ASCII value of an given character. So:

 int my_ascii_value = asc('A');
 printf(Result: %d, my_ascii_value);

 Result: 65

 Is there a way to do that with the PalmOS API? I don't see a function or 
 API to do that. Any help would be appreciated.
 



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


Re: giving error as app1 just read from memory location 0*000000001,which is in low memory

2005-06-13 Thread Chris Tutty
From: rupesh kumar [EMAIL PROTECTED]
 i am trying to access the contacts database.my application name is app1.
 its compiled well but at runtime when tring to get the data it is giving
error as app1 just read from memory location 0*1,which is in low
memory.
 why this error is coming ?

In general this means that you're passing a null pointer to
an API call, or using a null pointer as a structure reference.
The only strange thing is that the value reported is often
the offset of the value requested from the start of the struct
which should really be an even number because of structure
padding.

Anyway.  The first thing you need to determine is where in
your program this is happening, either by debugging or by
writing to a log as your program operates.  Without this
information it is very difficult to identify which value is incorrect.

You could also work carefully through your 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/


Re: PalmOS asc() equivalent?

2005-06-13 Thread Logan Shaw

Chris Williams wrote:

asc() is to get the ASCII value of a character. I need to use it to get
an integer value from the Hotsync ID, that I can work with to get a
serial number. It's fairly difficult to make a serial number without
touching numbers at all.


As others have already said, in C characters *are* numbers.  A char is
an integer type, just like short, int, or long.

One additional word of warning:  in C, characters can be signed or
unsigned integers, just like the other integer types.  This means
if you deal with characters greater than 127, you may have to take
some care to ensure they don't come out as negative numbers.  For
example, if you have a character that's ASCII 130, you might end
up getting -126 if you do the naive thing:

char c = '\202';/* octal escape code for character #130 */
int i = c;
printf (%d\n, i);

If you want all positive numbers, the easiest thing to do is to typecast
your character to an unsigned char before converting it to another
larger integer type that can handle positive numbers larger than 128:

char c = '\202';
int i = (unsigned char) c;
printf (%d\n, i);

That will print 130, unlike the first example, which will print -126[1].

  - Logan

[1]  Provided of course that you're on a platform that implements
 printf().  Palm OS doesn't, but I'm just talking about the C
 language in general here.

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


Re: T650 resource cloning problem

2005-06-13 Thread PalmDev

Ben,

I'm creating a zip self-extracting archive. yes the files are closed and
i can unzip and zip on the fly on the launcher.  when i look at the Palm
folder in the hidden volume i dont see the file there.

basically i'm using the same name appending a 'z' at the end of the file 
name.



i'm using GSM unlocked T650. Garnet 5.4.5
firmware 01.14
software Treo650-1.05.-ROW

regards

danny

- Original Message - 
From: Ben Combee [EMAIL PROTECTED]

To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Monday, June 13, 2005 4:29 PM
Subject: Re: T650 resource cloning problem



At 05:04 PM 6/13/2005, you wrote:

I'm using the api DmCreateDatabase() to create a new database
then duplicating an existing application. basically making a copy of
a application.  I've set the new db to the original app's attributes eg:
resource, backup bites and yet when i do a softreset the new cloned
app disappears.

could this have anything to do with the app not been in NVFS or the
shadow folder?


What database name are you giving to the new database?  On which revs of 
the Treo 650 software have you tried this?  Have you closed the new 
database to make sure it's written back to flash before doing the soft 
reset?



-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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







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


Fatal Alert??? is this palm pilot ruined?

2005-06-13 Thread Mishael Kim
So i've been using this new palm pilot (i actually forget the model) but it was 
using Palm OS 5.  and I've been syncing it with no problems.  I then got rid of 
the Palm pilot, but got my hands on an older Palm Vx.  I think it uses palm OS 
3 or something.  I then decided that I wanted all of the backedup info from the 
previous palm pilot to be transfered to this older Vx, so I just synced it with 
the computer thinking everything would be fine.  It started syncing fine, and 
it was just taking awhile because it was the first sync (i assumed).  When i 
went back a few minutes later to check on it... there was a Fatal Alert 
dialogue box that said... Fatal Exception, with only a reset button.  Resetting 
works, but it goes right back into the Fatal Alert box.

I can't even turn the palm pilot off now.
I did a hard reset, same alert.
I tried resyncing, same thing.
I drained the battery for a few days, and charged it up again, same thing.
It just won't get off this Fatal Alert box.

ANY IDEAS this is killing me!!
Thanks!

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


Re: T650 resource cloning problem

2005-06-13 Thread Ben Combee

At 09:22 PM 6/13/2005, you wrote:

Ben,

I'm creating a zip self-extracting archive. yes the files are closed and
i can unzip and zip on the fly on the launcher.  when i look at the Palm
folder in the hidden volume i dont see the file there.

basically i'm using the same name appending a 'z' at the end of the file name.

i'm using GSM unlocked T650. Garnet 5.4.5
firmware 01.14
software Treo650-1.05.-ROW


When you copy the database attributes from the old DB to the new one, make 
sure you mask that off and only set the user-modified attributes on the new 
DB.  It's possible you're copying some state from the opened-for-reading DB 
to the new one that's keeping the system from writing it to storage.  You 
should be able to do a bitwise and with the mask (dmAllHdrAttrs  
~dmSysOnlyHdrAttrs) when setting your attributes on the new DB.


-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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


Re: T650 resource cloning problem

2005-06-13 Thread PalmDev

the only attrs that i'm using are: resourcedb and backup bits.
From debugging the code. the attr = 9 which is dmHdrAttrResDB and 

dmHdrAttrBackup.


question: if you use a file manager and change the attributes
to have the backup bit would that work?

danny

- Original Message - 
From: Ben Combee [EMAIL PROTECTED]

To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Monday, June 13, 2005 8:58 PM
Subject: Re: T650 resource cloning problem



At 09:22 PM 6/13/2005, you wrote:

Ben,

I'm creating a zip self-extracting archive. yes the files are closed and
i can unzip and zip on the fly on the launcher.  when i look at the Palm
folder in the hidden volume i dont see the file there.

basically i'm using the same name appending a 'z' at the end of the file 
name.


i'm using GSM unlocked T650. Garnet 5.4.5
firmware 01.14
software Treo650-1.05.-ROW


When you copy the database attributes from the old DB to the new one, make 
sure you mask that off and only set the user-modified attributes on the 
new DB.  It's possible you're copying some state from the 
opened-for-reading DB to the new one that's keeping the system from 
writing it to storage.  You should be able to do a bitwise and with the 
mask (dmAllHdrAttrs  ~dmSysOnlyHdrAttrs) when setting your attributes 
on the new DB.


-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   Combee on Palm OS weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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







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


Re: T650 resource cloning problem

2005-06-13 Thread Logan Shaw

PalmDev wrote:

I'm using the api DmCreateDatabase() to create a new database
then duplicating an existing application. basically making a copy of
a application.  I've set the new db to the original app's attributes eg:
resource, backup bites and yet when i do a softreset the new cloned
app disappears.


Just an idea, but...

Are you using the same type and creator as the original database?
Is it possible that if two resource databases exist with the same
creator code and with the type 'appl' that the system deletes one
of them as part of its boot up initialization?  I don't know that
it does, but it would make sense if it did.

  - Logan

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


How to get Sprint PCS Vision Email User ID on Treo Device

2005-06-13 Thread Pradeepkumar Chaturvedi
Hi,

Is there any API to retrieve Sprint PCS Vision Email User ID on Treo
600 smart phone. Can I get it from Panel Preferences then in which
structure I should get the info and what is the panel Id.

Thanks in advance,
Pradeep

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


Re: giving error as app1 just read from memory location 0*000000001,which is in low memory

2005-06-13 Thread rupesh kumar
hi chirs,
this is the whole function in which errors are coming.
void GetFromDB()
{
   MemHandle recH , recH1;
   AddrDBRecordPtr  recP1 ; 
   AddrDBRecordPtr1 recP2;
   UInt16 i ,numRecs, len;
   Boolean secret , showsecret;
   UInt16   attributes ;
   char * str ;
   char*  str1;
   Err error;
   privateRecordViewEnum en1;
   
   numRecs = DmNumRecords(gDB1);
   en1 = hidePrivateRecords;

   secret = showsecret =  true;
   
   for(i=0 ; inumRecs ; i++)
   {
   
   if (DmRecordInfo(gDB1, i, attributes, NULL, NULL))
   {
FrmCustomAlert(SuccessAlert, Unable to get record 
info, NULL, NULL);
return;
   }
   if ((attributes  dmRecAttrBusy) != 0)
   {
FrmCustomAlert(SuccessAlert, Record is 
locked, NULL, NULL);
return;
   }
 
   attributes |= dmRecAttrSecret;
 
   DmSetRecordInfo(gDB1 , i , attributes , NULL);
   recH=DmGetRecord(gDB1, i);
   if(recH)
   {

   }
   else
   {

   }

  recP1=(AddrDBRecordPtr )MemHandleLock(recH);
   str = MemPtrNew(sizeof(char[1000]));  
 //at this point error are coming  in accessing recp1-fields
   StrCopy(str , recP1-fields);
   len=StrLen(str);
   str[len]= '\0';

   MemHandleUnlock(recH);
   SaveData1(str);
   MemPtrFree(str);

   if(showsecret)
   {   
SecVerifyPW(en1);
   }
   }
  
   error = DmCloseDatabase(gDB2);
   gDB2 = DmOpenDatabaseByTypeCreator(SecDBType , SecCreator , 
dmModeReadWrite/* | dmModeShowSecret*/ );
   if(!gDB2)
   {
error = DmCreateDatabase(0,SecDBName , SecCreator , SecDBType , false);
if(error)
{
}
gDB2 = DmOpenDatabaseByTypeCreator(SecDBType , SecCreator , 
dmModeReadWrite /*| dmModeShowSecret */);
if(!gDB2)
{
}
   }
   else
   {
   }
  
   numRecs=0;
   numRecs = DmNumRecords(gDB2);
   FrmCustomAlert( SuccessAlert, Getting hidden records, NULL,NULL );  
   for(i=0 ; inumRecs ; i++)
   {
   recH1=DmGetRecord(gDB2,i);
   recP2=(AddrDBRecordPtr1)MemHandleLock(recH1);
   MemSet(str1 ,0,sizeof(str1));
   str1 = MemPtrNew(sizeof(char[100]));  
   StrCopy(str1 , recP2-note);
   len=StrLen(str1);
   str1[len]='\0';
   MemHandleUnlock(recH1);
   FrmCustomAlert( SuccessAlert, str1, NULL,NULL );  
   MemPtrFree(str1);
   }//end of for
   error = DmCloseDatabase(gDB2);

}  

when i am trying to read data from database of contacts then these errors comes 
as
recp1-fields
please help me 
thanks
 
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


re: Icon for Application

2005-06-13 Thread sachin jesukaran
hi roderick ,
thank u for the solution provided by u
it worked out..
thank u
sachin
--- roderick young [EMAIL PROTECTED] wrote:

 If you are using a .rcp file with pilrc, the
 simplest way to add an icon is to add the lines
 
 ICON icon.bmp
 APPLICATIONICONNAME ID 1000 MyIcon
 
 to that file.
 
 icon.bmp is something you have created separately
 with (say) Windows Paint, say, 22 x 22 pixels in
 dimension.
 
 That will get you started.  Then look in the
 documentation for how to create icons for different
 resolutions and color depths.
 -- 
 For information on using the PalmSource Developer
 Forums, or to unsubscribe, please see
 http://www.palmos.com/dev/support/forums/
 




___
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for 
FREE! http://in.mail.yahoo.com

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


Re: T650 resource cloning problem

2005-06-13 Thread PalmDev

the creator IDs are different and the type is 'appl' for both.
here is what my apps does.

1. zip the original file to a new file (with a new creator id)
2. delete the original file

its weird. If i create a normal database it is fine.


- Original Message - 
From: Logan Shaw [EMAIL PROTECTED]

To: Palm Developer Forum palm-dev-forum@news.palmos.com
Sent: Monday, June 13, 2005 9:48 PM
Subject: Re: T650 resource cloning problem



PalmDev wrote:

I'm using the api DmCreateDatabase() to create a new database
then duplicating an existing application. basically making a copy of
a application.  I've set the new db to the original app's attributes eg:
resource, backup bites and yet when i do a softreset the new cloned
app disappears.


Just an idea, but...

Are you using the same type and creator as the original database?
Is it possible that if two resource databases exist with the same
creator code and with the type 'appl' that the system deletes one
of them as part of its boot up initialization?  I don't know that
it does, but it would make sense if it did.

  - Logan

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







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