Low Memory error

2001-07-23 Thread Madina
Hi, I am still modifying a MemoPad application. My application gets loaded ok with just one warning "variable 'attr' not initialized" in a function Details Apply() (i dont know if this could be causing the problem) but when i try to access the new edit form I am getting a "Low memory" error. Than

Re: How to use the NetLibReceive?

2001-07-23 Thread Gary Gorsline
You will need to see what return code is. If -1, then err will have the error code. I bet it is "parm error". On POSE debug roms it appears that you need to use a NULL for both fromaddrP and fromlenP parameters. But I'm just guessing. Very little discussion is in the threads, as I have had th

How to use the NetLibReceive?

2001-07-23 Thread pong_lau
Hi All, What is the correct way to use the NetLibReceive Function? I found I cannot receive anything from the server. But I can sucessfully connect and sending data to the server. Is this the correct way? char buffer[200]=""; NetLibReceive(refno,socket,buff,200,0,(NetSocketAddrType*)&ad

Re: Converting files

2001-07-23 Thread Alex Robinson
Seems like an even bigger problem would be to build in the Palm device holder to the car stereo so that you can beam a big file without having to hold the device steady. :) There's an idea, though. We should all carry with us our "Theme Song." (Kinda like in the movie, "I'm Gonna Get You Sucka":

Re: Converting files

2001-07-23 Thread Hal Mueller
At 4:56 PM -0400 7/23/01, Vang, Vang (V.) wrote: >How do I parse a *.MP3 file > 64k into *.PDB file with multiple records < >64k on the PC. If you know of any MP3 software for Palm and/or any file >converter for the PC that would be great. Otherwise, anyone know how I can >attempt this, splitting

Re: Interesting way to Fatal-Error in Form.c

2001-07-23 Thread Alex Robinson
Peter Epstein wrote: > > I think I ran into this same problem several years ago. I had an about > dialog that I presented when the app was first run. When the dialog was > closed, I used FrmReturnToForm. At first, I had this full screen dialog open > right away, but this caused problems when clos

RE: FrmPopupForm doesn't work properly

2001-07-23 Thread Peter Epstein
The idea behind popping up a form is that the current form stays on the screen UNDER the new one. This is especially important when the new form doesn't fill the screen, as you can still see bits of the form underneath. When a form is closed, if it saved the bits under itself, those bits are norm

FrmPopupForm doesn't work properly

2001-07-23 Thread Jeremy Nuss
When I call FrmPopupForm(formID) the form I call it from isn't erased from the screen? This sort of behavior isn't mentioned in the Palm programming bible or the SDK.. does this happen for everyone else ? Then, upon a FrmReturnToForm(formID), the screen IS erased and the prior form is not displa

Re: Mathlib.prc

2001-07-23 Thread Steve Sabram
Write your own trig functions. Considering what you are doing, you may want to trade off memory for speed and make a simple lookup table for your trig functions. The source for Mathlib is provided so you can see the routines of the exact functions you are using. Then, you can modify them for

Re: Application Icon name

2001-07-23 Thread Richard M. Hartman
"Stephan Veigl" <[EMAIL PROTECTED]> wrote in message news:57270@palm-dev-forum... > > Hi > > > I would like to know if it possible to change the applications icon name at Runtime. > > the icon name is the resource database name of the app. No, the icon name is contained in the tAIN resource. Th

RE: MemHandles those waskally things.

2001-07-23 Thread Scott Johnson (Bellevue)
> From: Jeremy Nuss [mailto:[EMAIL PROTECTED]] > I've gone through all my code a dozen time to ensure that there > is no possibility that the offending Handles could be locked... > and there isn't. They just plain get unlocked every time Consider adding liberal amounts of assert code to help fin

RE: MemHandles those waskally things.

2001-07-23 Thread Danny Epstein
You might want to try something like Jeff Ishaq's memory leak detecting code. I don't remember if Jeff's code wraps MemHandleLock/Unlock, but it's easy enough to add if it doesn't. For your particular problem, you could probably get away with just wrapping MemHandleLock/Unlock. If you rely on Mem[

MemHandles those waskally things.

