CtlNewControl textbuffer damaged of others under PalmOS 3.5 de ezdbg.rom

2003-06-27 Thread Werner Poschenrieder
Hi, I sequentially created a number of controls using CtlNewControl with labels A to Z: CtlNewControl(ppFrm, wIdCtl, pushButtonCtl, rtcBuf, Rect.topLeft.x, Rect.topLeft.y, Rect.extent.x,

Can I not generate a UniqueID from within a Conduit?

2003-01-29 Thread Werner Poschenrieder
Hi, The SyncWriteRec Doc says.. • You can overwrite an existing record by specifying its record ID. • You can add a new record by supplying 0 as the record ID. Note that the application on the handheld is responsible for assigning new record IDs. does it really mean there is no way to assign a

Re: RTTI and CDK ( typeid() ) ?

2002-08-14 Thread Werner Poschenrieder
Metrowerks compiler seems to support RTTI on PalmOS (Targeting PalmOS doc). However I do not succeed in compiling the typeid function: There is an error, which says: snap What runtime library are you linking with? The RTTI support functions are only included in the MSL Palm OS

app preferences - please help - only 4 bytes stored

2002-08-12 Thread Werner Poschenrieder
PalmOS 3.3 Hi everyone, please help me understand why I can only store 4 bytes in the app preferences. My preference _pPrefs is a pointer to a structure of type //=== typedef struct { UInt32 dwRecordId; Char tcLandCode; } AppPreferenceType;

RTTI and CDK ( typeid() ) ?

2002-08-12 Thread Werner Poschenrieder
Metrowerks compiler seems to support RTTI on PalmOS (Targeting PalmOS doc). However I do not succeed in compiling the typeid function: There is an error, which says: Error: undefined identifier ::std::typeinfo ( typeinfo is the return value of typeid ). RTTI is enabled within the compiler

Re: RTTI and CDK ( typeid() ) ?

2002-08-12 Thread Werner Poschenrieder
I mean SDK of course, sorry -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

PrefSetAppPreferences - pref part missing

2002-08-09 Thread Werner Poschenrieder
PalmOS 3.3 Hi, My preference _pPrefs is a pointer to a structure of type //=== typedef struct { UInt32 dwRecordId; Char tcLandCode; } AppPreferenceType; //=== allocated with operator new. It is stored as an app pref into

Can one set a form's position at runtime?

2002-08-01 Thread Werner Poschenrieder
Hi, can one set a form's position at runtime? It was suggested earlier by Sasha Avanesov to get the WinPtr and set the windows position using =. This is probably not really supported, is it? Thank you -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: How to get info about hd 0 in gdb

2002-08-01 Thread Werner Poschenrieder
hd 0 is a console command of the palm debugger (look into Dev_Tools_Guide.pdf) and makes a dump list of the heap's chunks which includes the owner ids. I haven't used it yet, but I already had a look at, because I received the same message. You can also use your emulator and set logging options,

Re: FONTS

2002-07-10 Thread Werner Poschenrieder
Look for an app which is named AsciiChart: It shows all fonts, all signs, all codes. You can alternatively look for the font definition enumerations in the header files which have speaking names. Regards Werner George Bassili schrieb: Hi everyone, is there a way to look at whats in a font

SysKeyboardDialog(kbdAlpha) and unlocked chunk

2002-07-10 Thread Werner Poschenrieder
Hi, does anyone know why the following code leads to an unlocked chunk message? FldGetTextPtr actually requires unlocking (the lock count in the lock:owner byte is 1 after retrieval). CharPtr ptcReleaseMe = FldGetTextPtr( (FieldPtr)::GetObjectPtr(_wFieldId) ); if (!ptcReleaseMe ||

can record-ids take any UInt32 value?

2002-06-14 Thread Werner Poschenrieder
Can record-ids take any UInt32 value? Is 0 ever used? Thanks. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: can record-ids take any UInt32 value?

2002-06-14 Thread Werner Poschenrieder
This was the fastest answer I ever received in any discussion forum. (2 minutes). I like this one really (and I should have read the doc more intensively). Thank you! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: How to disable a window?

2002-06-13 Thread Werner Poschenrieder
, but areas on the bg win with same relative position do the buttons' job). WinDisableWindow was an elegant and well working solution for that, but the way you recommended works very fine as well. Thanks. -- Keith Rollin schrieb: At 10:18 AM +0200 5/27/02, Werner Poschenrieder wrote: WinDisableWindow

Re: overflowing the stack after DmNewRecord

2002-06-12 Thread Werner Poschenrieder
I had better done the encapsulation actually: It works. Now I understand what's happened. This was great :-) :-) help. Thank you. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Table Control

2002-06-12 Thread Werner Poschenrieder
In Constructor create a table. Watch the table attributes: Select the entry Column Widths there. In the Constuctor menu select 'Edit' and 'Add column width'. You get an additional column width i.e. a new column. Adjust the widths of the previous single column and the new column :-). Werner

Re: overflowing the stack after DmNewRecord

2002-06-11 Thread Werner Poschenrieder
I observed Register A7, which is the stack pointer. The stack overflow occurs within an object member function, which does subsequent and identical calls to other member functions: MemSet(AusRec, sizeof(AusRec), 0); StrCopy(AusRec.rtcText, SomeText1); PositionSetLost(); RecordInsert();

overflowing the stack after DmNewRecord

2002-06-10 Thread Werner Poschenrieder
There is a close to overflowing the stack after DmNewRecord(_PalmDatabase, uiPos, ulSize); in my application where uiPos == 80 and ulSize == 40. The stack view within the debugger does not indicate any recursion. DmNewRecord is called from a function about three levels higher, which makes an

Re: Where is the Palm Debugger?

2002-05-29 Thread Werner Poschenrieder
http://www.palmos.com/cgi-bin/sdk40.cgi download sdk40-tools.zip PalmDebugger.exe -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

cancel 87110@palm-dev-forum

2002-05-27 Thread Werner Poschenrieder
This message was cancelled from within Mozilla. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How to disable a window?

2002-05-27 Thread Werner Poschenrieder
WinDisableWindow is now reserved for system use only. If I want to disable a window, how can I do it? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Where is the Palm Debugger?

2002-05-27 Thread Werner Poschenrieder
mhmm.. I've been looking for the Palm Debugger in the SDK but couldn't see it. What's the name of the .exe? Keith Rollin schrieb: At 5:29 PM +0200 5/24/02, Werner Poschenrieder wrote: I was looking for the Palm Debugger at palmos.com. While I could find the docs, the debugger seems

Form.c, Line:4374, NULL form

2002-05-27 Thread Werner Poschenrieder
Form.c, Line:4374, NULL form appears after about 20 gremlin events in my app and does not seem to be reproducable when I subsequently repeat the actions, the gremlin had done. What does the message mean? Which are the most frequent mistakes, which can produce this error? Thanks -- For

Re: Records left locked in closed unprotected DB only with CW Debugger???

2002-05-24 Thread Werner Poschenrieder
It even occurs when I put return errNone; immediately at the entry of PilotMain. I am using some ressources. Could this have to do with wrong implementation of ressource databases at programming time? Werner Poschenrieder schrieb: There is a mysterious records left locked in closed unprotected

Re: Records left locked in closed unprotected DB only with CW Debugger???

2002-05-24 Thread Werner Poschenrieder
It even occurs then, when I make a pilot main only project without ressources. It is certainly not of much relevance. Werner Poschenrieder schrieb: It even occurs when I put return errNone; immediately at the entry of PilotMain. I am using some ressources. Could this have to do with wrong

Re: 3.5 debug rom error - Records left locked in closed unprotected DB.

2002-05-24 Thread Werner Poschenrieder
Its a 4.0.1. I think your suggestion is exactly the point: When I made a PilotMain only app without any ressources attached the same thing happened. Ben Combee schrieb: In article 87017@palm-dev-forum, [EMAIL PROTECTED] says... I've got the same! And only when the CW Debugger runs. Did you

WinDisableWindow :-(

2002-05-24 Thread Werner Poschenrieder
I have used WinDisableWindow, because at the time I did so it was not prohibited to do, and this function was documented like any other. When I tested my app on a 3.5 debug rom , I was told that WinDisableWindow was for system use only. Indeed, the recent doc doesn't name it anymore. Ok. What

Where is the Palm Debugger?

2002-05-24 Thread Werner Poschenrieder
I was looking for the Palm Debugger at palmos.com. While I could find the docs, the debugger seems not to be available for download. True? Thanks, Werner -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Gremlins launch wrong Apps

2002-05-23 Thread Werner Poschenrieder
Hi, When I start a gremlin hord with my app chosen as the only app to launch, other apps are launched as well. I neither want to debug AddressDB nor Memo. How can I keep those Gremlins from launching other apps than mine? -- For information on using the Palm Developer Forums, or to

Re: Simulator uninstallable on NT4?

2002-05-23 Thread Werner Poschenrieder
I have been searching for DR9. Any idea where it is still available? Thanks anyway! Ben Combee schrieb: In article 86396@palm-dev-forum, [EMAIL PROTECTED] says... The simulator published at the PalmSource forum calls GetLongPathnameA in Kernel32.dll. This Entry does not exist in

Re: Gremlins launch wrong Apps

2002-05-23 Thread Werner Poschenrieder
The answer was simple: There was an abort button within my app, so the gremlin left the app but worked on as before and pressed anything it could find. Werner Poschenrieder schrieb: Hi, When I start a gremlin hord with my app chosen as the only app to launch, other apps are launched as well

Re: 3.5 debug rom error - Records left locked in closed unprotected DB.

2002-05-23 Thread Werner Poschenrieder
I've got the same! And only when the CW Debugger runs. Did you find the answer meanwhile? Thank you, Cheers Werner Ayers Family Member schrieb: I created a new emulation session without any databases. I start the debugger in CodeWarrior, then I tap the Home icon to leave the app. The error

Records left locked in closed unprotected DB only with CW Debugger???

2002-05-23 Thread Werner Poschenrieder
There is a mysterious records left locked in closed unprotected DB2 when I run my app in a session with the CW debugger on a 3.5 debug rom. The first one occurs, when the debugger has not even stopped at the initial breakpoint of pilot main (huh?) The second occurs, when the program stops. A

Simulator uninstallable on NT4?

2002-05-16 Thread Werner Poschenrieder
The simulator published at the PalmSource forum calls GetLongPathnameA in Kernel32.dll. This Entry does not exist in Kernel32.dll prior to Win2000. Is there an update version to the simulator where this call is replaced? Cheers Werner -- For information on using the Palm Developer Forums, or

Re: DmSeekRecordInCategory - skips, why?

2002-03-27 Thread Werner Poschenrieder
Forget it - the code is ok, i made some stupid nonsense somewhere else. Werner Poschenrieder schrieb: Hi, I used the following code to always walk to the NEXT record in a given Category and I am certain id did work. uiCat = CategoryFind(_PalmDatabase, pcCat); uiIdx

DmSeekRecordInCategory - skips, why?

2002-03-25 Thread Werner Poschenrieder
Hi, I used the following code to always walk to the NEXT record in a given Category and I am certain id did work. uiCat = CategoryFind(_PalmDatabase, pcCat); uiIdx = (UInt)_Position; error = DmSeekRecordInCategory(_PalmDatabase, uiIdx, 0, dmSeekForward, uiCat);

Re: No more access to ControlType.attr (woohooo..)

2002-03-20 Thread Werner Poschenrieder
Is it technically possible at all to trick out the mechanism which checks access permission to certain memory areas by using an asm {}? Chris DiPierro schrieb: Gah! That'd almost certainly break on OS/5 on an ARM device. Werner Poschenrieder [EMAIL PROTECTED] wrote in message news:79289

Re: No more access to ControlType.attr (woohooo..)

2002-03-08 Thread Werner Poschenrieder
Woohoo.. but ..sniff.. couldn't one actually hack that by writing an asm { } and copy to the atts member with a 68x command (within a separate own interface of course)? (Harhar) Terry Dennis schrieb: Welcome to the club of frustrated noFrame users ... I faked it out. Create the button as a

No more access to ControlType.attr (woohooo..)

2002-03-07 Thread Werner Poschenrieder
I had a button control created dynamically with CtlNewControl under PalmOS V3.3. I wanted it without frame. There was no API function to access ControlType.attr.frame but it was permitted to access attr.frame directly: pUp-attr.frame = noButtonFrame; Under V3.51 the access to ControlType.attr is

Re: PrefGetAppPreferences beginner's question

2002-03-01 Thread Werner Poschenrieder
has its backup bit set, the other of which doesn't. -bob (former yfi exchange student nach Deutschland) mckenzie, palmsource pdx. -Original Message- From: Werner Poschenrieder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 9:19 AM To: Palm Developer Forum Subject: Re

PrefGetAppPreferences beginner's question

2002-02-27 Thread Werner Poschenrieder
Hi, According to the API manual PrefGetAppPreferences with last argument saved = true retrieves the current Preferences.. hm.. what what is meant by current Preferences. I understood, that preferences are saved in a resource db (hence there are saved ones), and I can retrieve them from

Re: PrefGetAppPreferences beginner's question

2002-02-27 Thread Werner Poschenrieder
So when I use PrefSetAppPreferences with true, the prefs data will be stored in the Preferences and have some property backup to the desktop. When I use it with false, they will be stored with some property no backup. Correct? When I use PrefGetAppPreferences with true, it will use a version

Re: converting numbers to strings and back

2001-09-18 Thread Werner Poschenrieder
StrAtoI(CharPtr str); Siegbert Glodek schrieb: Hello all, I'm new in C and have to convert numbers from number format to string and back. Reason : I work with Sybase-UltraLite on a database that stores some numerical values (with decimals, not integers). I read the values as numerical

Re: I hate to say I told you so but..

2001-09-12 Thread Werner Poschenrieder
Hm - which is the OS of these full color cell phones? Michael S. Davis schrieb: I told you so (Palm). Over a year ago, I said that Palm would have to bend to market demands for Color, sound and other features offered by the PocketPC. Many of the palm supporters and some employees of Palm

cancel 61532@palm-dev-forum

2001-09-05 Thread Werner Poschenrieder
This message was cancelled from within Mozilla. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Multiple databases

2001-09-05 Thread Werner Poschenrieder
Hello Todd, I am new to Palm as well actually, and I have not yet used lists as Popup Lists. Whatsoever, here are two possible approaches I might try for the List object: 1 Building the list 1.1 Approach one (see PalmOS doc for details) 1.1.1 Load your DB-Records into an array of text strings,

Re: Multiple databases

2001-09-04 Thread Werner Poschenrieder
You can create multiple databases with DmCreateDatabase, which takes the CreatorId and the DatabaseName (and ..) as arguments. You can search them with DmFindDatabase, which takes the DatabaseName (and ..) as argument and returns the ***DatabaseId***. You may open them with DmOpenDatabase then,

popupTriggerTableItem - LEFT JUSTIFIED ?

2001-09-03 Thread Werner Poschenrieder
Could someone please tell me, how to make a popupTriggerTableItem left justified? I would prefer this, since the item text is always situated right to the popup arrow (well - or could one get the text to the left)? Thanks a lot -- For information on using the Palm Developer Forums, or to

Re: C++ this - pointer gone lost

2001-08-28 Thread Werner Poschenrieder
Please post some real code, the above isn't C++. Ar .. yes it ain't really .. here is the real code .. thank you .. // This is Member1 (protected) Boolean CTableForm::HandleTableEvent(const EventPtr pEvent) MemHandle hRecMem; RectanglePtr pR; switch (pEvent-eType) { case

Re: C++ this - pointer gone lost

2001-08-28 Thread Werner Poschenrieder
Hello James, watch below.. James Nicholls schrieb: Hi, In C++, every member function has an implicit initial argument that takes the value of this. In your case, Member1 actually has two arguments of MyObject* this and EventPtr pEvent. When you write myObject-Member1(pEvent), the compiler

Re: C++ this - pointer gone lost

2001-08-28 Thread Werner Poschenrieder
.. You are perfectly right. Thank you all so much and sorry.. Thomas Maeder schrieb: Werner Poschenrieder wrote: // This is Member2 (private) void CTableForm::HighlightSelection() { RectanglePtr pR; TblGetItemBounds(_pVisTable, _nLineNumber, 0, pR

Selected item in table: Highlight disappears

2001-08-27 Thread Werner Poschenrieder
I am new to programming tables. The OS I am using is Palm OS 3.5, ROM image is IIIe. When I initialize my table, I select the initial item with TblSelectItem(). When I touch another item with the pen and lift it again, I can see the following in the debugger: TblHandleEvent is called through

Re: I am new at this

2001-08-27 Thread Werner Poschenrieder
Hi, From my own experience.. when you download the PalmOS SDK, it includes stationery, which again includes a starter app framework. There is also a very goog tutorial in 20 steps. Start with chapter 1 of the tutorial, and do some reading into the Companion document to understand, what the

C++ this - pointer gone lost

2001-08-27 Thread Werner Poschenrieder
Code Warrior light V4.0.1, Target = PalmOS PalmOS 3.5 ROM-Image IIIe SysAppCmdNormalLaunch Situation: virtual protected MyObject::Member1( EventPtr pEvent ) { Member2( ); } private MyObject::Member2( void ) { // operate on some members and local vars }

Re: C++ this - pointer gone lost

2001-08-27 Thread Werner Poschenrieder
I was so in panic, that I forgot to say Hi. And thank you in advance. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Lists - itemNum has strange type in ListDrawDataFuncType

2001-08-17 Thread Werner Poschenrieder
Well, the whole thing is not too serious anyway: I made a type cast UInt-Int16 of my database record position. This is actually not so concerning, because I will hardly try to show more than 32767 records in my list. Still I try to understand why you used an Int16 for the list position, which

Debugger POSE - no start after download

2001-08-17 Thread Werner Poschenrieder
Dear reader, Could you please help: === Whithin a debug session in metro's ide I downloaded an application to POSE. The download progress window indicates download to 100% but the app doesn't start: There is no more response from the ide The messages window of the debugger is at

Re: Debugger POSE - no start after download

2001-08-17 Thread Werner Poschenrieder
Thank you Richard, I've checked the launch code, it really is sysAppLaunchCmdNormalLaunch. I am not using any other launch code in my app yet. I can give some further details: Indeed the address of an object is assigned to a global pointer (to make access easier - it's a database's table).

Re: GCC Compile error with SDK 3.5

2001-08-16 Thread Werner Poschenrieder
Hm... MemHandleLock returns VoidPtr. I assume that RecPointer is CharPtr, so you should explicitly cast the result: RecPointer = (CharPtr)MemHandleLock(RecHandle); name[i] = RecPointer[i+offset]; if(RecPointer[i+2] == '\n') { If I do remember that correctly, void pointers cannot be casted

Lists - itemNum has strange type in ListDrawDataFuncType

2001-08-16 Thread Werner Poschenrieder
The callback function for drawing a list's lines (see LstSetDrawFunction) is defined in the handbook of SDK 3.5 as void ListDrawDataFuncType (UInt itemNum, RectanglePtr bounds, CharPtr *itemsText). When I define a callback function of that type in SDK 3.5, the compiler will complain, that

Re: Form.c 3696 no event Handler, sys0502

2001-08-14 Thread Werner Poschenrieder
Thank you! Just a few additional minor questions.. (1) What is the additional information I can get from the debugger, when I am using a flash ROM device? Why does it make a difference? (2) This is a very good idea, but I do not handle SyncNotify explicitly: My app does nothing but return

Re: ARM

2001-08-14 Thread Werner Poschenrieder
Florent Pillet schrieb: on 24/07/01 17:37, Ralph Krausse at [EMAIL PROTECTED] wrote: Does anyone know any information on what Palm and Metrowerks will do for us when they port to an ARM processor? Do we have to get a totally new complier or would this be an upgrade? Any guesses?

cancel 57878@palm-dev-forum

2001-07-28 Thread Werner Poschenrieder
This message was cancelled from within Mozilla. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Address Book Integration

2001-07-27 Thread Werner Poschenrieder
Hi, The chunk which you receive by DmGetRecord from the AddressDB-Table includes an AddrPackedDBRecord. You will find this probably in file AddressDB.h in the examples folder of your PalmOS SDK. The complete structure of the chunk's data is 1st) the AddrPackedDBRecord, which does not comprise

Form.c 3696 no event Handler, sys0502

2001-07-27 Thread Werner Poschenrieder
Sometimes, after a HotSync, the device (OS3.3) presents a message, which says: Form.c 3696 no Event Handler. Subsequently the message exception sys0502 pops up. This is not always happening, and I could not tell you when, and when not it does happen. The exception sys0502 is SysErrParamErr.

cancel 57740@palm-dev-forum

2001-07-26 Thread Werner Poschenrieder
This message was cancelled from within Mozilla. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Fatal exception by ErrThrow???

2001-07-26 Thread Werner Poschenrieder
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)0x200 | 18 ); if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)dmErrInvalidCategory ); causes a fatal exception on the device and on the emulator. The StrCompare part is ok: No unallocated pointers, no leaks a.s.o.. On the emulator the

