News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Can't get a rendering context, wglCreateContext fails

Started by hamper, November 11, 2013, 10:30:52 PM

Previous topic - Next topic

dedndave

Thanks Marinus, Steve, and Jochen   :t

Marinus and Jochen - i take it the program works and closes correctly ?

Steve - great info
although, i'm having a little trouble matching text files to machines

well - 2 of them, i figured out easy enough   :P
OPENGLPM.TXT, Windows 98, P-MMX
OPENGLP3.TXT, Windows 2000, P-III

not sure which is which, here
OPENGLP5.TXT, OpenGL Version: 1.3.5014 WinXP Release
OPENGLCM.TXT, OpenGL Version: 1.3.3413 WinXP Release
Windows XP, IBM Laptop
Windows XP, Sony Laptop

taking a guess... OPENGLCM.TXT goes with the IBM laptop

so, to try a little "process of elimination"....
in this one, i have disabled the init common controls code and removed the manifest from the RC file
i also disabled the multi-media timer and made a single call to render the triangle

that should tell us if it's an OpenGL problem, or something else
of course, it could be more than one issue - lol

by the way....
i opened a console window and hit Alt-Enter to get full-screen
(probably the first time i have done that on this machine - lol)
when i run the SmallOgl5 program from the command line,
the full-screen console minimizes and the GUI app runs (no problems)

FORTRANS

Hi,

Quote from: dedndave on November 16, 2013, 07:29:21 AM
Steve - great info
although, i'm having a little trouble matching text files to machines

well - 2 of them, i figured out easy enough   :P
OPENGLPM.TXT, Windows 98, P-MMX
OPENGLP3.TXT, Windows 2000, P-III

   You got it.

Quote
not sure which is which, here
OPENGLP5.TXT, OpenGL Version: 1.3.5014 WinXP Release
OPENGLCM.TXT, OpenGL Version: 1.3.3413 WinXP Release
Windows XP, IBM Laptop
Windows XP, Sony Laptop

taking a guess... OPENGLCM.TXT goes with the IBM laptop

   No, it was for the Mobile Celeron in the Sony Vaio.  P5 is the
Pentium M in the IBM ThinkPad.

Quote
by the way....
i opened a console window and hit Alt-Enter to get full-screen
(probably the first time i have done that on this machine - lol)
when i run the SmallOgl5 program from the command line,
the full-screen console minimizes and the GUI app runs (no problems)

   Yes, you drop (rise?) back to the desktop GUI.  Rather consistent
on all four here.

Regards,

Steve N.

FORTRANS

Hi Dave,

   Results from OglSteve1.zip.

Windows 2000, P-III

Window CLI       Blank
Full Screen CLI  Static Triangle
Desktop GUI      Blank

Windows 98, HP Laptop

All three        Triangle flashes for a fraction
                 of a second, then blank.

Windows XP, IBM Laptop

Window CLI       Static Triangle
Full Screen CLI  Blank
Desktop GUI      Static Triangle

Windows XP, Sony Laptop

Window CLI       Static Triangle
Full Screen CLI  Program Exception
Desktop GUI      Static Triangle


   Hope that helps.

Cheers,

Steve N.

dedndave


Siekmanski

Results from OglSteve1.zip.

Microsoft Windows 8.1 [Version 6.3.9600]

Window CLI       Static Triangle   program works and closes correctly    
Full Screen CLI  Static Triangle   program works and closes correctly
Desktop GUI      Static Triangle   program works and closes correctly
Creative coders use backward thinking techniques as a strategy.

Gunther

Hi Dave,

SmallOgl.exe works on both (Windows XP (VM) and Windows 7 64 bit), but nothing rotates. The triangle is static.

Gunther
You have to know the facts before you can distort them.

jj2007

Quote from: Gunther on November 16, 2013, 09:01:03 PMSmallOgl.exe works on both (Windows XP (VM) and Windows 7 64 bit), but nothing rotates. The triangle is static.

Slowly rotating triangle on my XP SP3... in contrast to the one I posted in reply #89, which rotates very fast on XP and slowly on W7-32. OpenGL seems to be a mess...

Gunther

Jochen,

Quote from: jj2007 on November 16, 2013, 09:54:48 PM
Slowly rotating triangle on my XP SP3... in contrast to the one I posted in reply #89, which rotates very fast on XP and slowly on W7-32. OpenGL seems to be a mess...

That's probably depending on the implementation in different operating systems. I've no other explanation.

Gunther
You have to know the facts before you can distort them.

dedndave

Jochen, Gunther, thanks again for testing
but, the one i am hoping works correctly on newer operating systems is SmallOgl5 in Reply #108
the triangle should rotate at 1 degree per mS, and the close button should work correctly

now, Steve (FORTRANS) has some older machines
one of them is even a win 98 machine, one is a win 2000 machine, and 2 older XP laptops
i am trying some different things to see why things are different, there
i am a little surprised that we have had any success at all on the win 98 machine - lol

at any rate, some of these are intended just for Steve, really, as we try to sort out the differences
the current "i hope this works" version is SmallOgl5 in Reply #108, here...
http://masm32.com/board/index.php?topic=2582.msg27362#msg27362
it seems to have passed most of the tests, except Gunther's win7-64 test
and, of course, Steve's older machine tests

Gunther

Dave,

Quote from: dedndave on November 16, 2013, 10:37:19 PM
but, the one i am hoping works correctly on newer operating systems is SmallOgl5 in Reply #108
the triangle should rotate at 1 degree per mS, and the close button should work correctly

it works fine under XP but leaves an empty screen under Win 7. It's tricky.

Gunther
You have to know the facts before you can distort them.

dedndave

ok Gunther - thanks again for testing   :t
i was hoping that one would work correctly for you   :(

it seems to work on other win7-64 machines
perhaps the issue is InitCommonControlsEx, manifest, and a non-English win7-64
i seem to recall Hutch experienced similar results on one of his tests
i'll have a look at his stuff to see what i can learn from it

Gunther

Dave,

Quote from: dedndave on November 16, 2013, 10:53:49 PM
it seems to work on other win7-64 machines
perhaps the issue is InitCommonControlsEx, manifest, and a non-English win7-64

That would make sense.

Gunther
You have to know the facts before you can distort them.

dedndave

another possibility....

http://devgurus.amd.com/thread/143385

maybe the problem will go away by making 2 calls to ChoosePixelFormat   :P

dedndave

what CPU does your win7-64 machine have, Gunther ?

GoneFishing

Quote from: dedndave on November 16, 2013, 11:16:29 PM
what CPU does your win7-64 machine have, Gunther ?
I'm afraid Gunther has i7 Ivy Bridge CPU with on-chip graphics