[comp.sys.amiga.tech] OpenScreen sometimes freezes?!

hbrinch@icoast.UUCP (Henrik Brinch) (12/08/90)

I've made a program which is about 250Kb in ASM, the program is not made
on hardware-level with that I mean, I do everything in the proper Commodore
suggested way!  Anyway, I discovered that some times my program just froze.
I narrowed the problem to a line where i called OpenScreen().  The screen-
structure is PERFECT (and cannot be changed in ANY way during program run!)
and the problem is, that sometimes it works PERFECTLY other times it just
freezes.  Usually it worked after power on, but if you dragged the WB
screen up and down and then left it on its initial position and THEN
started my program it DIDN'T return from OpenScreen().
As far as I know, if there were ANY errors, it would return from the
OpenScreen() with the value zero in d0, but as you can understand the fact
is IT DOESN'T return at all.... this is REALLY weird?!

 Best Regards,

--
InfoCoast          /\_  Henrik Brinch \ cbmehq!cbmdeo!icoast!hbrinch
Technologies /\   /   \ Kloevervej 7   \ FidoNet 2:230/112.3
____________/  \_/     \ 2800 Lyngby    \ Tel. +45 42 87 6723
           /               Denmark       \ "C is SILVER - But ASM is GOLD"

ben@epmooch.UUCP (Rev. Ben A. Mesander) (12/08/90)

>In article <hbrinch.0060@icoast.UUCP> hbrinch@icoast.UUCP (Henrik Brinch) writes:

[openscreen sometimes locks up]

>Usually it worked after power on, but if you dragged the WB
>screen up and down and then left it on its initial position and THEN
>started my program it DIDN'T return from OpenScreen().
>As far as I know, if there were ANY errors, it would return from the
>OpenScreen() with the value zero in d0, but as you can understand the fact
>is IT DOESN'T return at all.... this is REALLY weird?!

Are you using WB 1.3? 

I had problems with some programs that opened custom screens locking up if
I flipped or moved the screens up and down. I especially had problems with
the VLT terminal emulator - I thought it was buggy, but then I read about
a bug in the Intuition (or whatever.. Graphics?) MakeVPort routine. There's
a little 16 or so byte patch I use in my Startup-Sequence and I've never
had the problem again.

I'm not sure that's the problem this fellow is having... anyone else know
more about this?

>InfoCoast          /\_  Henrik Brinch \ cbmehq!cbmdeo!icoast!hbrinch
--
| ben@epmooch.UUCP   (Ben Mesander)       | "Cash is more important than |
| ben%servalan.UUCP@uokmax.ecn.uoknor.edu |  your mother." - Al Shugart, |
| !chinet!uokmax!servalan!epmooch!ben     |  CEO, Seagate Technologies   |