Unable to delete shared lib

2003-11-17 Thread Tucker, Jay
I have an app that consists of two files: MyApp.prc, which contains all the code and resources for the GUI, and MySharedLib.prc, which is a library of non-GUI-related functions used by the app. The two .prc files have different Creator ID's, so they appear separately in the list on the Palm Info

MemoryMgr.c, Line: 3650, non-word-aligned handle

2003-10-31 Thread Tucker, Jay
I'm observing a very bizarre problem. Perhaps somebody else has encountered it and can offer advice. I have a small function in a shared lib that looks something like this: void f( void ) { BigStruct* structP = MemPtrNew(sizeof(BigStruct)); // code SetFields(structP); // more code

Re: MemoryMgr.c, Line: 3650, non-word-aligned handle

2003-10-31 Thread Tucker, Jay
Ted, Good point. Yes, someField is itself a pointer. BigStruct looks like this: typedef struct { UInt8 someField[LOTS_OF_BYTES]; UInt8 anotherField[EVEN_MORE_BYTES]; // and so on } BigStruct; The variable data in my example is also a pointer to an array of bytes. That said, any more

Re: MemoryMgr.c, Line: 3650, non-word-aligned handle

2003-10-31 Thread Tucker, Jay
Blake wrote: The other potential problem is that under PalmOS 5, all memory accesses need to be 4-byte aligned, whereas under PalmOS 4, they only needed to be 2-byte aligned. So if one of your someField structures occurs at a 2-byte boundry, but not a 4-byte boundry you could get this problem.

programmatically changing help string

2003-08-18 Thread Tucker, Jay
Is there a way to programmatically change a help string resource? Here's my scenario: I have an alert defined in PilRC like this: ALERT ID MyAlert CONFIRMATION HELPID MyDefaultHelpString BEGIN TITLE My Title MESSAGE A message ^1 containing ^2 wildcards ^3. BUTTONS OK Cancel END

duplicate ID's in PilRC file

2003-07-11 Thread Tucker, Jay
I'm using the PilRC Designer 2.0.6.0 provided with CW 9.0 to create my app's MyApp.rcp and MyAppRsc.h files. The actual ID numbers in the .h file are generated automatically by PilRC Designer. (I'm also doing a little direct editing of the source files in a text editor.) Looking through the file,

multiple files in PilRC

2003-07-10 Thread Tucker, Jay
I'm using CW 9.0 and am running into a problem with my resource files. I'd like to have a separate resource file for all my strings. There are two reasons for this: (1) It makes it easy to quickly create foreign languages of the app, and (b) I can hand the file to a doc writer so that s/he can

deleting db in POSE

2003-04-03 Thread Tucker, Jay
OK, I'm confused. Can anybody explain to me what I'm seeing or why I'm seeing it? Here's what I've been doing: First, I created a small application (let's call it MyApp) that creates and uses a small database (let's call it MyDB). I run the app on POSE, shut it down, click the Home button, then

debugging shared libs in CodeWarior v9

2003-03-13 Thread Tucker, Jay
Hi all, Sorry if I'm asking a question that's already been answered. I've searched through the CodeWarrior online docs and the Knowledge Base and forums on Palmsource.com, but couldn't find the answer that I'm looking for, so I'll try asking it here. I'm using CodeWarrior v9 to develop apps for

Re: debugging shared libs in CodeWarrior v9

2003-03-13 Thread Tucker, Jay
Jay wrote: Now, what I'd also like to be able to do is to put a breakpoint in the source of my client app, explicitly start up my client app in the debugger, and when I hit the breakpoint in the client source, I'd like to be able to step through the client source and then into the source code of