Author Topic: FILEREQUEST$ X_SETTEXTURE bug  (Read 1823 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1622
  • Particle Hawk
    • View Profile
FILEREQUEST$ X_SETTEXTURE bug
« on: 2012-Jun-27 »
Wow this one was a real M**********R

Case:
when you set X_SETTEXTURE -1, -1
and then you call FILEREQUEST$

Problem:
When the window comes back......CRASH

Fix:
the fix .... X_SETTEXTURE 0,0 //even if nothing is assigned to this ID, its ok


Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: FILEREQUEST$ X_SETTEXTURE bug
« Reply #1 on: 2012-Jun-27 »
does it crash only in debug mode? You would have found a fix for a very silly bug then.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1622
  • Particle Hawk
    • View Profile
Re: FILEREQUEST$ X_SETTEXTURE bug
« Reply #2 on: 2012-Jun-27 »
Because this bug drove me crazy, i used debug mode.
When in debug mode...fatal exception error is reported after it crashes.
When not in debug mode, it crashes...either way crash.
Debugger does not report the problem as far as i can tell.
« Last Edit: 2012-Jul-11 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)