October 29, 2025, 01:10:47 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Clock Example not working

Started by Andy, May 30, 2014, 01:47:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Andy

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!
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library