IonicWind Software

IWBasic => General Questions => Topic started by: Andy on May 30, 2014, 01:47:51 AM

Title: Clock Example not working
Post by: Andy on May 30, 2014, 01:47:51 AM
Hi,

Sorry to bother again but I was looking at the clock example.

I think I can modify this for a project I'm working on at the moment but the program
freezes in IWB.

It compiles ok, no errors, but then freezes.

It compiles and runs ok in EB.

Does anyone have the same problem as I do?

Thanks,
Andy.
Title: Re: Clock Example not working
Post by: LarryMc on May 30, 2014, 08:16:49 AM
duplicated your problem - clock example works fine when compile with EBasic; crashes when compiled with IWB.

digging into it reveals the following:
to make clock hands rotate requires that SetDrawMode to be called with @TRANSROTOZOOM flag (as it is)
problem in IWB occurs only in that mode and @ROTOZOOM mode

Crash is occurring when the DrawSpriteXY command is called.
more specifically when the internal command to render the sprite for either of the above mentioned modes.
by commenting out the relative internal command there is no crash but there is also no rendering of the clock hands.

Since, as best I can tell, the dx libs are the same between the two (EB and IWB) I think the problem is in the IWB compiler.

That is something that LarryS will have to look into.

Also, not knowing enough about 2D, DX, and such I have no idea if there is some sort of work-around.

Sorry I can't help.
Title: Re: Clock Example not working
Post by: Andy on May 30, 2014, 10:30:52 PM
Hi Larry,

Thanks for looking in to that for me.

We will have to wait for LarryS to have a look at it, but I guess it's probably not
high on the priority list.

But thanks for trying!
:)
Title: Re: Clock Example not working
Post by: LarryMc on May 31, 2014, 08:51:47 AM
Andy,
If you care to tell me exactly what you are wanting to build I may be able to offer you some different ways of accomplishing it.