Re: AdressDB-Interface?

2001-07-26 Thread Werner Poschenrieder
Thank you Brian, sounds fairly reasonable. If Palm would really change the structure, I do believe they would also provide an interface: Still one can e.g. run a 16bit WinApp on a Win2000 or WinME, and I should think, that palm will provide a similar flexibility to its own platforms: On a

Re: FrmAlert within frmClose

2001-07-26 Thread Werner Poschenrieder
Could you also check the conditions and call FormAlert before calling FrmGotoForm? Alessandro Zummo schrieb: In a form of mine, i need to check some conditions within a frmClose event (typically enqueued by a FrmGotoForm() ) If those conditions are not met, i need to warn the user

Why Fatal: ErrThrow( (long)dmErrInvalidCategory );

2001-07-25 Thread Werner Poschenrieder
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)dmErrInvalidCategory ); or the equivalent if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)0x200 | 18 ); causes a fatal exception on the device and on the emulator ..0xA3cc..neither RAM..nor ROM.. (honestly not the StrCompare part).

Re: --- The registry key BDWM is not defined --- :-(

2001-07-25 Thread Werner Poschenrieder
I think I had this too. Reinstalled CW. Worked again. Dave Lippincott schrieb: Searching the Knowledge Base with the key BDWM returns... http://oasis.palm.com/dev/kb/faq/1790.cfm Does that help? - Original Message - From: Essell [EMAIL PROTECTED] Newsgroups: palm-dev-forum To:

AdressDB-Interface?

2001-07-20 Thread Werner Poschenrieder
The AddressDB structure is Open Source, so anyone knows about it and can access the AddressDB from his own application. That's fine, as long as the Address App programmers do not change their data structures. Do the Address App programmers provide an API-Interface to the AddressDB, which