Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Bugs in OpenGL

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    173

    Bugs in OpenGL

    Hi,

    I am having some problems with OpenGL that I do not understand. I am programming using VB and the program stops at a line that should not produce any errors like:

    glcolor3f 0.2,0.2,0.3

    To resolve this error I simply insert at the begining:

    on error resume next

    This works ok because the program only stops sometimes.
    Billy

  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 1969
    Location
    Munich,Germany
    Posts
    227

    Re: Bugs in OpenGL

    hmm did you just make a typo here, the correct call should be

    glColor3f(0.2,0.2,0.,3);

    Chris
    yes

  3. #3
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Latrobe, PA, USA
    Posts
    4

    Re: Bugs in OpenGL

    In VB you can't use the ; after a function call. You either use glColor3f 0.2,0.2,0.3 or Call glColor3f(0.2, 0.2, 0.3)
    "Beware the ice beneath the snow."

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    173

    Re: Bugs in OpenGL

    I am sure that the code is not wrong because, during debug, I just press the continue button and it executes ok. It is probably because it is being interpreted and not executed after being compiled.
    Billy

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Bugs in OpenGL

    Sorry if this sounds too insulting, but I have to ask. Are you sure you don't just have a breakpoint there?
    Deiussum
    Software Engineer and OpenGL enthusiast

  6. #6
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Canada
    Posts
    173

    Re: Bugs in OpenGL

    Of course not. In VB I press run (F5), there is no break point. I rotate the object several times using the mouse and this line is executed several times. Then suddenly, the program breaks and indicates that it cannot run because of an error on that line. I suspect that I should compile the program first and then execute it, but I don't think this should happen. It might also be a problem of memory, I don't know.
    Billy

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Bugs in OpenGL

    Pressing f5 to run your program won't make it not stop at breakpoints. Not knowing how much experience you really have with VB and the fact that what you described sounds a LOT like a breakpoint, I had to ask so don't be too offended.

    When it stops you can try typing the following into the immediate mode window.

    print err.number

    If that is anything but 0 do

    print err.description
    Deiussum
    Software Engineer and OpenGL enthusiast

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Bugs in OpenGL

    Just to clarify something, anytime you run your app from the VB IDE it is basically interpretted. Only when you build the exe and run that directly are you running against a compiled version.
    Deiussum
    Software Engineer and OpenGL enthusiast

  9. #9
    Junior Member Newbie
    Join Date
    May 2001
    Location
    Latrobe, PA, USA
    Posts
    4

    Re: Bugs in OpenGL

    billy, Are you getting an error at this point? If you handle your error, use (MsgBox "Error #: " & Err.Number & vbCrLf & "Error Desc: " & Err.Description)... if not, use the method that Deiussuum describes to find if there is an error at that point.

    The VB IDE will break on errors depending on what settings you have under Tools...Options... then the General Tab (Error Trapping).

    If you give the error number and description that would help.
    "Beware the ice beneath the snow."

  10. #10
    Member Contributor
    Join Date
    Feb 2001
    Posts
    89

    Re: Bugs in OpenGL

    heh! It gives me some pretty wierd stuff when I run my apps... When I get to a certain point in code (it's just random), it'll give me some error (I can't remember it now cuz i'm at school) and the IDE asks me if I want to debug. When I compile it and run it, it gives me the same stuff. And when I remove the perfectly legitamate statements I had just added, it runs perfectly. WTF!!! In short, help?
    -pATCheS

Page 1 of 2 12 LastLast

Similar Threads

  1. Bugs with apple's 2.0 opengl software renderer?
    By tommyg in forum OpenGL: macOS
    Replies: 6
    Last Post: 09-23-2016, 06:55 AM
  2. OpenGL Registry specs inconsistency and bugs
    By Night Nord in forum OpenGL: General
    Replies: 19
    Last Post: 03-05-2012, 08:21 AM
  3. Bugs in the OpenGL specification files.
    By The Fiddler in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-19-2006, 02:23 PM
  4. OpenGL bugs on specific platforms only?
    By RobertWebb in forum OpenGL: Advanced Coding
    Replies: 18
    Last Post: 07-27-2005, 06:57 PM
  5. possible x11 OpenGL/GLUT bugs
    By G-Force in forum OpenGL: macOS
    Replies: 1
    Last Post: 03-19-2003, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean