I have tried your method and use
myEnv.SetValue(myVarValue) to set my OpenGl.dll path, but the valiable is still"C:\OpenCASCADE5.1\ros\win32\dll\TKOpenGl.dll".why?
thx.
I also got the same error "FATAL ERROR DURING GRAPHIC INITIALIZATION" when I am building the OCC environment. But when I run the example it works. This error don't have much effect on the OCC setup.
Thu, 07/17/2003 - 10:20
Hi,
looks your windows pc doesn't have the OCC environment variables set!
Regards,
Patrik
Thu, 07/17/2003 - 23:12
Check your CSF_GraphicShr environment variable. It should point to TKOpenGl.dll.
MBD
Fri, 07/18/2003 - 11:55
The environment variable CSF_GraphicShr is correctly set.
And when I replace the TKernel.dll with the original one, some samples will run.
Fri, 07/18/2003 - 12:24
Hi Tom,
recompile the samples and try it again!
Regards,
Patrik
Tue, 07/22/2003 - 07:02
I forgot to install the vcsp5.
Thank you for your kindly help.
Wed, 02/25/2004 - 06:49
How to check CSF_GraphicShr environment variable and how to set it?
Wed, 02/25/2004 - 10:18
Hi,
here are 2 methods I use for environment variables:
void Im_AppHelper::SetEnvironmentVariable(const TCollection_AsciiString& myVarName, const TCollection_AsciiString& myVarValue)
{
OSD_Environment myEnv;
myEnv.SetName(myVarName);
if (myEnv.Value() == "")
myEnv.SetValue(myVarValue);
}
TCollection_AsciiString Im_AppHelper::GetEnvironmentValue(const TCollection_AsciiString& myVarName)
{
OSD_Environment myEnv;
myEnv.SetName(myVarName);
return myEnv.Value();
}
HTH,
Patrik
Wed, 02/25/2004 - 12:35
I have tried your method and use
myEnv.SetValue(myVarValue) to set my OpenGl.dll path, but the valiable is still"C:\OpenCASCADE5.1\ros\win32\dll\TKOpenGl.dll".why?
thx.
Wed, 02/25/2004 - 13:35
If the variable is already set I work with the old one (look at the source). And "TKOpenGL.dll" isn't the same as "OpenGL.dll"!!!!!
Patrik
Wed, 02/25/2004 - 15:23
Thank you
Sat, 03/27/2004 - 12:04
Fehler
Tue, 08/02/2016 - 09:59
Hi everyone,
I also got the same error "FATAL ERROR DURING GRAPHIC INITIALIZATION" when I am building the OCC environment. But when I run the example it works. This error don't have much effect on the OCC setup.