Home > Archive > SQL Anywhere ultralite > April 2005 > Crashes in debug mode but not release









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Crashes in debug mode but not release
Timothy Dean

2005-04-11, 8:24 pm

Xref: number1.nntp.dca.giganews.com sybase.public.sqlanywhere.ultralite:5114

Ultralite component 9.0.1.1752 Pocket PC

I have an issue when running in debug mode, the program will "crash" with
either the "data misalignment" or "access violation" errors. When I run it
in release, everthing seems fine. The other odd thing is that the place it
crashes in debug mode seems random. Sometimes if I execute a line with
"F10", it will throw the exception. If I hit "F5" or "F11" and step through
that way it won't crash at all, or it will crash in a different place. If I
change some source code, recompile, and run again, it will crash in a
different spot. It seems like the executable file or maybe a library that I
am linking in is corrupt or misaligned when generating a debug build. Is
this possible? Has anyone seen anything similar? Thanks.

Timothy Dean
MobileDataforce


Tom Slee

2005-04-12, 1:23 pm

Which component are you using? C++ Component or .NET or AppForge?

Tom Slee
iAnywhere Solutions product management.

Timothy Dean wrote:
> Ultralite component 9.0.1.1752 Pocket PC
>
> I have an issue when running in debug mode, the program will "crash" with
> either the "data misalignment" or "access violation" errors. When I run it
> in release, everthing seems fine. The other odd thing is that the place it
> crashes in debug mode seems random. Sometimes if I execute a line with
> "F10", it will throw the exception. If I hit "F5" or "F11" and step through
> that way it won't crash at all, or it will crash in a different place. If I
> change some source code, recompile, and run again, it will crash in a
> different spot. It seems like the executable file or maybe a library that I
> am linking in is corrupt or misaligned when generating a debug build. Is
> this possible? Has anyone seen anything similar? Thanks.
>
> Timothy Dean
> MobileDataforce
>
>

Timothy Dean

2005-04-12, 8:23 pm

I am using the C++ Component (UltraLite). I have also upgraded to 9.0.2
build 2451

Timothy Dean
MobileDataforce

"Tom Slee" <tom.slee@sybase.com> wrote in message
news:425C15E5.9060005@sybase.com...[color=darkred]
> Which component are you using? C++ Component or .NET or AppForge?
>
> Tom Slee
> iAnywhere Solutions product management.
>
> Timothy Dean wrote:
with[color=darkred]
it[color=darkred]
it[color=darkred]
through[color=darkre
d]
If I[color=darkred]
that I[color=darkred]
Is[color=darkred]


Tim McClements

2005-04-25, 1:23 pm

It is certainly possible to have bugs in only production or only debug
builds, depending on the nature of the bug. You might try disabling parts of
your program to isolate which code might be causing the problem. Also be
wary of debug-only code, like that in assert calls. You might try working
with an NT version to see what happens there. If you make your NT app
UNICODE (like CE) it should be very similar to the CE one -- except note
that CE chips often require more alignment than an x86. For example, on NT
an int pointer could have an odd address and still work fine, but on an ARM
chip, an int pointer must be a multiple of four. (Are you using alloca? It
doesn't always return properly aligned pointers on ARM.)

- Tim

"Timothy Dean" <tim. dean@mobiledataforce
.com> wrote in message
news:425c2e86$1@foru
ms-2-dub...
>I am using the C++ Component (UltraLite). I have also upgraded to 9.0.2
> build 2451
>
> Timothy Dean
> MobileDataforce
>
> "Tom Slee" <tom.slee@sybase.com> wrote in message
> news:425C15E5.9060005@sybase.com...
> with
> it
> it
> through
> If I
> that I
> Is
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com