2001-07-23 Thread Jeremy Nuss
Hey everyone. I have been running into some problems with MemHandles being locked when I go to resize them. I've gone through all my code a dozen time to ensure that there is no possibility that the offending Handles could be locked... and there isn't. They just plain get unlocked every time t

Converting files

2001-07-23 Thread Vang, Vang (V.)
How do I parse a *.MP3 file > 64k into *.PDB file with multiple records < 64k on the PC. If you know of any MP3 software for Palm and/or any file converter for the PC that would be great. Otherwise, anyone know how I can attempt this, splitting into records? Sincerely, Vang Vang Vang Vang Stude

RE: FrmInitForm Returns frmP->formId = 0

2001-07-23 Thread Richard Burmeister
> From: [EMAIL PROTECTED] > > How do I turn off the optimizations? In CodeWarrior, open the project Settings panel (Edit | {projectname} Settings...), then highlight "Global Optimizations" under Code Generation. On the right hand side of the panel, move the slider to "Optimizations Off". > > For

RE: Alerts, events and keys - one or two events

2001-07-23 Thread John Kerwin
since you are changing the ID of the event, I would have to guess that it is a second event. maybe a second one is generated when the alert pops up and the user is still holding the key down? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Sent:

Re: Record begins where?

2001-07-23 Thread Dave Carrigan
"Vang, Vang (V.)" <[EMAIL PROTECTED]> writes: > Using visual c++ as an editor, I am trying to locate the beginning or ending > of a record in a raw "*.pdb" file. Can some home help me determine the > characters to look for? I think "\r\n" represents the division but I am not > sure. You can't do

Record begins where?

