Problems under win2k and openGL
Im using the opengl Super bible second edition to learn OGL. After fixing the problem witht the glut library I ran into another. When I run the program it comes up with this error
"Application failed to initialize properly 0xc0000005"
Any help is appreciated thanks
If at first you don't suceed do something easier!.
I don''t have a solution. But, I have something to say about Windows 2000. Generally, I think its a very good OS, and very stable. I think it will eventually become more popular than Win98. But currently there are a lot of video card driver problems with it. OpenGL in particular has problems. My brother uses it along with a 3dfx Velocity 100, and it runs extremely slow.
You may already know this, but I wanted to say it anyway.
You may already know this, but I wanted to say it anyway.
- I program. Do you? www.gldomain.com
Interesting, when I did a search of MSDN for that error all I got was a bunch of network error messages about failed network services setups. Does your program use any networking modules or does it run off a network server (i.e. remote execution)? If so that could be what the problem is. Otherwise try and step through the program and see what command causes the program to fail. Also does that error happen with just your program or all opengl programs?
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
This is the simplest of Opengl Programs. Its the VERY first example in the Opengl Super Bible. Second edition. ALl it does it draw a box. Its not a win32 example just a dos based one. The program is being executed locally.
If at first you don't suceed do something easier!.
No solution here either, but a thought. Does Windows2000 support GLUT? I am not sure, but thought I would throw the question out. My buddy is running win2k, and he couldn''t get anything using GLUT to run, but he had no problem if he made his own window and went from there...
GLUT works in win2k for me...
If it's useing GLUT then you will want to make sure that you have the compiler set to compile a consoul app and not a win32 app. Also check to make sure you have the compiler warnings turned on full and fix every little thing it says.
if your program enters at main put as the first lin in main...
printf("Starting Application.../n");
If your program enters at WinMain put as the first line in WinMain...
MessageBox(NULL,"Starting","Starting",MB_OK);
if you get this message then you know the error is happening after your code stats running if not then there's something wrong in a library that's linked to your program or a dll that's loaded at run time. This will help diagnose your problem.
Other info that might help find your solution...
What compiler are you useing?
What library files are linked to your program?
Do other OpenGL programs run on your system?
Edited by - avianRR on March 29, 2001 11:50:57 PM
If it's useing GLUT then you will want to make sure that you have the compiler set to compile a consoul app and not a win32 app. Also check to make sure you have the compiler warnings turned on full and fix every little thing it says.
if your program enters at main put as the first lin in main...
printf("Starting Application.../n");
If your program enters at WinMain put as the first line in WinMain...
MessageBox(NULL,"Starting","Starting",MB_OK);
if you get this message then you know the error is happening after your code stats running if not then there's something wrong in a library that's linked to your program or a dll that's loaded at run time. This will help diagnose your problem.
Other info that might help find your solution...
What compiler are you useing?
What library files are linked to your program?
Do other OpenGL programs run on your system?
Edited by - avianRR on March 29, 2001 11:50:57 PM
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
Yeah, GLUT works fine in Win2K. Are you doing a Debug or Release build? I get there error in some of my OpenGL programs in Debug mode (for some unknown reason), so I don''t use the runtime debugger anymore...
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://www.gdarchive.net/druidgames/
"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://www.gdarchive.net/druidgames/
have you downloaded glut?
(always need to be sure, just in case. no offense intended if this offends you)
(always need to be sure, just in case. no offense intended if this offends you)
I downloaded the latest version of glut 3.7 I believe. Im using Visual C++ studio standard<--Ghetto. For the lib files Im linked only to glut32.lib. As far as other programs running if you mean thigns I''ve programmed. WEll no cause I can''t get past this error. If you mean games and such yes. They run fun. Im a hardcore gamer.
Here is the simple code.. I feel really DUMB cause this code is simple and does not work
#include
#include
void renderscene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void main(void)
{
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("SImple");
glutDisplayFunc(renderscene);
glClearColor(0.0f,0.0f,1.0f,1.0f);
glutMainLoop();
}
All the include files are there and freshly downloaded.
I also ran my comiler on the highest level of debugging and it generated these errors. They make almost no-sense to me.
--------------------Configuration: simple - Win32 Debug--------------------
Compiling...
simple.c
C:\bored\simple.c(20) : warning C4514: ''Int64ShllMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : error C2220: warning treated as error - no object file generated
C:\bored\simple.c(20) : warning C4514: ''Int64ShraMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : warning C4514: ''Int64ShrlMod32'' : unreferenced inline function has been removed
Error executing cl.exe.
simple.obj - 1 error(s), 3 warning(s)
OK thats all I got for you. Any help in appreciated
Here is the simple code.. I feel really DUMB cause this code is simple and does not work
#include
#include
void renderscene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void main(void)
{
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("SImple");
glutDisplayFunc(renderscene);
glClearColor(0.0f,0.0f,1.0f,1.0f);
glutMainLoop();
}
All the include files are there and freshly downloaded.
I also ran my comiler on the highest level of debugging and it generated these errors. They make almost no-sense to me.
--------------------Configuration: simple - Win32 Debug--------------------
Compiling...
simple.c
C:\bored\simple.c(20) : warning C4514: ''Int64ShllMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : error C2220: warning treated as error - no object file generated
C:\bored\simple.c(20) : warning C4514: ''Int64ShraMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : warning C4514: ''Int64ShrlMod32'' : unreferenced inline function has been removed
Error executing cl.exe.
simple.obj - 1 error(s), 3 warning(s)
OK thats all I got for you. Any help in appreciated
If at first you don't suceed do something easier!.
quote: Original post by Evil-Prey
I downloaded the latest version of glut 3.7 I believe. Im using Visual C++ studio standard<--Ghetto. For the lib files Im linked only to glut32.lib. As far as other programs running if you mean thigns I''ve programmed. WEll no cause I can''t get past this error. If you mean games and such yes. They run fun. Im a hardcore gamer.
Here is the simple code.. I feel really DUMB cause this code is simple and does not work
#include
#include
void renderscene(void)
{
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
}
void main(void)
{
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutCreateWindow("SImple");
glutDisplayFunc(renderscene);
glClearColor(0.0f,0.0f,1.0f,1.0f);
glutMainLoop();
}
All the include files are there and freshly downloaded.
I also ran my comiler on the highest level of debugging and it generated these errors. They make almost no-sense to me.
--------------------Configuration: simple - Win32 Debug--------------------
Compiling...
simple.c
C:\bored\simple.c(20) : warning C4514: ''Int64ShllMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : error C2220: warning treated as error - no object file generated
C:\bored\simple.c(20) : warning C4514: ''Int64ShraMod32'' : unreferenced inline function has been removed
C:\bored\simple.c(20) : warning C4514: ''Int64ShrlMod32'' : unreferenced inline function has been removed
Error executing cl.exe.
simple.obj - 1 error(s), 3 warning(s)
OK thats all I got for you. Any help in appreciated
Allright, I''ve never used GLUT but I''m using OGL. Not sure if this could help but did you include all the correct glut headers. Also, make sure that your glut directory is the first one in the headers and lib include path. This might help. Might also want to try including the OGL files in the project just for fun. Again, I''m not sure this will help as I''ve never used glut.
Cyberdrek
Headhunter Soft
A division of DLC Multimedia
[Cyberdrek | ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement