Re: Debug app works, Release doesn't

2005-01-10 Thread Chris Tutty
From: Curtis Cameron [EMAIL PROTECTED] The suggestion to turn on all compiler warnings was the one that did the trick to solve the original problem, though. ... (snip) ... I think the compiler warning that really solved the problem was when it found two times in MainFormHandleEvent() when I

Re: Debug app works, Release doesn't

2005-01-10 Thread Keith Rollin
On Jan 9, 2005, at 9:26 PM, Curtis Cameron wrote: ...I think the compiler warning that really solved the problem was when it found two times in MainFormHandleEvent() when I simply used return instead of return handled. I was surprised to learn that you have to enable all warnings to see

Re: Debug app works, Release doesn't

2005-01-10 Thread Logan Shaw
Chris Tutty wrote: All compilers have this sort of issue, however - the example that always amazed me was that Visual Studio (prior to .NET) treated an assignment within an if statement as a level four warning and, by default, only reported up to level three (or the other way around).

Re: Debug app works, Release doesn't

2005-01-09 Thread Curtis Cameron
Thanks to those who offered help about my problem. I took care of the problem of the warning by declaring s to be const char * and that fixed the warning. The suggestion to turn on all compiler warnings was the one that did the trick to solve the original problem, though. Besides for having

Re: Debug app works, Release doesn't

2005-01-07 Thread Roger Stringer
Subject: Re: Debug app works, Release doesn't From: Chris Tutty [EMAIL PROTECTED] Date: Fri, 7 Jan 2005 15:23:11 +1300 From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem

Re: Debug app works, Release doesn't

2005-01-07 Thread Robert Moynihan
Roger Stringer wrote: Subject: Re: Debug app works, Release doesn't From: Chris Tutty [EMAIL PROTECTED] Date: Fri, 7 Jan 2005 15:23:11 +1300 From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might

Re: Debug app works, Release doesn't

2005-01-07 Thread Chris Tutty
From: Roger Stringer [EMAIL PROTECTED] From: Chris Tutty [EMAIL PROTECTED] From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem that you are asking about. How on

Re: Debug app works, Release doesn't

2005-01-06 Thread Curtis
Chris Tutty wrote: Often this is a sign of memory corruption, unitialised pointers, use of freed memory, etc. Thanks for the inputs. I've checked over my code, and I use pointers minimally. I normally declare strings as arrays (with dimensions), not just pointers, but there is one case that

Re: Debug app works, Release doesn't

2005-01-06 Thread Robert Moynihan
Try... (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem that you are asking about. Bob. Curtis wrote: Chris Tutty wrote: Often this is a sign of memory corruption, unitialised pointers, use of freed memory, etc.

Re: Debug app works, Release doesn't

2005-01-06 Thread Curtis
Oops, my mistake - that statement doesn't cause another value to change. Since the Global Variables list in my debugger is off by two bytes, I mis-translated and was looking at the wrong variable. That statement seems to work OK, but still the question remains about the warning. Also, is it OK

Re: Debug app works, Release doesn't

2005-01-06 Thread Chris Tutty
From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem that you are asking about. How on earth is this going to make any difference? Aside from the questionable approach of

Re: Debug app works, Release doesn't

2005-01-06 Thread Chris Tutty
From: Curtis [EMAIL PROTECTED] Chris Tutty wrote: Often this is a sign of memory corruption, unitialised pointers, use of freed memory, etc. (snip) I have a string pointer declared as char *s, then use it like this: s = CtlGetLabel(GetObjectPtr(ReadyButton)); This has always given me

Re: Debug app works, Release doesn't

2005-01-06 Thread Robert Moynihan
Chris Tutty wrote: From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem that you are asking about. How on earth is this going to make any difference? Aside from the

RE: Debug app works, Release doesn't

2005-01-06 Thread Jeffry Loucks
Forum Subject: Re: Debug app works, Release doesn't Chris Tutty wrote: From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel(GetObjectPtr(ReadyButton)); ... that might get rid of your error message, but might not solve the problem that you are asking about. How on earth

Re: Debug app works, Release doesn't

2005-01-06 Thread Robert Moynihan
] Mobile 253-691-8812 -Original Message- From: Robert Moynihan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 06, 2005 7:14 PM To: Palm Developer Forum Subject: Re: Debug app works, Release doesn't Chris Tutty wrote: From: Robert Moynihan [EMAIL PROTECTED] (char*) s = CtlGetLabel

Re: Debug app works, Release doesn't

2005-01-06 Thread Chris Tutty
From: Robert Moynihan [EMAIL PROTECTED] Chris Tutty wrote: How on earth is this going to make any difference? Aside from the questionable approach of trying to eliminate a warning rather than fix the underlying problem, how would casting a variable defined as char * to char * change

Debug app works, Release doesn't

2005-01-05 Thread Curtis
What kind of things could cause my 68K app (developed w/ PODS 1.1, multi-section) to run fine when compiled as Debug, but not as Release? Thanks to others in this forum, I've carefully put all my function prototypes in one .h file, with the annotations for which section that function is in. I

Re: Debug app works, Release doesn't

2005-01-05 Thread Krzysztof Kowalczyk
Often a problem is uninitialized variables. For example, a simple buggy program: Char buf[20]; StrCat(buf, hello); This piece of code sometimes work, sometimes doesn't. buf contains undefined characters. If buf[0] happens to be 0, this code will work. If it happens to be non-zero, it won't. It

Re: Debug app works, Release doesn't

2005-01-05 Thread Chris Tutty
From: Curtis [EMAIL PROTECTED] What kind of things could cause my 68K app (developed w/ PODS 1.1, multi-section) to run fine when compiled as Debug, but not as Release? Often this is a sign of memory corruption, unitialised pointers, use of freed memory, etc. These problems can be masked