Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Debugging problem

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    2

    Debugging problem

    I use Microsoft VC++ 6.0 for developing my applications.
    I haven't problems to compiling and running my OpenGl applications. However, I can't debug step by step the programs because the compiler stops in assembly code in the 'ChoosePixelFormat" instruction. And then I can't continue.

    Has anybody any solution?
    Thanks.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jul 2001
    Posts
    533

    Re: Debugging problem

    Step over that instruction, rather than stepping into it.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: Debugging problem

    Hi !

    Not sure what the problem is, but set a breakpoint after the problem line and press F5 on the line just before it, then you don't have to step over the problem line.

    Mikael

  4. #4
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    2

    Re: Debugging problem

    Thanks a lot, but I think my explanation isn't very good. I know how works the debugger. I think is a deeper problem: the debugger stops in the first instruction relative to OpenGL although there isn't any break point. I can't stop the debugger in any instruction after this.
    Have you tried to debug a opengl application? I think, perhaps It's a problem of my VC++ configuration, but I've read a lot of tutorials and examples and I don't found what's my problem. For example, I can't debug the OpenGl examples from microsoft.

    Originally posted by mikael_aronsson:
    Hi !

    Not sure what the problem is, but set a breakpoint after the problem line and press F5 on the line just before it, then you don't have to step over the problem line.

    Mikael

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    718

    Re: Debugging problem

    You don't happen to have an ASUS video card by any chance? I remember some old ASUS drivers that hit breakpoints when you debugged OpenGL apps. Very weird. Try using nvidias reference drivers if you have an nvidia chipset built by Asus.

  6. #6
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    2

    Re: Debugging problem

    Thanks. I've changes the drivers and all is right.
    Originally posted by harsman:
    You don't happen to have an ASUS video card by any chance? I remember some old ASUS drivers that hit breakpoints when you debugged OpenGL apps. Very weird. Try using nvidias reference drivers if you have an nvidia chipset built by Asus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •