Re: SndStreamCreate Problem
Hi, Have you checked the "Enable Sound" option for your simulator(s)? regards, rajan --- Hi all I am having a problem using the SndStreamCreate function. The error returned is 2058, which means that the device could not allocated system resources for the stream. I recieve this error on two separate projects. On the Tungsten T simulator I recieve the erro code Sys 0505 (0,1115). Does anyone know why I am getting these errors. This error only occurs on the T and T3 simulators.. I get no errors on other simulators. Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How can i detect the target device is simulator?
i can use FtrGet to detect the device is emulator. how about simluator? thanks for your help . -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Help to make a program for a model release
"Greatness" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can anyone tell me how I can make a text file that can have a few name > fields keyed in, plus a place for a signature (like UPS) so that I can print > out a copy of the model release with a signature on it. > I have absolutely no previous experience with programming, but I think this > should be a relatively easy thing to do. > Thank you, > Jeff > That's a knee-slapper. I've never piloted a commercial airplane, but I think it should be a relatively easy thing to do. Go up, fly a bit, land. Simple. ;-) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Problem with Keylock feature.
Ronald, thank you very much for the tip. Using that document, I was able to solve several Treo600 related issues. Bob. Ronald Gouldner wrote: Page 435 of the "Treo600DeveloperGuide.pdf" Document. Very nice detail on what to do. The document is on the main page of the HandSpring Developers site. https://www.handspring.com/developers/ I tried to find the same for KeyLock feature from PalmOS/PalmOne documents but couldn't find it. "Robert Moynihan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Ronald, sorry that I don't have a solution to your question, but I have been wanting to find way to disable the Treo600 keyguard; just haven't gotten around to looking yet. Would you be able to give me a quick shove in the right direction? No problem, of course, if it is more complicated than you want to get into here. Bob. Ronald Gouldner wrote: Palm OS 5.2 has a feature in prefs called Keylock which prevents the device from waking when buttons are pressed by displaying a dialog with a screen button that must be pressed before the device wakes. My application wakes the device in order to perform a task however it is being blocked by KeyLock. Is there a way to disable Keylock programmatically ? (Note: The Treo 600 has a similar feature called KeyGuard which can be disabled however it's technique does not work on the Keylock feature) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ExgSetDefaultApplication problem
I'm trying to call ExgSetDefaultApplication() to set my app to receive .txt files instead of the MemoPad app. this appears to work fine if I register less than 8 extensions using ExgRegisterData() api. if I try to register the nineth extension ExgSetDefaultApplication() will work and if I call ExgGetDefaultApplication() it will always return "memo" as the default app. If I remove the nineth extension and call ExgRegisterData() with only 8 it returns the correct creator id. anyone know what the problem is? thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
TCP streaming problem
I have a TCP streams app which needs to receive relatively large amounts of data (600k) through a slow connection (modem or cellphone). Most of the time it works, but sometimes the stream seems to slow down to a complete halt and timeout. I've tried increasing the receive timeout from 25 to 50 to 120 seconds, but it only makes things worse because it takes longer for my app to realise something is wrong. The server end is a windows server, and at the server end a timeout also occurs - it's as if the network has stopped. The interesting thing is that when you re-try the data transfer it starts off fine, then slows down and eventually times out again. Has anyone had similar experiences with NetLib? Is there some limit I've hit? Dave Bartlett Software Engineer Glidepath Ltd. www.glidepath.co.nz Please note: The contents of this email contains information that is Glidepath's Intellectual Property, Proprietary and/or Information confidential to the named recipient. This information is not to be used by or forwarded to any other person and/or organization unless as agreed by Glidepath in writing. If you have received this email in error please destroy the original and notify us by return. Thank you # This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal For more information please visit www.marshalsoftware.com # -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multipleline Text Field
Hi Marcel, You wrote: > In the news group, I didn't find any messages about SetFieldText() or > GetFieldText() yet. I will try to read the Memopad example, which is pretty > long... :-) > I do a search for "setfieldtext" on escribe and it found 86 matches, this is one of them http://www.escribe.com/computing/pcpqa/m48005.html If you want the scroll bar along the textfield, then the Memopad example shows how to do it. What you did is the same as what they do in those functions. tnn __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ARM debug
Hi, How can i compile a DLL to test with the simulator if i use PACEInterface ? thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tungsten T3 Screen Interlacing?
I have noticed that it looks like the Tungsten T3 screen is being refreshed in an interlaced fashion. Has anyone else noticed this? I can almost see it under fluorescent lights. You can really tell by looking at the home button at the bottom left when exiting out of an application that puts the screen in 16-bit mode. Am I seeing too much into this? If it is interlacing, why is it doing that? Mike __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Why new [] works in Debug but not Release (was: Allocating memory for C++ objects)
>I have a call to "new wchar_t[blah]". In debug build, it works fine in a find launch code. In the release build, it crashes >And crashing on the otherwise entirely trivial line: wchar_t* newBufferW = new wchar_t[newLength+SIZEOFNULL]; >SIZEOFNULL is a Class static const int, not a define. CodeWarrior is smart enough to turn a static const int into a define (inline it), so that was not the problem. Thanks CodeWarrior. In case anyone else can learn from my wasting most of a day reading maps and looking at assembly code, here is the solution. I am using CodWarrior 9.2 In a POL release build, the new [] operator, aka, __nwa__FUl, was getting inlined right into my .cpp file. So far, not a problem. But In a completely different file, I am using "#pragma segment Segment2" and new []. Codewarrior included new there also and the linker decided that was the One True version of new. As far as I can tell, if you use a inline function in multiple segments via "#pragma segment", and that function uses a standard C++ library call like memcpy or new, those library calls could be linked into any segment you are using them in. Apparently it's random? End result: new [] (__nwa__FUl) gets put in Segment2. I can't use "Merge Compiler Glue into Segment 1" because my first segment is so tight. I can't fit anything more into it. I need a way to force the linker to put __nwa__FUl in the first segment. My solution was to make sure any function using new is put in the first segment via #pragma segment. Now here's some more fun - #pragma has an interesting "quirk". If I have a function #pragma segment Segment1 void Foo() { int a = new int[5]; } #pragma segment Segment2 The new [] will get linked into Segment2, not Segment1 as you (ok, I) might expect. You have to put the "#pragma segment Segment2" after the NEXT function. It would have saved me a hell of a lot of time if I'd figured out what the symbol for new [] was (__nwa__FUl). I saw "__construct_new_array" in my first segment and figured I was good. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ARMlet dev
Hi, Where can i found informations on how to develop, compile and debug ARMlet for PalmOS using CW (or prc-tools, PACEInterface) ? thanks a lot Chris -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: bitmap 16 bit
> Hi all, > i crated a family bitmap with 2 bitmap, 8 bit and 16 > bit, i used Constructor, but i have always 8bit bitmap > displayed. i am using the emulator with palmos 4.1 and > i tryed many handheld Palm, Sony CLIE and others. > i draw the bitmap with WinDrawBitmap(..) > could anywone tell me what is the problem? Did you try changing the screen depth ? On most devices, it is set to 8 bits at startup. Have a look at the WinScreenMode function in the SDK documentation for more information. Pascal -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multipleline Text Field
Thanks to all for your answers. As Marcel Said, the method with "Handle" seems to be the only one which works in this case. Here is a cut&paste from my own code: FormType *frmP; FieldType *fieldHelpP; MemHandle h, oldHandle; char *p; h = MemHandleNew(100); p = (char *) MemHandleLock(h); StrCopy(p, "Message1 Help...\nMessage2 Help...\nMessage3 Help...\nMessage4 Help..."); MemHandleResize(h, StrLen(p)+1); MemHandleUnlock(h); fieldHelpP = (FieldType *) FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP, HelpField)); oldHandle = FldGetTextHandle(fieldHelpP); FldSetTextHandle(fieldHelpP, h); if (oldHandle) MemHandleFree(oldHandle); Best Regards, -- Pierre -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Tealscript crashes
Thanks. You might be naturally right - I was betting based on possible problems, which I can envisage. There is also a possibility that nobody is fault because of some random coincidence. (Such as using app generated events with the same id.) Actually I was hoping to get some background info of how Tealscript works, resp. what kind of the interactions there are between both programs. Regards, Jan Slodicka - Original Message - From: "Matthew Henry" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 4:56 PM Subject: Re: Tealscript crashes > > I have no idea what to do and the Tealscript guys are not interested > either. > > (Although I would bet that the problem is on their side.) > > > > FWIW, I bet it isn't. I use tealscript all the time, both with our apps and > with many other applications, on OS 4 and 5 devices and have never had a > single problem. I'm afraid you're gonna have to keep digging. :-) > > Sorry, can't be more helpful than that. > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
bitmap 16 bit
Hi all, i crated a family bitmap with 2 bitmap, 8 bit and 16 bit, i used Constructor, but i have always 8bit bitmap displayed. i am using the emulator with palmos 4.1 and i tryed many handheld Palm, Sony CLIE and others. i draw the bitmap with WinDrawBitmap(..) could anywone tell me what is the problem? Regards tozmma. __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Allocating memory for C++ objects
"Riccardo Cohen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Why does new work in > > debug and not in release? Anyone have any hints? I am using POL if that > > matters. > > In debug mode, as well as in release, the crash is not compulsary. For instance, let says you try to > write at bad address. Then if the bad address is within your application memory, but actually an > object that disappeared, then it wont crash even if it is a bug. Right but it's crashing with a "just change the emulated program counter to 0x8003aCFE. The address is invalid because it's in neither ROM nor RAM". And crashing on the otherwise entirely trivial line: wchar_t* newBufferW = new wchar_t[newLength+SIZEOFNULL]; I believe this is what you see if you try to call code in another segment if you are in a no-globals launch ... ... Oh my oh my. SIZEOFNULL is a Class static const int, not a define. Weird that it worked in Debug If y'all excuse me, I'm gonna go throw myself a beatin'. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Bug with WinCopyRectangle on Palm IIIc
My application performs a stylus-controlled map pan by moving most of the screen window using WinCopyRectangle in winPaint mode. Things work fine except on a Palm IIIc (real device or POSE, with debug/non-debug ROM), where panning downward or rightward often crashes with the following error message: Application just read from memory location 0x1EFE, causing a bus error. A "bus error" means that the application accessed a memory location that is not in RAM or ROM, nor corresponds to a memory-mapped hardware register. Here is the stack crawl from the CW debugger: 0x10C55E52( WinCopyRectangle ) 0x10C4E0D2( BltCopyRectangle ) 0x10C4E0D2( BltCopyRectangle ) 0x10C51E32( PrvMisAlignedBackwardInnerBitBltç ) Is there any pre-processing I can perform or any other alternative I can use to let the user pan in continuous mode (dragging the stylus) without crashing? -- Luc Le Blanc -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Allocating memory for C++ objects
> Why does new work in debug and not in release? Anyone have any hints? I am using POL if that matters. In debug mode, as well as in release, the crash is not compulsary. For instance, let says you try to write at bad address. Then if the bad address is within your application memory, but actually an object that disappeared, then it wont crash even if it is a bug. Very often, bad address point to a memory wich the OS does not allow. So the crash is immediate. But this is not always the case. I've been fighting some bugs in release, and found a real error that did not appear in relase. Even with a memory checker. -- Riccardo Cohen Articque Les Roches 37230 Fondettes France web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Allocating memory for C++ objects
> > Mmm, I didn't know that the standard operator new uses global variables. Is it > > the exception handling in the standard new that uses global? > I don't know. All I know is that is is not allowed, and that it really crashes the app ! Weird, I've been trying to track down what sounds like a related problem all morning. I have a call to "new wchar_t[blah]". In debug build, it works fine in a find launch code. In the release build, it crashes. D*mned if I can figure out the problem. I've been staring at the two map files until I am blue in the face. They are effectively the same. Why does new work in debug and not in release? Anyone have any hints? I am using POL if that matters. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Link Error: Main.c: 'AppHandleEvent' 16 bit code reference to 'SecondFormHandleEvent' is out of range
> Yes, you have to make your project a multi-segment app. > And might I suggest you do so by using #pragma segment instead of the segments tab. I finally switched my whole app and all its libraries over to using #pragma segment instead of the segment tag, and my life sucks less (much easier to keep different targets in sync). -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: images
> Please help me, I know that this question is quite easy for them who have > done this so please give me some advise :) > \Anders R-N Look up Bitmaps->Drawing in the Palm OS Bible index. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multipleline Text Field
I think, I found an answer (originally posted by Darren Beck in the group pilot.programmer): Darren proposed the following: 1) Get the handle to the field's text (FldGetTextHandle) 2) Lock the handle to get a pointer to the text 3) Use the pointer and change the text however you want it 4) Use FldFreeMemory to release all memory the field has. 5) Use FldSetTextHandle to link the handle to the field again. 6) Unlock the handle again. I did it in a slightly more complicated way, which works also (i.e. for multiline fields): 1) Get the handle to the fields text 2) Lock the handle to get a text pointer to the old text of the field. 3) Create a new handle for your new text (MemHandleNew) 4) Lock the new handle to receive a text pointer for your new text. 5) Copy the new text to the new text pointer (StrCopy) 6) Use FldFreeMemory to release the old field's memory completely 7) Unlock the new handle 8) Use FldSetTextHandle with the new handle to set the new text for the field. The field's attribute "single line" must be deactivated for a mutliline view, of course. And you should call FldDrawField after both recipes above, otherwise you might not see the change of the text. This worked for me, at least. Hope it helps. Marcel. "pcles" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm trying to print some text into a multiple line non-editable text > field with sometihing like this: > > StrCopy(helpStr, "Message1 Help...\0AMessage2 Help...\0AMessage3 > Help...\0AMessage4 Help..."); > FldSetTextPtr(fieldHelpP, helpStr); > > Unfortunately, it does not work. All the text is printed on the same > line. > > Is there any way I can make it work ? > Is there any alternative for doing it with PilRC (aside from defining a > multi label Form) ? > > Thanks in advance, > > -- > Pierre > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: GCC: Force 3rd party library into 2 different sections?
"John Marshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gregg Woodcock <[EMAIL PROTECTED]> wrote: > > OK, now that you've had your fun (which is somewhat deserved), hopefully you > > are willling to help me actually figure out WHY this does nothing for me. > > Dude, I have been helping you the whole time. (Meanwhile, you have not > retracted or apologised for your "woefully inadequate" slight.) I hereby publicly and whole-heardedly apologize for and retract the woefully inappropriate use of the pejoritive "woefully inadequate" which I used to disparage the documentation found at this URL: http://prc-tools.sourceforge.net/doc/prc-tools_3.html Furthermore, I certify the above apology is made in all sincerity (and Keith implied y'all weren't pedantic!)... > > 1) Is there a way to specify which functions in a library go into which > > segments (remember, all I have is the .h and .a file; it isn't my library)? > > If I modify the .h file with the SECTION_X postfix, will that work? > > As noted in the documentation and in the archives many many times, > the SECTION_X annotation needs to be visible (in particular) when the > function to which it refers is compiled. If you annotate the .h file > but do not recompile the .a archive, this will obviously not hold. > No, that will not work. I know that it "won't work" in the sense that if I were to access the "moved" functions, it would crash. However, I was hoping that, as a hack, it might cause the linker to move the object code there regardless. Since I don't plan on using those functions anyway, I don't care that using them causes a crash. In other words, I was hoping for something that could get me back up and running while I wait for the library builder to fix the problem properly. It is clear from your previous comments though that a monolithic .o in a .a cannot be split into different sections so this won't work either so I won't bother to try. > > 2) Is there way to force the compiler to evaluate which functions are > > actually used BEFORE it stakes out space for them in the codres so that it > > will not consider unused ones? > > Have the library built correctly. Yes, that's the plan now. Thank you (seriously) for your help. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Multipleline Text Field
I have the same problem. I have set the attribute of the Field not to be a single-line-text-field. But still, all my text is printed on one single line, and the end of the string is outside of the visible area, of course. I also tried to print '\n' characters in the string, which didn't work either. In the news group, I didn't find any messages about SetFieldText() or GetFieldText() yet. I will try to read the Memopad example, which is pretty long... :-) Thanks. Marcel. "ThuNguyet Nguyen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > > In the memopad tutorial, there is some sample code on multi line text field > with scroll bar. > > If you just need multiline text field without the scroll bar, (I am using CW, I > don't know how to do it in Pilrc) In the contructor, you put a text field with > the height = number of lines x 11, set to multiline (uncheck single line, > maybe) > > In your code, use SetFieldText(), GetFieldText(), FreeFieldText() to work with > text fields. You can find these functions by searching this news group or email > me, I can send you these functions. ([EMAIL PROTECTED]) > > Hope that helps. > > tnn > > __ > Do you Yahoo!? > Free Pop-Up Blocker - Get it now > http://companion.yahoo.com/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: GCC: Force 3rd party library into 2 different segments?
You still mean sections, not segments. Gregg Woodcock <[EMAIL PROTECTED]> wrote: > OK, now that you've had your fun (which is somewhat deserved), hopefully you > are willling to help me actually figure out WHY this does nothing for me. Dude, I have been helping you the whole time. (Meanwhile, you have not retracted or apologised for your "woefully inadequate" slight.) > Armed with the map file I can see that indeed, it is now (and actually > probably was in the beginning) creating a large(r) coderes segment as > evidenced by these 2 differences: > coderes 0x 0x8002 > coderes 0x 0xfcd0 Right, so in fact in all probability the thing you were casting aspersions at was working correctly all along. And happily we're now going to get on to the real problem. > The library itself is actually 23080 bytes but the author told me that > this gets trimmed by the linker (for my type of use) to about 4K (I am > only using 3 functions out of the 40 or so). The most likely reason for your problem is that the author is mistaken. Look at your library with "m68k-palmos-ar tv libfoo.a". If you see dozens of small .o files, corresponding more or less to the separate functions in the library, then the linker in prc-tools-m68k will be able to pull in only the .o files it needs and your executable will not become bloated with functions you are not using. If you see only one monolithic .o file, then the author does not know how to build a Unix-style static library. > So the REAL problem I am having is that the compiler is including ALL the > library instead of just the pieces I am actually referencing/using. Perhaps > I have settings of the linker so that it is not properly discarding unused > library code? In Code Warrior, a library is really just an object file. CW uses an object file format in which functions and function-static data and so on are stored in separate hunks within the object file. It is this arrange- ment into separate per-function hunks that allows CW's linker to strip unused functions and their data from inside an object file. To the GNU linker, as on Unix for decades, a library is a collection of object files. If several functions are in one object file, then they are all smooched together into the same sections. They are not separable. The linker used in prc-tools-m68k DOES NOT DISCARD UNUSED FUNCTIONS. Rather, it only pulls an object file in from a library if that object file provides a function (or a symbol) required to satisfy the link. The atomic unit is an object file, not a function [1]. Once an object file has been pulled in, any unused functions in that object file cannot be discarded, because there is no way to separate them from the other functions in the object file. Thus a badly built monolithic linker library causes the bloating effects you are seeing. The GNU linker does in fact support similar behaviour to CW on some platforms. A combination of GCC's -ffunction-sections flag and the linker's --gc-sections produces an explosion of separate sections that provide similar capabilities to CW's object format's hunks. But these flags are not supported on prc-tools-m68k at this time. > 1) Is there a way to specify which functions in a library go into which > segments (remember, all I have is the .h and .a file; it isn't my library)? > If I modify the .h file with the SECTION_X postfix, will that work? As noted in the documentation and in the archives many many times, the SECTION_X annotation needs to be visible (in particular) when the function to which it refers is compiled. If you annotate the .h file but do not recompile the .a archive, this will obviously not hold. No, that will not work. > 2) Is there way to force the compiler to evaluate which functions are > actually used BEFORE it stakes out space for them in the codres so that it > will not consider unused ones? Have the library built correctly. John [1] Well, really the atom is a section within an object file. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: GCC: Force 3rd party library into 2 different segments?
"Ton van Overbeek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, Gregg Woodcock wrote: > > > > Armed with the map file I can see that indeed, it is now (and actually > > probably was in the beginning) creating a large(r) coderes segment as > > evidenced by these 2 differences: > > coderes 0x 0x8002 > > coderes 0x 0xfcd0 > > > > The reason I assumed it *wasn't* working was because I get the classic > > "coderes is full" error when linking in the FourKLib library. The library > > itself is actually 23080 bytes but the author told me that this gets trimmed > > by the linker (for my type of use) to about 4K (I am only using 3 functions > > out of the 40 or so). > > > > So the REAL problem I am having is that the compiler is including ALL the > > library instead of just the pieces I am actually referencing/using. Perhaps > > I have settings of the linker so that it is not properly discarding unused > > library code? Evidently what the linker does is allocate space for ALL the > > functions in an included library FIRST and then strips out the actual code > > after the fact. Therefore I need to be able to fit the entire 23+K into the > > codres even though only 4K or so will end up there. > > > > Is there way to force the compiler to evaluate which functions are > > actually used BEFORE it stakes out space for them in the codres so that it > > will not consider unused ones? > > If it is a proper library, then that is exactly what the linker will do. > It seems that for some reason the whole library is pulled in. If you link > with -Wl,--verbose you can see which modules are extracted from lib.a. > Also the link map contains this information. Yes, the map file indicates they are ALL in there; I *know* that's the probem... > Then you will have to figure out why it pulls in everything. Yes, that's the issue! > Some things which might help: Look at the symbol definitions with nm: > 'm68k-palmos-nm -s ' > If there is no library index, create one with 'm68k-palmos-ranlib '. I actually have direct access to the 3rd-party library developer and would like to dump this in his lap. You said, "if it is a proper library" the linker will optomize out unused code BEFORE it gets staked out in the coderes. What detemines "if it is a proper library"? Is there something I can tell him to do/check/try such that he can produce a "proper library" for me to use? What will I be seeking in the nm? What will it show me? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Alarms not always triggered
Hi, thanks for the quick reply. Yes, I am calling the AlmSetAlarm during the reset launch code. The problem is the app works perfectly on most devices and totally doesn't work on some. In my app, I respond to sysNotifyLateWakeUpEvent and set an alarm for 1 second later so that I can display a form. Is there an issue of setting an alarm to 1 second later? I noticed that if I set the alarm to be the current time, it totally doesn't work. From: Mike Margerum <[EMAIL PROTECTED]> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Subject: Re: Alarms not always triggered Date: Wed, 26 Nov 2003 10:51:48 -0500 Are you calling AlmSetAlarm during the reset launch code? if they soft reset, your alarm doesnt get reset. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ _ Are you in love? Find a date on MSN Personals http://match.msn.com.my/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Tealscript crashes
> I have no idea what to do and the Tealscript guys are not interested either. > (Although I would bet that the problem is on their side.) > FWIW, I bet it isn't. I use tealscript all the time, both with our apps and with many other applications, on OS 4 and 5 devices and have never had a single problem. I'm afraid you're gonna have to keep digging. :-) Sorry, can't be more helpful than that. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Alarms not always triggered
Are you calling AlmSetAlarm during the reset launch code? if they soft reset, your alarm doesnt get reset. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: One directional IR transmission without connection
I tried it with the Serial Manager Functions, and it works fine. The Serial Manager provides functions to access the IR port without any protocol support and enables the programmer to do really low-level things with it. I think I will go on in this direction. Thanks for the hint. Marcel. "David Chevalier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Marcel wrote: > > I have heard about ULTRA, but couldn't find the specs on the irda.org > > website. I will check this out as a second option after testing IrTestReq. > > The actual ULTRA protocol doesn't seem to be available anymore. You can infer > some of its structure from the IrWW spec (WW = wristwatch). > It's really not a very interesting protocol (IMHO), as it is limited to very > low bauds ( < 9600) and packet payloads ( <= 62 bytes). > > Serial API is a better option (albeit with some cross-device issues) to look > into if IrTestReq doesn't work. > > -Dave > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: GCC: Force 3rd party library into 2 different segments?
In article <[EMAIL PROTECTED]>, Gregg Woodcock wrote: > "John Marshall" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> It might be worth changing the suggested usage to "-Wl,-T,text_64k", >> which would more reliably warn idiots who (mis)use it at compile-time, >> but the advantage is offset by the probability of said idiot mistyping >> all that punctuation and posting questions about that instead :-). > > OK, now that you've had your fun (which is somewhat deserved), hopefully you > are willling to help me actually figure out WHY this does nothing for me. I > started out in the beginning using it in the link phase and it did nothing. > I tried -t, -T, linker, compiler, EVERYTHING. Nothing works. I am trying > to add a 4K library to my primary code segment. That's it. It won't fit in > the default 32K segment but doubling that is WAY more than enough so that's > what I want/need to do. And yet when I do exactly what you have so > derisively described, it makes no difference. Not only that, the > linker/compiler NEVER give any errors at all. As I said before, I can do > "-t garbage", "-T garbage" and get nothing to let me know that it is even > there. So I have no feedback as to where I might be off track. All I know > is I am desperate to get this in and I can't do it and there doesn't seem to > be any example anywhere online of this in use. > > Armed with the map file I can see that indeed, it is now (and actually > probably was in the beginning) creating a large(r) coderes segment as > evidenced by these 2 differences: > coderes 0x 0x8002 > coderes 0x 0xfcd0 > > The reason I assumed it *wasn't* working was because I get the classic > "coderes is full" error when linking in the FourKLib library. The library > itself is actually 23080 bytes but the author told me that this gets trimmed > by the linker (for my type of use) to about 4K (I am only using 3 functions > out of the 40 or so). > > So the REAL problem I am having is that the compiler is including ALL the > library instead of just the pieces I am actually referencing/using. Perhaps > I have settings of the linker so that it is not properly discarding unused > library code? Evidently what the linker does is allocate space for ALL the > functions in an included library FIRST and then strips out the actual code > after the fact. Therefore I need to be able to fit the entire 23+K into the > codres even though only 4K or so will end up there. > > So the questions I now have are: > > 1) Is there a way to specify which functions in a library go into which > segments (remember, all I have is the .h and .a file; it isn't my library)? > If I modify the .h file with the SECTION_X postfix, will that work? This > would seem like my best bet. > No, this is not going to work. All routines pulled in from the library will be in the main code section (.text which becomes coderes 1). > 2) Is there way to force the compiler to evaluate which functions are > actually used BEFORE it stakes out space for them in the codres so that it > will not consider unused ones? If it is a proper library, then that is exactly what the linker will do. It seems that for some reason the whole library is pulled in. If you link with -Wl,--verbose you can see which modules are extracted from lib.a. Also the link map contains this information. Then you will have to figure out why it pulls in everything. Some things which might help: Look at the symbol definitions with nm: 'm68k-palmos-nm -s ' If there is no library index, create one with 'm68k-palmos-ranlib '. Ton van Overbeek -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Event when another application's alarm gets triggered?
Hi, is there an event being broadcasted when another application's alarm get triggered? I am doing an application that needs to perform some special effects when any alarms get triggered. Is it possible? Thank you for your help _ Download the latest MSN Messenger http://messenger.msn.com.my -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: sysAppLaunchCmdSystemReset question
>>> If you want to launch your application on reset, set an alarm to run >>> your application once the reset sequence is completed. >> How can I set an alarm at that time? Do I create a minimal no global >> variables prc to do that? > You don't need to. Your app can HAVE global variables, and still work > fine during a reset launch code, as long as it doesn't try to USE them > under "no-global" conditions. Ok, when I remove the FrmGotoForm call and the AppEventLoop call from PilotMain, I can get a prc that doesn't barf on reset. Now, to set an alarm. Onward, ever onward... Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: 5-way navigation SDK
That would be great, if just the Palm have not wanted for some looney reason login for everything that makes sence, grrr! George VS ([EMAIL PROTECTED]) "LeSalle Munroe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Go to the following site and download the FiveWay SDK: > http://www.palmos.com/alliance/resources.cgi/devseed/ > - Original Message - > From: "George VS" <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Wednesday, November 26, 2003 7:49 AM > Subject: 5-way navigation SDK > > > > Hi group, > > > > Is there any place I can find usefull information about handling 5-way > > navigation? > > Also is there any emulator/simulator that supports it? > > > > Thanks! > > George VS ([EMAIL PROTECTED]) > > > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Alarms not always triggered
It happens to me too. I have an app that uses alarm but some of my users report that the alarms never get triggered. It's not a device specific problem because I tested the app on multiple "clean" device (nothing but the app installed) and it works perfect. Anyone can offer an idea of what is causing the problem? Help will be very much appreciated. Thank you York Kie From: James Screech Date: Thu, 15 Aug 2002 03:53:52 My application uses an alarm to perform an operation at a specific time, most of the time this works fine (even with the Palmswitched off). However if some applications are active (PalmOS clock) the alarm is never triggered and with others (Today) the alarm is triggered only after the application is exited. Has anyone else experianced similar problems and/or know of a solution? _ Using a handphone prepaid card? Reload your credit online! http://www.msn.com.my/reloadredir/default.asp -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Palm devices supporting SSL
Hello everyone, did anyone can tell me if all PalmOS5.2.1 devices supports SSL? Cause I don't want to make another mispurchase like I did with the Tungsten T1. Thanx for any hint. Philippe -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Modifyng Records question
when change a field, and changes his size. when recording it the neighboring registries do not change their position? /--rec1--rec2--rec3---/ Modify the record 2, and change his size, it does this? /-rec1--rec2-rec3-/ I use, DmGetRecord, and nonuse a DmWrite for all the structure, but DmWrite/DmStrCopy for each field. -- Open WebMail Project (http://openwebmail.org) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Turning off alarm off
Hi, when you uPrefSetPreference(prefAlarmSoundVolume, 0L); the changes will only take effect after a reset that's why you won't get the desired result straight away. _ Are you in love? Find a date on MSN Personals http://match.msn.com.my/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: 5-way navigation SDK
Go to the following site and download the FiveWay SDK: http://www.palmos.com/alliance/resources.cgi/devseed/ - Original Message - From: "George VS" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 7:49 AM Subject: 5-way navigation SDK > Hi group, > > Is there any place I can find usefull information about handling 5-way > navigation? > Also is there any emulator/simulator that supports it? > > Thanks! > George VS ([EMAIL PROTECTED]) > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
GCC: Force 3rd party library into 2 different segments?
"John Marshall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It might be worth changing the suggested usage to "-Wl,-T,text_64k", > which would more reliably warn idiots who (mis)use it at compile-time, > but the advantage is offset by the probability of said idiot mistyping > all that punctuation and posting questions about that instead :-). OK, now that you've had your fun (which is somewhat deserved), hopefully you are willling to help me actually figure out WHY this does nothing for me. I started out in the beginning using it in the link phase and it did nothing. I tried -t, -T, linker, compiler, EVERYTHING. Nothing works. I am trying to add a 4K library to my primary code segment. That's it. It won't fit in the default 32K segment but doubling that is WAY more than enough so that's what I want/need to do. And yet when I do exactly what you have so derisively described, it makes no difference. Not only that, the linker/compiler NEVER give any errors at all. As I said before, I can do "-t garbage", "-T garbage" and get nothing to let me know that it is even there. So I have no feedback as to where I might be off track. All I know is I am desperate to get this in and I can't do it and there doesn't seem to be any example anywhere online of this in use. Armed with the map file I can see that indeed, it is now (and actually probably was in the beginning) creating a large(r) coderes segment as evidenced by these 2 differences: coderes 0x 0x8002 coderes 0x 0xfcd0 The reason I assumed it *wasn't* working was because I get the classic "coderes is full" error when linking in the FourKLib library. The library itself is actually 23080 bytes but the author told me that this gets trimmed by the linker (for my type of use) to about 4K (I am only using 3 functions out of the 40 or so). So the REAL problem I am having is that the compiler is including ALL the library instead of just the pieces I am actually referencing/using. Perhaps I have settings of the linker so that it is not properly discarding unused library code? Evidently what the linker does is allocate space for ALL the functions in an included library FIRST and then strips out the actual code after the fact. Therefore I need to be able to fit the entire 23+K into the codres even though only 4K or so will end up there. So the questions I now have are: 1) Is there a way to specify which functions in a library go into which segments (remember, all I have is the .h and .a file; it isn't my library)? If I modify the .h file with the SECTION_X postfix, will that work? This would seem like my best bet. 2) Is there way to force the compiler to evaluate which functions are actually used BEFORE it stakes out space for them in the codres so that it will not consider unused ones? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: unsigned = sign ???
-- "KEN" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > thx > but what should I do to change type? > > UInt16 intVal_16; > UInt32 intVal_32; > > intVal_16 = 6; > intVal_32 = intVal_16; > abort_int("%u", intVal_32); //the value is not correct > intVal_32 is a long use "%lu" Maybe you should have a look at the documantation about StrPrintF -- Regis St-Gelais, P. Eng. / ing. Software Development / Développement informatique www.laubrass.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: StrCat, pointer reinitialization, bug in CW v9.0?
-- "Lawrence Lau" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi, > > I have a similar code developing in CW v9.0 like the following (simplified) : > > static Boolean SatLogFormHandleEvent( EventPtr event ) > { > char *filename; > char temp[5]; > ... filename is a pointer and you never alocate memory to it. -- Regis St-Gelais, P. Eng. / ing. Software Development / Développement informatique www.laubrass.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
penUpEvent in Extended Gadgets ???
Hi All, How to Track the penUpEvent and penMoveEvents on an Extended gadget. The penDownEvent can be tracked in the gadget handler callback function. TIA Harish -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tealscript crashes
Hello, recently we encountered strange crashes of our app. All of them appeared only when Tealscript was enabled. (TS is a kind of hack offering improved character recognition. It does so by replacing some system traps.) Very strange thing is that the crashes can be more-or-less safely reproduced after TS is activated. Once we pass certain crash, it cannot be reproduced (unless TS is switched off/on), but the other crashes (usually) work (until they happen the first time). This points to an initialization problem in the Tealscript. Here is a typical sequence: TS activated. Our app launched, a dialog with an edit box opened. Writing 1 letter on the graffiti -> crash. During the text editing we run our own event loop, where we process some special events. (Such as eg. scrolling when keyDownEvent for vchrPageDown appears.) Another typical crash happens when the Find button is pressed while the progress dialog is running. The logic of the progress dialog is as follows: During lenghty processing we periodically call HandleEvents(10), which runs the event queue with a single purpose: to test whether the user issued an abort signal. Just for the illustration here is the relevant code: static Boolean g_bHas5way = false ; Boolean TestAppStopEvent( EventType *event ) { if( g_bHas5way && event->eType == keyDownEvent && vtKeydownIsVirtual( event) ) if( event->data.keyDown.keyCode & navBitSelect ) if( event->data.keyDown.modifiers & autoRepeatKeyMask ) { EventType ev ; ev.eType = appStopEvent ; EvtAddEventToQueue( &ev ); return true ; } return false ; } static void HandleEvents( int count ) { EventType event; while( count-- && EvtEventAvail() ) { EvtGetEvent(&event, 1); if( event.eType != nilEvent ) { if( TestAppStopEvent( &event) ) { g_abort = true; break ; } if(! SysHandleEvent(&event) && g_progressActive ) FrmDispatchEvent(&event); if( event.eType == appStopEvent ) { EvtAddEventToQueue( &event ); g_abort = true; break; } } } } One user reports a crash after our app exits. (Again, only when TS is active.) The last thing: After I did some (seemingly unrelated) changes and after a hard reset (forced by some calculator), my crashes disappeared, whereas the user experiences his crashes further on. I have no idea what to do and the Tealscript guys are not interested either. (Although I would bet that the problem is on their side.) Can anybody give me some advice? Jan Slodicka -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
StrCat, pointer reinitialization, bug in CW v9.0?
Hi, I have a similar code developing in CW v9.0 like the following (simplified) : static Boolean SatLogFormHandleEvent( EventPtr event ) { char *filename; char temp[5]; ... ... switch ( event->eType ) ... ... case ctlSelectEvent: filename=0; filename=NULL; filename=""; ... /* put the year, month, day, hour, minute, second after *filename using StrCat*/ ... StrCat(filename,temp); ... /*the complete filename*/ } When I debug my code with CW v9.0 IDE, the first selection of this event has no problem, a right filename is displayed in the debug window of CW and a label in a form. However, the second selection of the same event has a problem as follow: the line: filename=0;CW debug window shows filename is a "invalid pointer " , which is right. the line: filename=NULL; CW debug window shows filename is a "invalid pointer " , which is right. the line: filename=""; CW debug window shows filename is the same as the complete filename of previous file, which is wrong, and *filename= '0' (it was *filename='/' in the first run) Why the second run of the above event restores the same filename of the first run even after reinitialization? Would it be the problem of using StrCat() or handling and freeing memory of pointer? Or, would it be a bug of CW v9? Anyone knows why and how to fix this problem. Many thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
images
Hi, I want to read a image from file and draw it on my screen, but I don't get the documentation on how this is done. :( I've raed about Database and bitmaps, but I don't understand how thoose function is going to display my image ? I have an image that's called test.bmp how do I show this on my screen ? Please help me, I know that this question is quite easy for them who have done this so please give me some advise :) \Anders R-N -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
5-way navigation SDK
Hi group, Is there any place I can find usefull information about handling 5-way navigation? Also is there any emulator/simulator that supports it? Thanks! George VS ([EMAIL PROTECTED]) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: unsigned = sign ???
thx but what should I do to change type? UInt16 intVal_16; UInt32 intVal_32; intVal_16 = 6; intVal_32 = intVal_16; abort_int("%u", intVal_32); //the value is not correct "Markus Dresch" <[EMAIL PROTECTED]> ¦b¶l¥ó news:[EMAIL PROTECTED] ¤¤¼¶¼g ... > you are sending msg "%d". %d or %i are signed integers. use %u for unsigned > integers. > > markus dresch (www.palmside.com) > > > "KEN" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > > well I thought UInt16 should be ranged from 0 to 65535, but when I use CW > to > > test, it seems not the case. It seems that UInt16 is equal to Int16 which > > is -32767 to 32767, why? > > > > I use the following codes to test > > > > #define abort_int(msg, int) { \ > > char outStr2[128]; \ > > StrPrintF(outStr2, msg, int); \ > > ErrDisplayFileLineMsg(__FILE__, __LINE__,outStr2); \ > > } > > > > UInt16 intVal; > > > > intVal = 6; > > abort_int("%d", intVal);// the value shown is -5536 which is wrong > > > > > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: unsigned = sign ???
you are sending msg "%d". %d or %i are signed integers. use %u for unsigned integers. markus dresch (www.palmside.com) "KEN" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > well I thought UInt16 should be ranged from 0 to 65535, but when I use CW to > test, it seems not the case. It seems that UInt16 is equal to Int16 which > is -32767 to 32767, why? > > I use the following codes to test > > #define abort_int(msg, int) { \ > char outStr2[128]; \ > StrPrintF(outStr2, msg, int); \ > ErrDisplayFileLineMsg(__FILE__, __LINE__,outStr2); \ > } > > UInt16 intVal; > > intVal = 6; > abort_int("%d", intVal);// the value shown is -5536 which is wrong > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
unsigned = sign ???
well I thought UInt16 should be ranged from 0 to 65535, but when I use CW to test, it seems not the case. It seems that UInt16 is equal to Int16 which is -32767 to 32767, why? I use the following codes to test #define abort_int(msg, int) { \ char outStr2[128]; \ StrPrintF(outStr2, msg, int); \ ErrDisplayFileLineMsg(__FILE__, __LINE__,outStr2); \ } UInt16 intVal; intVal = 6; abort_int("%d", intVal);// the value shown is -5536 which is wrong -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Link Error: Main.c: 'AppHandleEvent' 16 bit code reference to 'SecondFormHandleEvent' is out of range
> Am I approaching a size limit (this 64K limit I hear about, I have only been > programming in Codewarrior for the last 2 months), > or is it a different problem? Yes, you have to make your project a multi-segment app. Horst -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Detecting a tap on the note icon
Hi, Could someone please tell me how to detect a tap on the note icon in a table entry set to be text with a a note? Many thanks Karl -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/