Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / fatal error during graphic initialization

fatal error during graphic initialization

fatal error during graphic initialization
shmsh 2013/02/11 02:53
Hi Dears...

I have my own project on OCC ,,,, MFC project ,,,, I processed like this :
- I build Third party products ( successfully )
- I set the environment variables including "CSF_GraphicShr"
- I did followed the building modules chapter
- I compiled OCC (msvs.bat in ros folder) with VC9, Debug mode ( 67 succeed .... 0 failed )
- I build the msvs.bat in samples folder ( 11 succeed .... 0 failed )
- now on running the sample I get an error of " Fatal error during graphic initialization "

And the same happens when I try to run my own project ( I already configured my project with OCC and I have created the V3d_Viewer for showing objects on the screen ) it builds fine with zero errors but again on DEBUG command i get the same error " Fatal error during graphic initialization "

I have gone through the forums and I found only two suggestions:
first one:
almost most of the forums suggested that which is ; set "CSF_GraphicShr" environment variable properly and I already did that,,, but it did not solve the problem.

second one:
I found in this forum http://www.opencascade.org/org/forum/thread_21927/?forum=3, which says that; Change "OpenCASCADE\ros\src\OSD\OSD_SharedLibrary.cxx"
Standard_Boolean OSD_SharedLibrary :: DlOpen ( const OSD_LoadMode Mode ) {

// ( myHandle = ( HINSTANCE )LoadLibraryEx ( myName, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) ) == NULL
// replaced by ( myHandle = ( HINSTANCE ) ::LoadLibrary (myName) ) == NULL

Recompile OCC entirely and it will probably work

also I have done that .....but still the problem is not solved !!!!!!!!!!!!!!!!!!!!
//////////////////////////////////////////////////////////////////////////////////////////////////////

the output that I get on Debug command are as followed

'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\CAECAD.exe', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKernel.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv'
'CAECAD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll'
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\CAECAD\Debug\tbbmalloc_debug.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKMath.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKService.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\FreeImage.dll', Binary was not built with debug information.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\FreeImagePlus.dll', Binary was not built with debug information.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKV3d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKBRep.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKG2d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKG3d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKGeomBase.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKTopAlgo.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKGeomAlgo.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKMesh.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\tbb_debug.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKV2d.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKHLR.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\comdlg32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'CAECAD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_420fe3fa2b8113bd\comctl32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'CAECAD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugmfc_1fc8b3b9a1e18e3b_9.0.21022.8_none_9b54853441e399d5\mfc90ud.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\msimg32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'CAECAD.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.mfcloc_1fc8b3b9a1e18e3b_9.0.30729.6161_none_49768ef57548175e\MFC90ENU.DLL', Binary was not built with debug information.
'CAECAD.exe': Loaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKOpenGl.dll', Symbols loaded.
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'CAECAD.exe': Unloaded 'C:\Users\55555555555555555555\Desktop\saddam\CAECAD\Debug\TKOpenGl.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\opengl32.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\ddraw.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\dciman32.dll'
'CAECAD.exe': Unloaded 'C:\Windows\SysWOW64\glu32.dll'
First-chance exception at 0x7556c41f in CAECAD.exe: Microsoft C++ exception: Aspect_GraphicDeviceDefinitionError at memory location 0x003dfb98..
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'CAECAD.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll'
Detected memory leaks!
Dumping objects ->
{1738} normal block at 0x03B19878, 47 bytes long.
Data: < The specifie> 02 00 00 00 54 68 65 20 73 70 65 63 69 66 69 65
{1737} normal block at 0x03B19830, 12 bytes long.
Data: < x > BC C1 AD 00 01 00 00 00 78 98 B1 03
{1649} normal block at 0x03B0E628, 32 bytes long.
Data: < > 98 8C 14 10 02 00 00 00 DC 8A 0E 01 E8 02 00 00
{1648} normal block at 0x03B0E5C8, 32 bytes long.
Data: < > 98 8C 14 10 02 00 00 00 84 8A 0E 01 D0 01 00 00
{1647} normal block at 0x03B0E568, 32 bytes long.
Data: < 8 P > 98 8C 14 10 02 00 00 00 38 8A 0E 01 50 00 00 00
.
.
.
.
.
.
.
..
///////////////////////////////////////////////////////////////////////////////////////////////////////

any help would be much appreciated
solution is urgently required

Regards

Saddam
shmsh 2013/02/11 03:01
sorry but this the completion of the output

.
.
.
Object dump complete.
The program '[6252] CAECAD.exe: Native' has exited with code 1 (0x1).

Saddam
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map