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 2 of 2

Thread: glutSwapBuffers can't be debugged

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2009
    Posts
    1

    glutSwapBuffers can't be debugged

    The program is fine when using SwapBuffers.
    But after I change SwapBuffers into glutSwapBuffers, the program can't be bebugged.

    The debugging info is:
    'root_growth3DGUI.exe': Loaded 'C:\working\Huber\root_growth3DGUI5.10\Debug\root_ growth3DGUI.exe', Symbols loaded.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system\glut32.dll', Binary was not built with debug information.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugMFC_1fc 8b3b9a1e18e3b_9.0.21022.8_x-ww_2a62a75b\mfc90d.dll', Symbols loaded.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc 8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\msimg32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc 8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.MFCLOC_1fc8b 3b9a1e18e3b_9.0.21022.8_x-ww_11f3ea3a\mfc90enu.dll', Binary was not built with debug information.
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\msctf.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\apphelp.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\version.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\comres.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll'
    'root_growth3DGUI.exe': Loaded 'C:\WINDOWS\system32\nvoglnt.dll'
    Unhandled exception at 0x10009e12 in root_growth3DGUI.exe: 0xC0000005: Access violation reading location 0x0000002c.

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%

    I also checked some glut* functions, there is no problem and I think glut32.dll is installed correctly.

    Which one can explain the memory problem with glutSwapBuffers to me?

    3X.

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,370

    Re: glutSwapBuffers can't be debugged

    You need to compile glut in debug mode and link to the debug dll.

Posting Permissions

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