QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Dav on September 04, 2020, 12:19:35 pm

Title: Why does this program freeze when trying to exit?
Post by: Dav on September 04, 2020, 12:19:35 pm
Sometimes when I try to X out of this program it will stop and freeze and not close when I press the exit X.  I then have to use task manager to kill the program.  It happens just sometimes, not most of the time, but I am wondering why it happens at all.  Any clues?  I'm using QB64-GL 1.4 32-bit on Windows 7 on a t430 thinkpad.  Thanks.

- Dav

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(600, 600, 32)
  2.  
  3. w = _WIDTH / 2: h = _HEIGHT / 2
  4.  
  5.     t = TIMER
  6.     FOR x = 0 TO _WIDTH
  7.         FOR y = 0 TO _HEIGHT
  8.             r = SIN(1.1 * t) * h - y + h
  9.             g = SIN(.9 * t) * w - x + w
  10.             b = SIN(x / w + t + y / h) * r
  11.             PSET (x, y), _RGB(r, g, b)
  12.         NEXT
  13.         t = t + .01
  14.     NEXT
  15.     _LIMIT 15: _DISPLAY
  16.  
  17.  
Title: Re: Why does this program freeze when trying to exit?
Post by: FellippeHeitor on September 04, 2020, 01:18:20 pm
Can't reproduce it. It closes every time. Anything graphics card related, maybe?

PS: Gorgeous plasma display.
Title: Re: Why does this program freeze when trying to exit?
Post by: Dav on September 04, 2020, 01:58:35 pm
I guess that's it.  That's the only thing I can think of too.  Never had the problem before.  Oh well.   

Thanks for testing!

- Dav
Title: Re: Why does this program freeze when trying to exit?
Post by: bplus on September 04, 2020, 02:20:11 pm
Quote
Sometimes when I try to X out of this program it will stop and freeze and not close when I press the exit X.  I then have to use task manager to kill the program.  It happens just sometimes, not most of the time, but I am wondering why it happens at all.  Any clues?  I'm using QB64-GL 1.4 32-bit on Windows 7 on a t430 thinkpad.  Thanks.

My couple of tests were fine but this thing happens to me also on rare occasion. Have no idea how to replicate problem consistently. I'm using 64 bit version on Windows 10. It's true some programs seem more likely to get stuck but it's so rare...

Yes nice plasma, clever to use timer to increment color drawing.