SD card woes
Hi all, I am experiencing problems with the TE2 and SD-cards. When an application writes too many files into a directory the directory may get corrupted. This happens e.g. with many 512MB cards when say 200 files with 1K of text each are written with VFSFileOpen/-Write/-Close. Suddenly the directory shows dozens of garbage entries like ñ7y+õÅ■.Nà 271614 KB 27.03.2074 23:45 ÛZT.Ûý,.Öbj 3776489 KB07.08.1993 01:48 -4=--.l./'Directory It seems the VFS layer or the corresponding FS-lib play havoc with the directory. Alas I cannot ask the user to format those SD cards out in the field. I need to gracefully repair them by removing/deleting those 'fragments' or by deleting the directory that was corrupted. Unfortunatley the VFS/FSLib functions cannot delete those entries because the file names are invalid. Neither can I delete the corrupt directory because it is not emtpy. Any ideas on how to get rid of this garbage without formatting the entire card? Thanks Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Recovering PDBs from NVRAM in a dead T5
Hi Luc, if he is lucky it is not the mainboard causing the white screen. In say 50% of white screen cases we are able to resurrect the device with the following steps: 1. take out the battery (it is solded on the T5) 1.1 reconnect and try to boot with the same battery 1.2 try to boot with another fully charged battery (don't ask me why but I have seen E2s turning white with one battery and running perfectly with another) 2. try to boot with annother LCD module, taken from a TX or T5 (remove battery during operation!) 3. inspect the mainboard for corrosion with a magnifing glass (battery removed!). If you find some, carefully brush off the crystals with a glass fibre brush and some electronics cleaner. Good luck! Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: SCOOP: New GarnetOS (PalmOS) Handhelds Coming From Aceeca!
Benjamin is right, the digitizers built in from 2007 on are of lousy quality. It's probably the indium tin oxide coating that is of poor quality. I could pick a few hundreds of bad digis from our bin and send them to you ... I doubt you can fix a whole in the ITO surfacing with a better driver because the behaviour is non-linear (i.e. chaotic)... Harry -- You are kidding right? They tend to drift and then you go back and forth and back and forth hitting the target area after a hard reset. The only solution is to send it away for repair or replace the unit entirely. If you got a way to make them work right again with out doing so; please, by all means, share with the rest of us. Benjamin Dmitry Grinberg wrote: What's wrong with the E2 and TX digitizers? The OS driver for them sucks, digitizers themselves are just fine... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: SCOOP: New GarnetOS (PalmOS) Handhelds Coming From Aceeca!
If that's not too late, don't hesitate to suggest HVGA to Aceeca. And do away with a permanent Graffiti area. Luc Le Blanc http://www.speleo.qc.ca/Auriga +1 QVGA would be a clear no-go for me. I spent so much over the years on graphical UI improvement using kCoordinatesNative for 320x320. Redoing that for QVGA would be just too much effort. I am in the middle of the transition to Android anyway. Well, its Java, but at the end of the day you get things done much faster. Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
RE: Classic emulator interface on Palm Pre
My 2 cents of wisdom on the digitizers: In my company we replace several dozens of them per day. And if we look at the manufacturing date we find that 90% of defect digitizers date from Q3/2007 till August 2008 (end of production). Just today I saw a device from early 2008 that was RMA-ed in late 2008, got a new digitizer from Palm and now is sent back to us to get its 3rd one! On the other hand we get devices from 2005/2006 that just need a new battery with the digi being still 100% accurate. To me Palm have become more and more negligent on quality management in the last years of Tungsten/Zire production. That had cost them a lot of goodwill in our customer base. Initially our customers viewed Palm PDAs high quality, durable goods (in fact many of them had bought a Palm V, M515 e.a. before and those were still working after 3-5 years). As of today I still see demand for a EUR 150/USD 200 PDA that does not carry the additional cost and functionality overhead of a phone. However the global volume is certainly way too low to justify new development for a listed company like Palm. Hadn't they continuously shot themself in the foot (and they did so on any occasion, HW- and SW-wise) they might still be milking a small but profitable cash-cow. Harry Or you could import replacement digitizers from China, and fit them instead. That is much cheaper than PowerDigi, even for a 480 x 320 display. -Original Message- From: Dmitry Grinberg [mailto:dmitr...@gmail.com] Sent: 17 May 2009 18:56 To: Palm Developer Forum Subject: Re: Classic emulator interface on Palm Pre Or you could install PowerDiGi on them, which will make them align 100% of the time, and is both much cheaper than Janam and cheaper than a new device... Best Regards, Dmitry Grinberg (847) 226 9295 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Random crash in Armlet via PCENativeCall
I finally started armlet-pogramming ;-) and run into what probably is a beginners problem. The following small armlet randomly produces a Fat/Ex when called with PceNativeCall: /*** ARMLET CODE / #include PalmOS.h #include PceNativeCall.h #include ByteOrderUtils.h // parameters for the armlet typedef struct { UInt8* buff; UInt32 buffSize; UInt8 a; UInt8 b; } myParmType; UInt32 ARMlet_Main( const void *emulStateP, myParmType*, Call68KFuncType* ); UInt32 ARMlet_Main( const void *emulStateP, myParmType *parm, Call68KFuncType *call68KFuncP ) { UInt8 *p, *pEnd, a, b; p = (UInt8*) Read68KUnaligned32( (parm-buff) ); pEnd = p + Read68KUnaligned32( (parm-buffSize) ); a = parm-a; b = parm-b; do some computation on the buffer } return 0; } ** I am pretty sure the computation on the buffer data is ok because I use the identical code in 68K on the simulator without any problem. Anlignment of the parameter 'parm' doesn't matter: the docs say the parameter for the armlet needn't be aligned. I also checked that putting 'parm' on a 1,2 or 3 byte boundary does not cause a crash. Thanks in advance Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
a new handheld platform?
Hey guys, while we bemoan the end of PalmOS and eagerly await the arrival of DGOS we should have a look at this one: www.zii.com - an inexpensive handheld (not a phone) - a hardware platform that seems to surpass the iPod-touch - two (!) unproven but promising OS options - all relevant media libraries and codecs Is this what we wanted Palm to be? What do you guys think of this? Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Rare crash on an E2
Hey guys, my E2s show a very rare crash. When calling SysGetROMToken (0, sysROMTokenSnum, (UInt8**) ROMToken, len) my app throws a Fatal Exception. This happens on only 50% of my devices (or even less). And on those devices the call works fine for the first 1,000 - 10,000 times before it bombs. Any ideas what's going on? Thanks Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Rare crash on an E2
The ROM serial is not lost. I can still retrieve it on those devices after the normal reset that follows the Fat/Ex. My gut feeling is that it is related to the NAND flash. Maybe some funny wearing off of memory cells that produces read/write errors? It seems also, that devices that just had a hard-reset do not produce this error or maybe they produce it just later. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Notification on screen tap for restoring screen brightness after auto-dimming
Try sysNotifyEventDequeuedEvent But watch out - you might end up consuming more power through the CPU than you save through the dimmed LCD. Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Graphics issue
Can it be that you are pasting 24 bit graphics? This would result in a significant color reduction: from 8 bit resolution in Photoshop down to 5 (red, blue) and 6 (green) in Constructor. Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Bogus Invalid Index error
Hi! In my current project I'm using almost the same code without any problems. form.c, line 2172, invalid index Sounds as if FrmGetObjectIndex were returning -1 (frmInvalidObjectId) FrmSetGadgetHandler(frmP,FrmGetObjectIndex(frmP,ToolbarGadget) (void*)toolbarGadgetHandler); Anyone have any ideas? Un-nest the function calls, then check: 1. is FrmGetObjectIndex returning sth. reasonable? 2. is frmP valid (use FrmValidatePtr) ? 3. if frmP is valid, does it refer to right form? If all this does not help. What device/simulator do you experience the crash on? Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Any known bugs in TimGetSeconds() or TimSecondsToDateTime()?
Hi all, I have seen this on my client's devices quite a few times - and it turned out to be a hardware or user problem, most notably on NVFS devices. Case a) the battery goes completely empty (user does not recharge in time). Once the user puts the charger into the device, the OS returns from coma. However, the system clock remains at 0 secs == 1.1.1904, 0:00 -- it's obviously not backed up to NVFS Case b) the battery or some other part of the internal power supply chain interrupts or goes down in erratic and unpredictable ways -- replace battery or entire unit in this case The catch here is with the NVFS devices: user often do not realise that power outage has occurred at all. Hope this helps Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Unable to do on-device debugging on E2 with USB
Luc, regarding the soft reset: I tried on my config and seems the reset is not necessary to get the connection to work. However, I always have the check box on in DotDot2 for automatic console mode after soft resets. I checked the archive again and found the following - I remember that having being critical when I did USB debugging for the first time: Update the Codewarror version to 9.3. Go to Codewarrior website, First get 9.2 patch, update that first, then get 9.3 version update patch and Update your codewarrior to 9.3 then start your Debugging. It will work. [Note: Before update 9.3 ver. patch, You should update with 9.2 patch] Another question: can debug on other devices, say a Tungsten-E/T5/TX or a Treo? Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Unable to do on-device debugging on E2 with USB
Hi Luc, sorry to hear it still isn't working. So I checked again on my machine. Did I say, you should have only 1 copy of USBPort.dll on your machine. I actually have 3 (ahem ;-) ) C:\Programme\Metrowerks\CodeWarrior\Bin\USBPort.dll C:\Programme\palmOne\USBPort.dll C:\Programme\Sony Handheld\USBPort.dll And than there is a link to Ben's old site. I remember it helped me in getting my USB debugging going: http://www.palmoswerks.com/discuss/msgReader$146 And just to make sure, here is the sequence I try to abide by: 1. Launch CW 2. switch on device with USB connected to PC 3. launch DotDot2 on the device and do a soft reset 4. launch the debugger on CW Hotsysnc_mgr is running when i debug - it does not affect the connection. Try again and keep me posted about your results - if it's working on my machines we WILL get it working on yours as well! Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Cable for on-device debugging with Tungsten E2
Luc, why don't you just use the standard USB-2-universal-connector cable that comes with the E2? I've been doing on device debugging with CE 9.3. via USB for years. Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Cable for on-device debugging with Tungsten E2
Actually you can do USB-debugging even with the Tungsten-E (and a standard USB cable). However: make sure you have the latest USBPort.dll in the right directory, otherwise CW will simply say connection timeout or so. I have version 6.0.1.0 in my palmOne directory, i.e. NOT in the CW directories. Ben elaborated on this issue in one or two threads. Good luck with it! Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Form not displaying normally on Tungsten E2
Once you have on-device/USB debugging working you'll probably have it tracked down and fixed in 10 mins. ... -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: flushing the dbCache on the E2 - again
Allocate a lot of feature memory. You might start by allocating a really big block, then a smaller one, then a smaller one, and so on. Negative: I allocated all the ftr.mem available and freed it again - to no avail. This only works on newer NVFS devices. That seems to be the problem: the E2 runs OS 5.4.7 and probably the first NVFS implementation as I recall from a comment from Ben Combee. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
flushing the dbCache on the E2 - again
Hi all! after having gone through the entire NVFS/dbCache discussion of the past 3 years I am still stuck. I need to flush the dbCache programmatically but cannot get it to work on the Tungsten-E2. I try to allocate a large block of feature memory, but it doesn't affect the status of the cache at all. I've read about various approaches, but couldn't find anything concrete. If anybody has solved it, could he/she please post the complete code sequence? I'd be grateful! Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: WinPaintChars() causes weird crash on Tungsten-E
try void MyWinDrawChars(void* str,UInt16 len,Coord x,Coord y){ UInt32 op=WinSetDrawMode(winPaint); WinPaintChars((Char*)str,len,x,y); WinSetDrawMode(op); } does that crash too? if so, is it on the WinPaintChars call or one of the other calls? Hard to test: so far I have *personally* observed those error conditions b) and c) only one 1 device, that I got back from a tester. On the other hand, some 5 testers have reported case a) and b) after having used the application for a week or longer. But for 2 weeks now I have had simulators and 10 physical Tungsten-E devices running non-stop without being able to reproduce the error. However, I am still reluctant to dismiss this issue as a one-off. If some 5 devices crash, why don't at least few hundred others? Also the window you're drawing on is valid? yes, definitely Does adding a small delay after call to WinDrawChars help? see above - I can test this only over a course of 4 weeks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
WinPaintChars() causes weird crash on Tungsten-E
Hi all, I am testing the new version of a multi-segment app and observe very rare and erratic crashes in the following code: Char message[] = some text constant; UInt16 len = StrLen( message ); RectangleType rect; ... WinSetDrawMode( winOverlay ); ... WinDrawRectangleFrame( simpleFrame, rect ); WinPaintChars( message, len, rect.topLeft.x + (rect.extent.x - FntCharsWidth(message, len))/2, rect.topLeft.y + (rect.extent.y - FntLineHeight())/2 - 1 ); The WinPaintChars() statement draws some text in the middle of a rectangle and does so as expected for maybe a 100 times, sometimes a 10,000 times before behaving completely erratic in either of the 3 ways: a) freezing the device b) throwing a Fatal Exception c) just *erasing* little rectangles from the background instead of painting the characters (but no freeze or exception) I have checked with the debugger the validity of message, len and the surrounding rectangle (all drawing and painting done in kCoordinatesNative). From cases a) and b) I can infer that it is WinPaintChars() that bombs (as the frame is drawn but the text does not get painted before the device hangs). Once case c) occurs, it keeps reoccurring every time the code is executed, i.e. it becomes a stable state in this segment. If I switch to annother form in another segment, WinPaintChars() behaves as expected; switching back to the first segment with the code seen above produces case c) again. Finally, if I quit and re-launch the application, everything is fine again for the next 100 or 10,000 calls of the code. Weird, isn't it? Any ideas and hints to a fix or workaround will be highly appreciated! Harry I am using CW 9.3 on Win/XP -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Waking a Palm up in response to a notification
if not already solved, try this: after receiving control via the notification you schedule an alarm to power-up the system: AlmSetAlarm( curAppCard, curAppDBID, 1, timeOn, false ) with timeOn being now + 1 Sec. Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Launch calibration from an application in Palm OS 5.x
Hi! Two questions to check: 1. Are you calling the appropriate application? 2. Can you do SysUIAppSwitch() instead of SysAppLaunch()? This here works fine in my application (its only the basic scheme, add local vars. and other logic as necessary): //create the list of built-in panel functions if ( SysCreatePanelList( numPanels, memH ) ) panelList = MemHandleLock( memH ); // find the digitizer application for ( i=0; inumPanels; i++ ) if ( panelList[i].creator=='digi' ) { dbID = panelList[i].dbID; cardNo = panelList[i].cardNo; break; } // launch the digitizer SysUIAppSwitch( cardNo, dbID, sysAppLaunchCmdPanelCalledFromApp, NULL ); // switch back to your own app e.g. by registering for sysNotifyAppQuittingEvent -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Managing new blue focus ring
If you just want to suppress the focus ring try the following (works fine in my app). In the form event handler just swallow the event that gives the focus to the control: switch (eventP-eType) { case frmObjectFocusTakeEvent: return true; ... There is one exeption however. You cannot use this with fields, as those cannot be edited then. Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: prevent power down - sysNotifySleepRequestEvent
Try that instead: in your AppEventLoop() catch the following if ( event.data.keyDown.chr==vchrHardPower ) { do something else, e.g. skip the std. event handling or display an alert } I've done this in my app and it works. Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Memory Leak with FrmGotoForm?
yep, I have seen this before. Are you doing FrmEraseForm and FrmDeleteForm before switching to the new form? This is how I implement form transitions in general: -- fP = FrmGetActiveForm(); if ( fP ) { FrmEraseForm( fP ); FrmDeleteForm( fP ); } FrmGotoForm( formID ); -- Regards Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: preventing change to the palm clock / finding out the real time
This one's a lovely challenge! Here is a conceptual solution (no code). 1. Have your app schedule an alarm every 30 secs. (use AlmSetAlarm or AlmSetProcAlarm). Whenever your app. gets control via this alarm, it does two things: 1.1. compare TimGetSeconds() with a time stamp stored previously in step 1.2 (see below). If this delta is say 35 secs., you know the clock has been tampered with and reset is to the last time stamp + 15 secs. 1.2. if the check in 1.1. was ok, store the current system time at some reset-persistent place, e.g. a database record, an application preference. The nice thing is, even is the device is off (sleep mode), your app. will get the alarm and it can process it within a few cycles and without switching on the display - so the user won't notice this routine check. The impact on the power consumption of the device should be tolerable. If a user resets the device and changes the clock you just undo this change in a simple and effective way. The final question is, how long was the device in reset mode before your app regained control, i.e. how big is the delta between your stored timestamp and the actual time? Hint: the reset will set the SystemTicks back to 0; now if we take the currently elapsed ticks TimGetTicks()/TimTicksPerSecond() we have a good proxy for the actual time difference. What do you think? Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to REALLY recalibrate the digitizer
Hi all! from time to time I need to recalibrate the digitizer from within my app. Unfortunately I cannot determine how to make the functions PenResetCalibration() and PenCalibrate() work properly. In principle, I take three pen-taps at top left, middle and bottom-right locations just like the built in welcome app. and then call PenCalibrate() -- so much for the theory. BUT: If I call PenResetCalibration() before that on a SONY Clie, the entire device hangs or makes the digitizer just plain dead -- the device does not accept any pen input. If I just call PenCalibrate() without a previous PenResetCalibration() it works fine on SONY clies and Palm Tungstens -- but only for the moment. If I quit the app or soft-reset the device, the entire calibration is skrewed up with screen and digitizer coordinates deviating wildly. As if the previous calibration were not stored properly. Does anybody know how those functions have to be applied, or how the logic of the built-in calibrator app. works? Maybe our esteemed insider Ben? Thank a lot! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: how to suppress the focus ring for 5way navigation?
Sorry, FrmSetNavState() does not work, no matter if I call it before or after FrmDrawForm() and no matter what flags I set. How do you do it in PODS? I have not made the switch from CW yet... -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: how to suppress the focus ring?
Finally found a way to get rid of it by simply swallowing the event that draws the focus ring. Add this into the form handler: switch (eventP-eType) { case frmObjectFocusTakeEvent: return true; } It should be noted that all the functions and FrmNavXXX and all official manipulations of the form navigation order structures etc. did not lead to anything. It would have been nice, if there were a proper way of accomplishing this. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
how to suppress the focus ring?
Hi, on the Tungsten-E2 I want to suppress the focus ring that comes along with the 5-way navigation. Which of the FrmNav... functions is appropriate and when should it be called? FrmNavRemoveFocusRing() does not seem to work at all. FrmGlueNavRemoveFocusRing() seems to be missing from the library, as my linker says it is not there (I am using CodeWarrior 9.3). Removing the Usable flag from the controls, as suggested earlier in another thread, is not an option. Thanks in advance Harry -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: FrmGotoForm / FrmReturnToForm(0)
Having gone through the same problems mit FrmPopupForm/FrmGotoForm and freePtr errors, I confirm Benoits analysis: Do either of the two: 1. FrmGotoForm + FormGotoForm if you have complex forms with controls, event loops etc. 2. FrmPopupForm + FrmReturnToForm(0) if you have simple forms with an OK button only and no need for an event loop Better not mix the two. This works savely at least in my app. Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Seeking API to fill a non-rectangular area
If speed is the main issue I would propose sth. more trivial and thus probably more speedy: You know the 4 coordinates of your trapezoid as (x,y) coords. You know the max. height h and the max. width w. To fill the area, you just call h times WinDrawLine( x1, y, x2, y++ ) and paint the area from, say top to bottom. You just increment y with each iteration. The only things you have to calculate here are the x1 and x2 coordinates for each line. But this should be no more than 2*h float operations, so even this should be accomplished in less than 1/100 of a sec. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: How to draw low density bmp on high density display?
How about this: - BitmapTypeV3*bmP3=NULL; BitmapType *bmP=NULL; WinSetCoordinateSystem( kCoordinatesNative ); bmP3 = BmpCreateBitmapV3( bmP, kDensityDouble, BmpGetBits( bmP ), NULL ); WinDrawBitmap( (BitmapPtr) bmP3, x, y ); WinSetCoordinateSystem( kCoordinatesStandard ); - This code pieces work in my app as follows: bmp is a standard bitmap, of any dimension, or, say 320x320. It is converted into a V3 bitmap and then draw on the screen. One bitmap pix is one screen pix then -- I assume that is what you need. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: detecting warm reset
I am not quite sure I understand your requirements, but maybe two helpful hints: 1. register your app. for system reset with SysNotifyRegister: every warm reset will go through your application 2. check TimGetTicks(): this counter is reset to 0 upon every reset. Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: SD Card slot
Try this: when you receive the notification you simply preempt the OS by setting the application switching as already handled. In StarterPalmMain: switch (cmd) { case sysAppLaunchCmdNotify: if ( notifyP-notifyType==sysNotifyVolumeMountedEvent ) notifyP-handled = vfsHandledUIAppSwitch | vfsHandledStartPrc; break; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Free JPG decoder
I've been dealing with my own 'JPEG problem' for weeks. There isn't much in store. All free JPEG-libs I know require a separate load install. On top of that, they are too slow for most applications (5-10 secs. to decompress a 320*320 jpeg). You may want to check out two armlet solutions, both of which can be found @ http://flippinbits.com/twiki/bin/view/Main/DevelopmentToolsList 1. jpegArmlets by Matthew Fleming: free but undocumented and somewhat clumsy 2. jpeg decompression lib by Konstantin Klytskin: commercial product, costs $$$, but well documented, straightforward to use and absolutely robust You link the armlets into one .prc with your final app. Furthermore, its much faster (0.5 secs. to decompress a 320*320 jpeg on a Palm Tungsten E) I bought #2 and so far I am quite happy with it. Hope this helps Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Catching the arrow-up reset - how to?
I need to catch the arrow-up reset in order to protect my app. from user manipulation. Using the notification manager does not work as the reset launch code is not sent by the OS. I know there must be a way because the utility 'OnlyMe' does catch the arrow-up reset. Any hints will be greatly appreciated. Tx Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tungsten E Native App Data Structure
Does anyone know what the Contacts and Calendar data structures are, or how to find out? We are trying to read and write the data with a Conduit. Harry Cantrell -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
AW: Treeview in Palm-OS???
Thx all for answering, now i hope that one of these trees will work fine... 1000 thx to you all Bye Harry -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von miches Gesendet: Samstag, 1. November 2003 13:21 An: Palm Developer Forum Betreff: Re: Treeview in Palm-OS??? Hi Barry, Check this out too, app got cool icons. http://www.handango.com/PlatformProductDetail.jsp?productType=2jid=FF51FF8E E67FCAF1944DX852D4CEAFADplatformId=1siteId=1productId=82572sectionId=195 catalog=1topSectionId=195 Thanks, Miches Palm Developer Forum [EMAIL PROTECTED] wrote: Have a look at http://www.palmgear.com/software/showsoftware.cfm?prodid=52412 nice looking tree view HS Hi all, HS how can i use a tree-view or a tree-control in PALM OS? HS Is it possible or must i develop a tree-view for myself? HS Thx for answering HS Bye HS Harry -- 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
AW: Treeview in Palm-OS???
SUPER!!! It works!!! Kow i have to check up if its free or not... THX for the super solutions! -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Albert J. Franklin Gesendet: Samstag, 1. November 2003 15:40 An: Palm Developer Forum Betreff: Re: Treeview in Palm-OS??? Harry, There is sample treeview code on the VFDIDE (http://www.vfdide.com) site. Al - Original Message - From: Harry Schuster [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Friday, October 31, 2003 11:58 AM Subject: Treeview in Palm-OS??? Hi all, how can i use a tree-view or a tree-control in PALM OS? Is it possible or must i develop a tree-view for myself? Thx for answering Bye Harry -- 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Treeview in Palm-OS???
Hi all, how can i use a tree-view or a tree-control in PALM OS? Is it possible or must i develop a tree-view for myself? Thx for answering Bye Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Treeview in Palm-OS???
Thx for your answers, but i am using GCC (PRC-Tools) and pilrcedit is there a possibility to use it with this combination ? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Matthew Henry Gesendet: Freitag, 31. Oktober 2003 18:07 An: Palm Developer Forum Betreff: Re: Treeview in Palm-OS??? how can i use a tree-view or a tree-control in PALM OS? Is it possible or must i develop a tree-view for myself? get POL. http://www.aqpoint.com/pol/default.htm Comes with codewarrior 9. -- 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/
IR print NEC Superscript
I have an NEC superscript 1800 with the Irda interface. Any suggestions on how to print to it? Anybody have any good resources on writing printer drivers? Thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Database Search with Packed Records
I have read some of the posts regarding fast database searches. I am wondering how fast search would be done with packed records, since I was told and learned that record storage should be used with packed records. However, I am not sure about how to do sorting with null terminated strings. Here is an example of my structs: struct{ int iD; char * Text[]; }packedProduct; struct{ int ID; char* SKU; char* UPC; }Product; Thanks All! Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: IR Printing
Hey Guys I found that the symbol sdk Supports printing, and I was playing around with the Postscript and it seems to work without any sort of printer driver. Fortunately I am only printing text right now, don't know what is going to happy with Graphics though :o Harry Harry Yeh [EMAIL PROTECTED] wrote in message news:79378@palm-dev-forum... I am interested in adding printing to my application but I notice there is not much out there regarding how to write an app to add IR printing. Could anybody point me to some resources? I know about all the 3rd party addons to develop for but for me this is more of a personal interest. I know i probably have to write a driver (using canon bjc50). Thanks! Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Palm OS 5.0 Simulator and Old Serial Manager
Speaking of vocabulary ... ... My bad! :oP Every time I read that, it makes me think of a small child who's just spilled something :-). In my dictionary, bad is an adjective, not a noun. It must be an Americanism ... however, it has made it across the Pacific, because I see this usage on Australian mailing lists these days, too. Harry (pedant) O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Generic Data Structures
Is it possible to create a generic data structure so that when you add more columns to a record, you don't have to keep rewriting all the functions associated with the struct? Here is my example: struct { Int16 ID; *Char Name; }Product if I needed to add 1 more type or more, I always have to redifne my struct and procedures, conduits etc. { Int16 ID; *Char Name; *Char Description; } I am wondering what techniques you can use to create generic structures without having to rewrite all you structs and functions conduits. Any examples or advice would be greatly appreciated. Thanks! Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: IR Printing
You guys are awesome, thanks for all the quick responses. Harry Harry Yeh [EMAIL PROTECTED] wrote in message news:79378@palm-dev-forum... I am interested in adding printing to my application but I notice there is not much out there regarding how to write an app to add IR printing. Could anybody point me to some resources? I know about all the 3rd party addons to develop for but for me this is more of a personal interest. I know i probably have to write a driver (using canon bjc50). Thanks! Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
IR Printing
I am interested in adding printing to my application but I notice there is not much out there regarding how to write an app to add IR printing. Could anybody point me to some resources? I know about all the 3rd party addons to develop for but for me this is more of a personal interest. I know i probably have to write a driver (using canon bjc50). Thanks! Harry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Sample Hack code for prc-tools
Hi, I have a couple of hacks out there that don't work properly on non-monochrome devices, because I was a naughty boy a few years ago ... and, yes, I know, the current methods of writing hacks won't be supported in OS 5.0. Now that I've come back into Palm coding, I figured it was about time I cleaned them up. I'm using prc-tools on Linux, so can anyone point me at some sample source code that implements a hack using that environment? I found one called PLZ, but the comments are in German, which I don't speak, sadly. While I feel it would be good for my soul to get out a Deutsche-English dictionary, I'd like to make faster progress :-). TIA. Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
A quick question .. I hope!
Does someone have a short snippet of code that pops up an alert box as a notification that allows the user to cancel, but that disappears once the work it's alerting the user to has competed. I'm thinking of something similar to the pop-ups that appear when the network code is dialling your ISP. It says nice things like Dialling xyz, then something like Authenticating etc. Thanks in advance, H. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Serial error
I'm trying to talk to a Magellan GPS sled for the Palm Vx. My load of the serial library works OK and my initialisation of the port (serDefaultSettings + 4800 baud) succeeds ... ie, they return zero. However, when I attempt to read from the port, via SerReceive10(), I get an error code of 774. According to errorcode.prc, this means ... serLineErr (Serial: line error(0x0306)) Can someone suggest what kinds of things could cause this error code to be returned? Any ideas on how to go about debugging it? I realise I'm using the old serial manager library. I'm happy to move to the new one if this problem is inherently to do with using the old one, but if not, I'd prefer to stick with this code, rather than having to write and debug some new code. I've used this code successfully to talk to the Palm sitting in its cradle, by copying /dev/tty into the appropriate serial port device (yes, I'm on Linux). TIA. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: POSE 3.4 memory leak question
What I don't understand is: 2) How can Poser tell this is a leak if the app hasn't ended? i.e. How does it know this is a leak as opposed to memory that I'm not finished using? I can't answer the other questions, but imagine if you had code like ... char *fred; fred = MemPtrNew(100); fred = MemPtrNew(100); One can tell this is a leak, even at runtime, because the only reference you had to the first allocated memory was fred. If you update fred to point somewhere else, it's obvious that there's no way you can ever get access to the original 100 bytes again. That said, I have no idea how Poser keeps track of stuff. I'm just pointing out that it's certainly possible to know at runtime if something like this is happening. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: POSE 3.4 memory leak question
Hi Harry, I don't want to get into a big discussion about this, especially since I'm definitely no expert on the subject, but ... Thanks for the response. I agree that in a simple case like this it might be possible to detect a leak although I'm skeptical that Poser does this. In general, however, this type of determination is not possible. For example, consider fred = MemPtrNew(100); SomeFunc(fred); fred = MemPrtrNew(100); Is it still a leak? If the memory management in Poser is done by reference counting, then memory accesses in the code of SomeFunc() would also be subject to the same reference counting. Hence, if SomeFunc() didn't assign fred to some other (non-stack) variable, then the reference count would be 1 when it was called and still 1 when it returned, so Poser could catch the memory leak. Similarly, if SomeFunc() HAD assigned it to some other variable then the reference count would be greater than one, hence Poser could tell that the second assignment in the above code still left one reference to the 100 bytes and was hence not a leak. As I say, I have no idea what scheme Poser uses to detect leaks, but this kind of approach can certainly do it. H. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: POSE 3.4
On Sat, 16 Feb 2002 02:00, you wrote: For those who haven't noticed yet POSE 3.4 (for MAC and Windoze) has been posted on the PalmOS dev site (http://www.palmos.com/dev). I was somewhat perturbed to find there was no Linux version. I hope that it's just lagging behind and Palm haven't decided not to support Linux any longer. Since I'm a Linux only shop here, that would mean I'd have to buy a new machine just to be able to use the emulator, which would be sad. I'd have to get the Occupational Health and Safety people to erect a fence round it, so noone hurts themself :-). Seriously, though, I read something about a hands-up that was held at PalmSource where it appeared that only a very small percentage of people (less than 10%, if memory servers) use Linux for their PalmOS development, so I would understand if Palm decided not to put as much effort into the emulator for that platform. I don't think I'd be overly fussed, so long as I can still build the app under Linux. Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: POSE 3.4
Unix sources are available for download. OK, I must be going blind. I'll put my glasses on and have another look. Thanks. Quality and quantity don't always go hand in hand ;-) Ain't that the truth?! Problem is, my boss keeps telling me the money he pays me is really, really high quality ;-). Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: POSE 3.4
The thing that confused me was that link hasn't been updated; it still points to the source for 3.3. However, as you say, there is a link to 3.4 further down. My faith is restored :-). -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Interface library to Magellan GPS
Now that I have my networking code talking, I'm looking at the next stage of the development. I want to be able to interface with a Magellan GPS sled for the Palm V (although, the final version will be for the m505). I've looked at the Magellan site, but couldn't find any information about writing code to get at the current GPS data or the maps that are stored on the device. While I'm waiting for a response from them, I figured it wouldn't hurt to ask if anyone here has interfaced to it. If so, is there a standard library available, or does one need to read their interface spec and write one's own code. If the latter, is anyone willing to share their code ... or perhaps just any tips on developing for it? Thanks in advance, Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
NetLib in POSE
I just discovered that one can have POSE use the underlying OS's TCP/IP stack, which will save me a lot of messing around! However, when I try to run my app, the NetLibOpen() now fails, saying there are no interfaces. This is with the 3.5 ROM on Redhat Linux 7.2. Is there something I need to configure to make it work? Thanks in advance. Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: NetLib in POSE
However, when I try to run my app, the NetLibOpen() now fails, saying there are no interfaces. I should also point out that I'm displaying the ROM and NetLib versions from inside my app and they look OK ... OS 3.5 and NetLib 3.2. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
NetLib.h
I'm trying to start using NetLib, but I can't get anywhere because the sample source I found on the Palm web site says I need to #include NetLib.h, which doesn't seem to exist in my OS 4 SDK. Do I need to grab it from somewhere else? Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
NetLib Programming
Further to my previous question ... Taking a look at sys_socket.h, it seems to define a heap of macros that turn standard BSD style socket library calls into the appropriate equivalent NetLib calls. Palm presumably went to this amount of effort to allow code to be written and tested on *nix and ported to the Palm with little effort. So, is it considered the right approach to use those macros or the direct NetLib calls. I ask this because the one piece of example code that Palm provide in their code recipes area accesses NetLib directly, which makes me wonder why they would do that. Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: NetLib.h
Hi Steve, As far as I know, everything you need is included in PalmOS.h. Perhaps those instructions were for an older version of the SDK. Why not just try compiling the sample code and see what happens? Yeah. I eventually just removed the #include and everything compiled OK anyhow, so I'm over that bump. Taking a look at sys_socket.h, it seems to define a heap of macros that turn standard BSD style socket library calls into the appropriate equivalent NetLib calls. That's for the convenience of socket programmers. It gives them a familiar set of APIs. You don't need to use them. I don't. There is no _right_ approach. You can chose either set of functions. Since I've done socket programming on *nix before, it's nice to have those available. But I think I'll probably end up doing as you do, since the calls have extra parameters that could be useful to change to different values from those in the macros at some point. Since you're just getting started with this stuff, you might want to pick up a copy of Palm OS Web Applications. It has one long chapter on NetLib. The rest if mostly about INetLib. Another resource is Palm OS Network Programming Applications. It's alla bout NetLib. I've already asked my boss to order the latter, and I've just sent him an e-mail asking him to get the other one. Unfortunately, they'll take time to arrive. It costs an arm and a leg to get Amazon to ship them by fast courier service (around $40) and I've not seen either of those books in stores here. Presumably they're relatively new? One more question for you ... I was able to get everything to compile and ALMOST link. I linked in libNetSocket.a and that sorted all of the NetLib calls. I have some basic code that just finds the library, opens it in AppStart() and closes it in AppStop(). That's linking OK now, so I guess if it runs without falling in a heap I'll start writing some code to do an actual connection and send/receive some data !! By the way, I realise I'm being a bit of a wimp asking questions on here, but I find it much easier to get into things if I can see a complete working piece of code, rather than just the little snippets they tend to give you in the documentation. Thanks for the help. Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: NetLib.h
Palm OS Web Applications has been out 4-5 months. The other one is fairly new. OK. Maybe it's worth trying a more technical bookshop for Palm OS Web Applications. Thanks for the info. ... $40 is a _hefty_ tariff for shipping. I agree. I think that cost may cover the shipping of a couple of books, but that's what it cost for a fairly thin O'Reilly paperback a couple of weeks ago. I guess that's just the price I have to pay (well, my company does, anyway) for living in Oz. Unfortunately, there aren't a lot of good NetLib examples out that from what I've seen. Maybe I'll make the code I write while I'm learning available, to make it a little easier for the next person. Was there a question in there? :-) There was originally going to be, but I answered it myself before I sent the mail off; I just forgot to remove the reference :-). What I was having problems with was that the macros all use a *nix style errno variable, but when I linked my program that variable came up as an undefined reference. I just defined one in my own code and the link worked fine. I was just worried because I remember reading stuff about shared libraries having issues with global variables. I figure it's OK, though, since the program runs fine on the emulator. Good luck with your project. Thanks. By the way, you're the person who got me into Palm programming years ago, when you had an article on WorldTime (I think that was what it was called) in the magazine you used to publish. Up to that point, I thought the Pilot was a wonderful device, but had never realised that I could actually write new programs for it !! Cheers, Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: netLib
Are you successfully opening the library? If you're sure that's the case, what are you trying to do next? Maybe some code would be helpful. Yes. I've tried writing some BSD socket style code. It's failing somewhere, but it's so long since I did any Palm programming I can't remember how to display an alert pop-up, so I'm going to have to find some old code I can re-use, before I can work out which one of the calls is failing. I'm happy to carry on for a little while, now that I have enough information to actually write some code, but I'll probably come back with more questions once I work out what's going wrong. I really appreciate your willingness to help, because it's literally four or five years since I wrote any Palm code and I'm definitely feeling rusty !! Cheers, Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: NetLib.h
Boy, that seems like a _long_ time ago. Yes, it certainly does. ... The good news is that the Palm platform is still fun to write applications for. Yes. I've only been at it again for two days and I'm having more fun than I have done in a long time! The really nice thing is that someone's paying me to do it :-). H. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: netLib
I found some old code that displays an alert with some arbitrary text, including numeric data, so I'll be set as soon as I can work out what I need to put in the .rcp file for PilRC to create the custom alert. I'm going to go searching through the doco, but if someone can give me a quick example, that would save me some time. TIA Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: netLib
OK. I worked out how to do an alert in PilRC, so now I know it's the connect that's failing. It's ages since I wrote socket code at this level. I've been spoiled using languages like Java and Ruby where the libraries hide all these details ... as they should, IMHO. Anyway, here's the code I've written. The Palm is successfully connecting to the ISP and I have a PPP session established. So, I assume it's something to do with some of the paramaters I have here. In particular, I'm thinking the setup of the address may be wrong. The machine I'm connecting to doesn't have a real name that the outside world can see, so I've tried to hard code the IP address and probably screwed it up. The errno I see after the connect fails is 1476, if that gives anyone a clue. I'm going to have to work out how to convert that to something meaningful. As I say, it's a long time since I've done stuff at this level :-(. - static Err ConnectToServer() { Err err; struct sockaddr_in address; address.sin_family = AF_INET; address.sin_port = htons(PORT); /* ** Some slightly messy code to set up the server address, ** since my server doesn't have a real host name (at least, ** not that the Palm can see) ... */ address.sin_addr.S_un.S_un_b.s_b1 = 144; address.sin_addr.S_un.S_un_b.s_b2 = 132; address.sin_addr.S_un.S_un_b.s_b3 = 243; address.sin_addr.S_un.S_un_b.s_b4 = 208; MemSet(address.sin_zero, 0, 8); if (connect(masterSocket, (struct sockaddr_in *)(address.sin_addr), sizeof (struct sockaddr_in)) == -1) { SayInt(connect() to server failed, errno); masterSocket = -1; } return err; } -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: netLib
Sorry, that errno should have been 4617. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Generic TCP/IP Access
I'm designing an application that will talk via TCP/IP in a client/server style. I've done absolutely no TCP/IP stuff on Palm at all, so I'm going to sound pretty clueless initially, so bear with me. In the final version, I plan to use bluetooth to initiate a connection to an ISP via a mobile phone. However, since I don't have access to a bluetooth SDIO card yet, I figure it makes sense to make this work initially via infrared. I assume that the initialisation of the PPP(?) connection needs to be done differently for IR versus bluetooth, but that once the connection is established, the rest of the code will be able to do a connect() call without knowing what the underlying PPP is? Ie, whether I initiate the link via IR or bluetooth, I assume that either I get back some kind of descriptor that I can use to initiate the connect() call or that it's hidden from me altogether and simply doing a connect() will automatically use the current underlying interface? Can someone point me at an example piece of code that initiates a PPP session via IR to a mobile phone? Also, a sample piece of code that uses the Palm OS networking APIs to initiate some kind of simple connection would be great, too. Is there a general place I can do searches for this kind of stuff? Thanks in advance, Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Strange beavior of StrCopy
WARNING ... After attending the Palm Summit in Sydney today, I'm coming back to hacking Palm code after about four years away, so take what I say with a grain of salt :-). On Fri, 1 Feb 2002 01:37, you wrote: I'm debugging a shared library with CW 8.0: in a function there is this sequence: . memset(task, '\0', sizeof(DB_TASK)); StrCopy(task-dblog, nxdb.log); task-max_open_files = DEFOPENFILES; . task-dblog then stay null with no string inside. The width is 32 char Any hints Can you tell us the data type of task? Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Strange beavior of StrCopy
I knew I should have thought longer before asking that question !! I assume, from the memset() that it's a DB_TASK. Is that a standard type or something you've created? If the latter, then my original question stands. If it's a standard type then which header is it in? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Pilrc
I realise this may not be the right place to ask this question, but I posted it to the tools forum a while ago and there doesn't seem to be much activity over there, so I'm re-posting, since I figure someone here may easily know the answer ... - I've tried to build two different versions of pilrc with no success. I downloaded the latest (2.8), unzip-ed it, typed ./configure, which seemed to work OK. I then tried a make, but got a number of warnings about pasting of tokens not producing something useful, followed by an error. So, I grabbed 2.7b and did the same thing. I got less warnings, but still got a compilation error. I even went so far as to grab 2.5c, since the main Palm developer web site says 2.4 or above, but had similar problems. I'm becoming a little frustrated at this point. Is there an RPM of a working version somewhere? I'm running Redhat 7.2, if that helps anyone understand what's going wrong. Thanks in advance, Harry O. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Re: Concatenating strings
On Fri, 1 Feb 2002 10:55, you wrote: Hello, I am trying to concatenate some strings together but am having some problems. I declare a char Share[128] string, as this is used to hold text input from a text field entered by the user. I am trying to concatenate this string with another string of type char *Market which is just constant text, so that the resulting string holds firstly the contents of the Market string and then the contents of the Share string. I am using the StrCat function as follows: StrCat(Market, Share); I think you'll find the problem is that StrCat(a, b) appends b to a, not the other way around. Ie, you're trying to change the contents of Market. What you probably want to do is have another buffer, copy Market to it, then StrCat Share onto the end of it. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
Writing Hackmaster Hacks with CW6
Hi People, I upgraded to Code Warrior 6 recently, with the intention of cleaning up and enhancing my hacks. Up until now, I've been binary editing the .PRC files to get the system call numbers in there. However, I can't find anything in the CW6 help files explaining how to write hacks. Can anyone point me in the right direction? Thanks in advance, Harry O. Harry Ohlsen -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/