Re: what's the good and bad for PalmOS compare to other OS?

2006-08-10 Thread cbruner
I take it you work for Microsoft ? :-P Tam Hanna wrote: Hi, as of now, I wouldn't start developing for the Palm OS anymore. Obviously, the API set is great and simple, however, with the future of the OS as unsure as it is now, still learning he Garnet API is a pointless and futile thing.

Re: Memory Leak

2006-07-27 Thread cbruner
Helmut A. Bender wrote: Am Donnerstag, 27. Juli 2006 15:40 schrieb Micky MeNeZeS: I have got following code. [...] It seems you don't initialize the buffer you create. So the check in StringCopy if (StrLen(aBuffer) == 0) won't work, since StrLen will get a random

Re: ctlHitControl and Popup triggers and OS 5

2006-03-29 Thread cbruner
Subject: Re: ctlHitControl and Popup triggers and OS 5 I hesitate to mention something you've probably already checked, but are you using 3.2, the latest version? On Mar 28, 2006, at 11:31 PM, cbruner wrote: OK, I've tried a few things and nothing seems to work. (syntax errors). The gist of what

Re: ctlHitControl and Popup triggers and OS 5

2006-03-29 Thread cbruner
[EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, March 29, 2006 1:04 AM Subject: Re: ctlHitControl and Popup triggers and OS 5 On 3/28/06, cbruner [EMAIL PROTECTED] wrote: OK, I've tried a few things and nothing seems to work. (syntax errors). The gist

Re: ctlHitControl and Popup triggers and OS 5

2006-03-28 Thread cbruner
I've looked in the manual for the PiIRC language and there is no mention of Form Interaction or Object Interaction. In the manual they have an example, What would you set to make it Form Interaction. NAVIGATION ID 1000 INITIALSTATE kFrmNavHeaderFlagsObjectFocusStartState

Re: ctlHitControl and Popup triggers and OS 5

2006-03-28 Thread cbruner
. == - Original Message - From: P. Douglas Reeder [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, March 28, 2006 5:36 PM Subject: Re: ctlHitControl and Popup triggers and OS 5 On Mar 28, 2006, at 2:50 PM, cbruner wrote: I've looked

Re: strange error.

2006-01-26 Thread cbruner
No, I found it. What was happening was the class had a pack(1) before it. and the compiler somehow didn't keep that in sync with the rest of the program. Thanks for the help anyways. Chris Bruner Compulife Software Inc. == - Original Message

Re: code warrior log files... where?

2006-01-16 Thread cbruner
Thank you. Wow there's a lot going on in that file. Chris Bruner Compulife Software Inc. == - Original Message - From: Logan Shaw [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, January 16, 2006 10:46

Re: Fixed string in code.

2006-01-12 Thread cbruner
You had me all excited, thinking that you had a solution for me. Turns out it compresses that just as much. This can easily be tested by grep 2006 program.prc It doesn't find it. Chris Bruner Compulife Software Inc. == - Original Message -

Re: Fixed string in code.

2006-01-12 Thread cbruner
. On Thursday 12 of January 2006 23:27 cbruner wrote: You had me all excited, thinking that you had a solution for me. Turns out it compresses that just as much. This can easily be tested by grep 2006 program.prc Can't you just call your app with own code that would return needed information

Re: Fixed string in code.

2006-01-12 Thread cbruner
:06 PM To: Palm Developer Forum Subject: Re: Fixed string in code. On Thursday 12 of January 2006 23:55 cbruner wrote: That's exactly the problem. I'm trying to check the compile date and time from outside the code, so that the palm software can be kept in sync with other software/data in our

Re: Fixed string in code.

2006-01-12 Thread cbruner
Yes I'm using CodeWarrior for Palm os, and PC-relative strings is turned on, as well as PC-Relative-Constant Data. The map file shows that the function length is 12 bytes which I know isn't large enough to hold the data, so I don't think it's working the way you think it is. The assembler for

Re: Fixed string in code.

2006-01-12 Thread cbruner
Well the problem was solved with inline assembly thanks to Jeffry Loucks, but for completeness sake the code was very similar to this. The code wasn't specified to be in inline, although it was small enough that it could have been. static//tried with and without const char

Re: deleting a program currenty on the palm

2005-11-11 Thread cbruner
. == - Original Message - From: cbruner [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, November 08, 2005 6:19 PM Subject: Re: deleting a program currenty on the palm Wow, I fell asleep this afternoon

Re: deleting a program currenty on the palm

2005-11-08 Thread cbruner
Wow, I fell asleep this afternoon and when I woke up there was a dozen thoughtful answers. Very cool. I'm going to have to experiment with some of these solutions, (and any more that might popup). Thank you all for your time and thoughts. Chris Bruner Compulife Software Inc.

deleting a program currenty on the palm

2005-11-07 Thread cbruner
I would like to run my program from the sd card, and I've noticed that if the program is running and the sdcard is taken out, the program is copied onto the main system memory. I can live with that, however I would like to be able to detect and delete the program from the main system memory

Re: deleting a program currenty on the palm

2005-11-07 Thread cbruner
Yes there is a reset when someone pulls the card and the program can no longer access the files it needs, so what you are describing is what I'm seeing. So back to the original question, I guess the answer is that if it is not deleted from system memory then I must assume that it is the result

Re: Remote Debugging on Tungsten E2

2005-11-05 Thread cbruner
Yes I 've done it on a Tungsten D (which I assume is pretty close). It only takes one dot, so you write lower case L, dot, 2, and it's in debug mode. At this point it will appear locked up to the outside world, and can only be reset or talked to via the USB or com port. Chris

Re: Remote Debugging on Tungsten E2

2005-11-05 Thread cbruner
Whoops that should have read Tungsten E, not D. Chris BrunerCompulife Software Inc.== - Original Message - From: cbruner To: Palm Developer Forum Sent: Saturday, November 05, 2005 2:28 PM Subject: Re: Remote Debugging

emulator with sdcard

2005-10-31 Thread cbruner
Is there any way to use the sdcard under the emulator when debugging? Chris Bruner Compulife Software Inc. == -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: emulator with sdcard

2005-10-31 Thread cbruner
Thanks for the reply. I've downloaded and installed the HostFS emulator, from https://www.developerpavilion.com/palmos/page.asp?page_id=365tool_id=7 however when I set the hostfs settings, it says that I need to install the hostfs emulator. The emulator I'm using is 3.5 from the same web

Re: debugging on palm

2005-10-29 Thread cbruner
I'm using a Tungsten E, with code warrior. Set the debugger to connect to the palm through the usb port. When you go to debug it it will ask you to enter the short cut .. 2, which is a bit confusing. The short cut is done using the find function (magnifying glass) and the short cut symbol is a

debugging on palm

2005-10-28 Thread cbruner
I've been successfully debugging on the palm for a couple of weeks now. It occasionally freezes, and I've assumed that the usb port is just messing up. Now I'm not so sure. It always freezes in the same general location, but not always at the same exact location. There are no odd address

Re: floor doesn't work?

2005-10-25 Thread cbruner
Found it. The library was being called, but hadn't been loaded. I'm surprised there was no error or crash... I ended up just linking the two functions (floor and ceil) in directly. Chris Bruner Compulife Software Inc. == - Original Message -

Re: Bug in StrCat?

2005-10-25 Thread cbruner
I think memcpy might do what you want. It is supposed to handle overlapping memory. Something like: int Len = strlen(string); memcpy(string[Len],string,Len); The problem you are coming across is that the strcat function needs to know where the end of the string you are copying from is. As

Tungsten E verses m125 memory issues

2005-10-24 Thread cbruner
I've got a strange problem. My code works fine on a Tungsten E, but causes an Address Exception Error at 0x5f844 unknown on the older M125 palm. The code is a simple assignment, of a pointer to a class. Nothing unusual. It is happening during initialization of a bunch of classes, and there is

floor doesn't work?

2005-10-24 Thread cbruner
floor is defined as double floor(double) determines the largest integer not greater than x Simple test: double value = 10; double result = floor(value); I get result very close to 0. Shouldn't it be 10? I've got mathlib.c linked in and nothing is complaining, it's just wrong.

hiding a label

2005-10-19 Thread cbruner
I'm updating a label during a calculation, and then when the calculation is done, I'm hiding the label, and showing a button. The way I'm doing it now seems stupid. (writing blanks). There must be a better way, but simply hiding the label doesn't seem to work. What is the best way to hide a

Re: VFSFileOpen crash

2005-10-17 Thread cbruner
What is the pszFileName? palms expect Unix style paths.I use this type of function to set up the global volRefNum which is used throughout my system to access files on an sdcard. It looks for a known file at /TopPath/IAmHere.DAT Hope this helps. bool filebase::FindVolRefNum() // look

Re: odd address error

2005-10-12 Thread cbruner
Moynihan [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, October 11, 2005 4:59 PM Subject: Re: odd address error cbruner wrote: The weird thing is that under the debugger it is able to run, although it stops at one point. When I try to just run it, it dies

conversion of float to string

2005-10-12 Thread cbruner
There must be a way to do it. I've searched the libraries, and can't seem to find it. I've looked at all the standard methods, fcvt,ecvt,gcvt,d_to_cstr,sprint How do you convert a float/double to a string? Chris Bruner Compulife Software Inc. ==

Re: odd address error

2005-10-12 Thread cbruner
As usual you address the question with more intelligence then the flippant comment warranted. So I will attempt to respond in kind. Your last comment None of these problems exist when reading a single byte from an odd address, because one byte is not big enough to span any boundaries like a

odd address error

2005-10-11 Thread cbruner
I'm getting an Emul68KCommon.c, Line:839, Odd address I don't have any file called Common.c, so I'm at a bit of a loss as to how to debug this. Also when I'm debugging I don't get this error, however the debugger will stop at places that I haven't set any breakpoints for. Are these related?

Re: odd address error

2005-10-11 Thread cbruner
] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Tuesday, October 11, 2005 4:02 PM Subject: Re: odd address error cbruner wrote: I'm getting an Emul68KCommon.c, Line:839, Odd address I don't have any file called Common.c, so I'm at a bit of a loss as to how to debug

Shortcut..2

2005-10-06 Thread cbruner
Is there some trick to getting the debugger working on the palm? I've clicked on the find icon, and entered Shortcut..2 and it looks for it but doesn't find it. Alternatively, is it possible to run the emulator, along with an sdcard simulated? Chris Bruner Compulife Software Inc.

Re: odd memory write problem

2005-10-06 Thread cbruner
example it would be ALetter); Stick another char after it in order to even things out. #pragma align 2 Makes no difference. Chris Bruner Compulife Software Inc. == - Original Message - From: cbruner [EMAIL PROTECTED] To: Palm Developer Forum

Re: RE:floating point

2005-10-05 Thread cbruner
: RE:floating point Hi, have you looked at MathLib before? Anyways, the PalmOS SDK Documentation always gives the file in which a function is defined! Best regards Tam Hanna http://www.tamoggemon.com Subject: floating point From: cbruner [EMAIL PROTECTED] Date: Tue, 4 Oct 2005 14:38:45 -0400 X-Message

odd memory write problem

2005-10-05 Thread cbruner
The code is pretty simple. clstring just grabs some memory using new.This routine is called 3 times, and on the third time I get an error that I'm writting to an odd address in memory. (see /// error here below). I have no idea where this could be coming from. The code doesn't change between

floating point

2005-10-04 Thread cbruner
I'm trying to use some floating point routines, and have found in the help files fplfloor(), fplinit() fplfree() and so on. The only thing is, is that the help files don't say what include files to use, and I can't seem to find them in the library. Chris Bruner Compulife Software Inc.

DisplayMessage

2005-09-26 Thread cbruner
I'm trying to get a general purpose dialog to pop up showing text. It's defined below. It will pop the form up, but I can't figure out why the text I'm inserting isn't showing up. Can someone please look this over and tell me where I'm going wrong? Thanks, Chris Bruner FORM ID InfoForm

Re: File Save dialog for VFS?

2005-09-26 Thread cbruner
I wasn't actually using vfs. I was using FileOpen Err err; FileHand fh; fh = FileOpen(0,go.prm,0,0,fileModeReadOnly,err); if (fh!=0) DisplayMessage(Opened go.prm!!!); else { fh = FileOpen(0,\go.prm,0,0,fileModeReadOnly,err); if (fh!=0) DisplayMessage(Opened \\go.prm!!!); else { fh =

Re: DisplayMessage

2005-09-26 Thread cbruner
screen then you could use FrmCustomAlert(): ALERT ID InformationAlertID DEFAULTBUTTON 0 WARNING BEGIN TITLE Information MESSAGE info: ^1 BUTTONS OK END FrmCustomAlert(InformationAlertID, This shows up where ^1 is in the MESSAGE line., NULL, NULL); cbruner wrote: I'm trying to get a general

Re: File Save dialog for VFS?

2005-09-26 Thread cbruner
Bruner Compulife Software Inc. == - Original Message - From: Logan Shaw [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Monday, September 26, 2005 2:55 PM Subject: Re: File Save dialog for VFS? cbruner wrote: I

Re: wither art DropInCompilerLinker.h

2005-09-23 Thread cbruner
I've found the Extra's directory on the CD, but I'm afraid of installing it incorrectly. I can't find any docs about installing it locally (or otherwise). Could you point me to a reference, or let me know what directorys the ide expects to find them in, (and anything else about installing that

wither art DropInCompilerLinker.h

2005-09-20 Thread cbruner
I'm trying to make a common error reporting function using CWReportMessage (if there is a better function for this purpose I'd like to know that as well). CWReportMessage's 5th parameter is errorlevel which is defined in DropInCompilerLinker.h (also CWReportMessage is defined there as well).

Re: filetypes

2005-09-15 Thread cbruner
Thanks Ben for pointing me there. I've tried to use it but I seem to be doing something wrong. It says it's registered but I can't install the file onto the card. Really what I want to do is access the card like a fat file system. There's apparently a definition for it vfsFilesystemType_VFAT,

Re: filetypes

2005-09-15 Thread cbruner
Thanks Ben, I've got VFSFileOpen etc, working, as #ifdefs around my base file operations. This is a fairly large port, and so I'm trying to keep things as common as possible. However the program I'm porting can be the helper app. (I hope I'm understanding your meaning.) Just to review (so

filetypes

2005-09-13 Thread cbruner
I've been charged with porting an application from Windows to Palm. So far it's going well, but I've got a basic question that has got me stumped. The Windows application has it's own proprietary database. The idea was to use an SD card to hold the data, and the palm app would be installed on