2001-07-23 Thread Vang, Vang (V.)
Using visual c++ as an editor, I am trying to locate the beginning or ending of a record in a raw "*.pdb" file. Can some home help me determine the characters to look for? I think "\r\n" represents the division but I am not sure. Vang Vang Student Engineer Office: (313)755-8392 Email: [EMAIL PROT

Re: Handling MP3 file

2001-07-23 Thread Steve Sabram
You could start with learning how to write software for the PalmOS. I suggest the Palm Programming book by Neil Rhodes. >From: "Vang, Vang (V.)" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Handling MP3 file

Atlanta PalmOS Developer's Meeting

2001-07-23 Thread Jon C. Zaring
Atlanta PalmOS Developer's Group (AtlPDG) is proud to present Anthony Gigante from Pumatech who will be demonstrating Satellite Forms. The meeting will be held on July 24, 2001 at 7:00PM CDT and all are welcome. Please go to http://groups.yahoo.com/group/atlpdg for more information! -- Jon C. Za

Re: StrToLower

2001-07-23 Thread George R
First of all, you don't necessarily need tmp as the l value of the call to StrToLower. The "result of StrToLower is stored in the first parameter (tmp)... Second, what is tmp? If it's a char* (which is what StrToLower expects), you need to initiliaze it with enough size to accept "ad". You might t

RE: what to do when new fails......

2001-07-23 Thread Peter Epstein
The important thing is to keep your use of dynamic heap memory within acceptable limits. These limits vary from OS version to OS version, and from device to device, so check the knowledge base for details. If you stay within these limits, you should rarely have to worry about new failing. Users wh

RE: detecting a tap in the input area

2001-07-23 Thread Peter Epstein
If you want to detect taps, check for a penDownEvent, not a keyDownEvent. -- Peter Epstein -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

RE: switching screen off and staying running

2001-07-23 Thread Peter Epstein
>From a user experience point of view, I wouldn't suggest turning the screen off during a long computation. Remember that a CPU running flat out doing computation will use enough power that keeping the screen on won't have that big an effect on battery life. Normally, the CPU is dozing most of the

Re: Modulus?

2001-07-23 Thread Dave Lippincott
it is % but it works for integers only - Original Message - From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 10:43 AM Subject: Modulus? > I am having trouble finding the modulus operator/function in codewarrior for > the Palm. Is ther

RE: Modulus?

2001-07-23 Thread Peter Epstein
If you're working with positive integers, the % operator in C will give you the modulus. Here is an uncompiled example: UInt16 a, b, c; a = 106; b = 5; c = a % b; Result: c == 1 If either of your arguments to the modulus function can be negative, the behavior of the % operator is machine depen

Alerts, events and keys - one or two events

2001-07-23 Thread James
I have a little program where I want to intercept a couple of keyDown Event's and do some things base on them. Basically I "cheated" and did the following: void AppEventLoop(void) { UInt16 error; EventType event; do { EvtGetEvent(&event,evtWaitForever); if(event.etype==keyDown

RE: Interesting way to Fatal-Error in Form.c

2001-07-23 Thread Peter Epstein
I think I ran into this same problem several years ago. I had an about dialog that I presented when the app was first run. When the dialog was closed, I used FrmReturnToForm. At first, I had this full screen dialog open right away, but this caused problems when closing the about dialog. So, I chan

RE: FrmInitForm Returns frmP->formId = 0

2001-07-23 Thread Chang . Elizabeth
How do I turn off the optimizations? I believe I have set to the lowest optimization level. In Global Optimization, I have Fast Execution Speed checked, Large Code Easier Debugging set to level 0 (or Optimizatio, all the way to the left). For your first question, frmP->formId = 0 was after exe

Re: I installed the sdk but the compiler can't find them

2001-07-23 Thread Aaron Ardiri
> Thanks for taking the time to respond to my question about setting up the > prc-tools. The thing that I found that I was doing wrong was that I had > mounted c:\PalmDev\sdk-4 to /PalmDev. Therefore, the compiler was looking > for the sdk (I assume) in this folder. When I mounted c:\PalmDev

Get Web Page Problem!

2001-07-23 Thread Lau Chi Pong
Hi All, I have used the following code to get web page from web server. /// UInt16 errno; UInt16 refno = 0; NetSocketRef socket; Err err; NetIPAddr ipaddr; NetSocketAddrINType

Re: I installed the sdk but the compiler can't find them

2001-07-23 Thread Lisa Gifford
Aaron, Thanks for taking the time to respond to my question about setting up the prc-tools. The thing that I found that I was doing wrong was that I had mounted c:\PalmDev\sdk-4 to /PalmDev. Therefore, the compiler was looking for the sdk (I assume) in this folder. When I mounted c:\PalmDev

HP 'Coolbase' open source release...

2001-07-23 Thread Schettino, John
It looks like the offical release of the HP Coolbase software has happened... http://www.cooltown.com/dev/reference/coolbase/ The PalmOS stuff is at http://www.cooltown.com/dev/reference/coolbase/ds-esquirt.asp (In the right-hand panel under "for Palm" you'll see all the documentation) And t

Handling MP3 file

2001-07-23 Thread Vang, Vang (V.)
I want to transfer an MP3 file from the PC to the palm using hotsync. Next I want to be able to I transfer the MP3 file from the palm to another PDA with MP3 capability, so I can play it. Where do I begin? Vang Vang Student Engineer Office: (313)755-8392 Email: [EMAIL PROTECTED] "Imagination is

incomplete documentation SDK 4 (new serial manager)

2001-07-23 Thread leoholanda
In Palm OS ® Programmer's API Reference for SDK 4 the SrmControl return value section is missing. Does anyone knows about it return codes? Its prototype is: Err SrmControl(UInt16 portId, UInt16 op, void *valueP, UInt16 *valueLenP) I'm using this function and its returning a non zero value. Thanks

StrToLower

2001-07-23 Thread Rhoda BEROL
hello, I write: tmp=StrToLower(tmp,"AD"); and There is this error: "Projet (1.0) just wrote to memory location 0x0001B61A, which is in the storage heap. In order to protect the integrity of the user's data, such direct access is not allowed. Instead, applications should use special Palm OS func

RE: detecting a tap in the input area

2001-07-23 Thread Stephen Bentley
Cool. If the first tap signals the graffiti manager to go into symbol entry mode, what would the best method be for detecting that first tap in the INPUT AREA only, not the 160x160 screen? S. >Because the first tap signals the graffiti manager to go into symbol >entry mode, then the second tap

Re: Palm databases vs Enterprise databases

2001-07-23 Thread Mark F Rodriguez
On 7/21/01 3:51 AM, "Madina" <[EMAIL PROTECTED]> wrote: > 3-I am trying to create a small prototype for academic purposes about an > enterprise solution for a hospital. I want to create records of Patients, > Physicians, Medications, etc. In the forms that i created, i have many > fields and ta

RE: new GetCharCaselessValue

2001-07-23 Thread Richard Burmeister
> From: Rhoda BEROL > > I can use the function "GetCharCaselessValue" because it is obsolete. > Is there an other function which do the same thing? > If you read the documentation for GetCharCaselessValue, you'll see that it says, "This function is provided for backwards compatibility only. Use T

Re: List box items truncated

2001-07-23 Thread Bradly J. Barton
> I have just added another list box to my application and added to items > to it. The first is 'Testing1' and the other is 'Testing2'. The first > (top) item in the list displays correctly but the second item is > displayed as 'ting1'. I noticed that the second item is not part of > 'Testing2' bu

RE: Modulus?

2001-07-23 Thread Fergal Moran
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > I am having trouble finding the modulus operator/function in Hmm - it always works for me > I know that it is usually just the % operator, but that seems to be > unrecognized... can you post some code and error messages please Fergal. --

Modulus?

2001-07-23 Thread r.graber
I am having trouble finding the modulus operator/function in codewarrior for the Palm. Is there some library I need to include, or what? I know that it is usually just the % operator, but that seems to be unrecognized... Thanks. Very truly yours, Rob G. -- For information on using the Palm

Re: detecting a tap in the input area

2001-07-23 Thread Ben Combee
"Stephen Bentley" <[EMAIL PROTECTED]> wrote in message news:57452@palm-dev-forum... > > Yes, I am checking in the main event loop. The funny thing is, if I tap > on any silk-screened button (menu, find, calc, etc.) or the ABC or 123 > area, I get the keydownevent. If I tap in just the input are

new GetCharCaselessValue

2001-07-23 Thread Rhoda BEROL
Hello, I can use the function "GetCharCaselessValue" because it is obsolete. Is there an other function which do the same thing? Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Stack Overflow problem

2001-07-23 Thread Michael Yam
Stack size varies within different versions of the Palm OS. I don't recall the numbers, but they're in the docs somewhere. Also, stacksize is configurable in CodeWarrior -- assuming that's your development tool. Michael Yam www.ytechnology.com manish jaggi <[EMAIL PROTECTED]> wrote in message

RE: Initializing CategoriesRecord

2001-07-23 Thread Richard Burmeister
> From: Madina > > I am getting 6 errors: > undefined identifier for 'dmCategoriesLength' That should be spelled dmCategoryLength (it is 16) > and 2 for 'ctl'. And It would be better to use ControlType * ctl; but that isn't causing the error. > expression syntax error for the 1st and 3rd l

RE: List box items truncated

2001-07-23 Thread Ian Munro
I have just added another list box to my application and added to items to it. The first is 'Testing1' and the other is 'Testing2'. The first (top) item in the list displays correctly but the second item is displayed as 'ting1'. I noticed that the second item is not part of 'Testing2' but the back

RE: detecting a tap in the input area

2001-07-23 Thread Stephen Bentley
Yes, I am checking in the main event loop. The funny thing is, if I tap on any silk-screened button (menu, find, calc, etc.) or the ABC or 123 area, I get the keydownevent. If I tap in just the input area it takes 2 taps to find the keyDownEvent. Why can't I see the single tap? S. >Are you c

Re: Initializing CategoriesRecord

2001-07-23 Thread Madina
The code is an exact copy of MemoPad tutorials. It is supposed to initialize the details form which displays a private record checkbox and a popup trigger for the categories. I have removed the checkbox and removed the code which i thought was for the private box (by commenting them with //). I

Re: Initializing CategoriesRecord

2001-07-23 Thread George R
What's the problem? Are you getting errors? If so, what are they? What are you trying to do? george r. "Madina" <[EMAIL PROTECTED]> wrote in message news:57389@palm-dev-forum... > > Hi, > This is the code from MemoPad but changed a bit. I have been using the code > for my small application. I

RE: List box items truncated

2001-07-23 Thread Ian Munro
Yes, the list box is wide enough to display all the characters. The list items were put in place at design time and the Constructor shows them in their entirety. -Original Message- From: Igor Mozolevsky [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 12:21 To: Palm Developer Forum Subject:

Re: a dumb palm pointer question?

2001-07-23 Thread George R
Instead of assigning the address of gpGateway to that of pGateway, you could just do a StrCopy (gpGateway, pGateway). Thus gpGateway woul then have the value of you're global string, but it'd still be a pointer that you could "sling" into different functions. Of course, you may have size issues if

HideMenuItem

2001-07-23 Thread Eamon Kelly
hi, has anyone got "HideMenuItem" to work properly? I tried it using this code: Boolean BaseFrm::EventHandler (EventPtr eventP) { Boolean bHandled=false; switch (eventP->eType) { case menuOpenEvent: MenuHideItem (MyMenuItemID); bHandled = true; bre

Re: List box items truncated

2001-07-23 Thread Igor Mozolevsky
--On 23 July 2001 12:17 +0100 Ian Munro <[EMAIL PROTECTED]> wrote: > I have written an application that uses a list box that displays 8 > items. The program works fine under all OS versions apart from OS4. > Under this version all the items in the text box are truncated to 5 > characters long.

Re: frmOpenEvent not working!?

2001-07-23 Thread Philip Sheard
"Joe Siebenmann" <[EMAIL PROTECTED]> wrote in message news:57414@palm-dev-forum... > > Hi All, > > This is driving me totally nuts! In my app I do: > > FrmGotoForm(ExecuteForm); > handled = true; > . > . > return handled; > > > Then a FrmCustomAlert() I put in the frmOpenEvent of ExecuteForm > p

Fwd: Stack Overflow problem

2001-07-23 Thread manish jaggi
>From: "manish jaggi" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Stack Overflow problem >Date: Mon, 16 Jul 2001 09:25:09 - > >My application is a segmenyed one and the segment size is under 68K >it is j

List box items truncated

2001-07-23 Thread Ian Munro
I have written an application that uses a list box that displays 8 items. The program works fine under all OS versions apart from OS4. Under this version all the items in the text box are truncated to 5 characters long. The program has been written using OS 3.1 libraries under CodeWarrior 7 and Co

[Q] Update part of a form only...

2001-07-23 Thread JeongHoe Kim
Hi? Can I update just some part of a form? If I update whole form, buttons, strings on the form or menu text flicker. So, I'd like to update some portion of my form. How can I do that? Thank you. Jeong -- ^_* -- JeongHoe Kim R&D Center, SK C&C +82-2-2259-4064 +82-11-741

switching screen off and staying running

2001-07-23 Thread John Roberts
Say my app was about to perform a very long computational excercise (like calculate pi to the nth decimal place) (this isn't my application but it demonstrates the issues). Would it be possible to switch the screen off to conserve power but effectively stay in running mode? TIA, - John -- F

what to do when new fails......

2001-07-23 Thread Gaurav Palvia
Hi folks, The OS closes the app when new fails so how should a palm application shld react. 1. Shld it follow the default behavoir and do nothing.. 2. Shld it display a msg box and quit the app. I mean to ask is there any standard behavoir for that or is anything specified in thr UI guide

Re: Problem in using Net.lib

2001-07-23 Thread Patrick Vuichard
<[EMAIL PROTECTED]> wrote in message news:57427@palm-dev-forum... > errno = SysLibFind("Net.lib",&refno); > I found in calling the NetLibSocketConnect Functions ..the return > value is -1. Probably because you haven't added InetLib.prc to your session of POSE... -- Internet, newsgroups, e-ma

Re: " bus error ! " ~ oh,My God !

2001-07-23 Thread I am johnny~
Stack window is stay "__destroy_global_chain" Variables window showed "__global_destructor_chain" Sourct window is "002259A2: 2B52FFC2move.l (a2),-62(a5)" "I am johnny~" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó news:57422@palm-dev-forum... > > Hi ... All: > me again ~ ^^||| > > My App occur an error ~

Mathlib.prc

2001-07-23 Thread manish jaggi
I am using Mathlib.prc for Trignometric calculations. This library is useful but it takes hell lot of time is there any substitute for it Manish _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- Fo

Re: Palm OS 4.0 Limited Sources available today

2001-07-23 Thread Pietro F. Maggi
In the PalmOS Source coide area I can only see the links to the source of v3.5 and v3.0... Where are the source of PalmOS 4.0? pietro -- The pawn is the most important piece on the chessboard... up to the pawn. -- For information on using the Palm Developer Forums, or to unsubscribe, pleas