Author Topic: Why does this program freeze when trying to exit?  (Read 3091 times)

0 Members and 1 Guest are viewing this topic.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Why does this program freeze when trying to exit?
« 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.  

FellippeHeitor

  • Guest
Re: Why does this program freeze when trying to exit?
« Reply #1 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.
« Last Edit: September 04, 2020, 01:19:30 pm by FellippeHeitor »

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Why does this program freeze when trying to exit?
« Reply #2 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

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Why does this program freeze when trying to exit?
« Reply #3 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.
« Last Edit: September 04, 2020, 02:21:29 pm by bplus »