IonicWind Software

Aurora Compiler => General Discussion => Topic started by: ExMember001 on August 17, 2006, 07:06:32 PM

Title: debugging
Post by: ExMember001 on August 17, 2006, 07:06:32 PM
Hi,
is there an easyer way than commenting some lines to debug a program that compile but crash at start
i've verify every api declare, because that was the last thing i had done before the crash occur and it seems all ok, it didnt return any inapropriate call
so it must be ok but its does'nt work just keep crashing

what i need to know is how to use the debug feature properly on this case.
Title: Re: debugging
Post by: Ionic Wind Support Team on August 17, 2006, 07:28:41 PM
Build a debug executable, the select build->debug->go.

When it crashes the context display window will show you the line it is crashing on.
Title: Re: debugging
Post by: ExMember001 on August 17, 2006, 07:41:58 PM
thanks! found it :)
seems my getsysusername is not working
now i've to found why ...
Title: Re: debugging
Post by: ExMember001 on August 17, 2006, 07:50:25 PM
getusername now working :)
thanx again!!
Title: Re: debugging
Post by: ExMember001 on August 17, 2006, 08:00:03 PM
is a windows type BYTE same in Aurora?
Title: Re: debugging
Post by: Ionic Wind Support Team on August 17, 2006, 08:07:20 PM
Windows doesn't have 'types'.  If you mean is the C type BYTE the same as Aurora then yes it is.
Title: Re: debugging
Post by: ExMember001 on August 17, 2006, 08:13:38 PM
sorry still learning ;)
yes thats what i mean..
Title: Re: debugging
Post by: Parker on August 17, 2006, 09:57:56 PM
They're typedefs. BYTE is well, a byte, which is equivalent to C's char type, or Aurora's byte.
Title: Re: debugging
Post by: Kale on August 18, 2006, 02:40:25 AM
Quote from: Parker on August 17, 2006, 09:57:56 PM
They're typedefs. BYTE is well, a byte, which is equivalent to C's char type, or Aurora's byte.

I did actually notice that when i was coverting all the C types to Aurora that some compilers treat the char type as either signed or unsigned. Some compilers even have switches to determine at compile time how the char type is specified. So an Aurora byte might not necessarily be equal to a C char.
Title: Re: debugging
Post by: Parker on August 18, 2006, 04:13:12 PM
It's always the same size, just not always the same sign. The ANSI standard doesn't state whether types should default to signed or unsigned, so you can use those two modifiers if you need to be sure. In Aurora everything defaults to signed, so only the unsigned modifier exists.