mussul
12-02-2007 17:11:19
Hi, I know that this kind of problem has already been discussed and solved for some people but here solutions presented in other posts don't work!
I installed the C# express SP1 package AND the Visual studio SP1 redistributable and yet i get dll loading errors!
I uninstalled all other ogres that I had before, installed the Mogre0.1.9-OgreSDKSetup1.2.5_VC80.exe, checked the environment path, built the solution using visual c# express, then tried with visual studio .net 2005, and nothing
with express, pressing F5 I get:
Running from the debug folder directly, the program doesn't start, tradicional "this program found a problem and will be closed"
Then I copied the exes and exampleframework dll to the release folder, then ogre was able to start and displays some text at the console, but after "OpenGL rendering subsystem created" appears, an exception occurs
Something interesting to note is that the ogre c++ samples are not running too after building with VS2005 ( "The application was not correctly initialized ... "), if debugging in vs2005 the output text is:
That is so weird
Before all this, I was using the ogre 1.2.4 for vs 2003 and c++ as the language, and all worked fine. Never used Mogre before.
HELP PLZ!!!
thanks
I installed the C# express SP1 package AND the Visual studio SP1 redistributable and yet i get dll loading errors!
I uninstalled all other ogres that I had before, installed the Mogre0.1.9-OgreSDKSetup1.2.5_VC80.exe, checked the environment path, built the solution using visual c# express, then tried with visual studio .net 2005, and nothing
with express, pressing F5 I get:
System.IO.FileLoadException was unhandled
Message="Could not load file or assembly 'Mogre, Version=0.1.9.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Falha na inicialização do aplicativo devido a configuração incorreta. A reinstalação do aplicativo pode resolver o problema. (Exception from HRESULT: 0x800736B1)"
Source="Mogre.Demo.Gui"
FileName="Mogre, Version=0.1.9.0, Culture=neutral, PublicKeyToken=null"
FusionLog=""
StackTrace:
at Mogre.Demo.Gui.Program.Main(String[] args)
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Running from the debug folder directly, the program doesn't start, tradicional "this program found a problem and will be closed"
Then I copied the exes and exampleframework dll to the release folder, then ogre was able to start and displays some text at the console, but after "OpenGL rendering subsystem created" appears, an exception occurs
Unhandled Exception: System.Runtime.InteropServices.SEHException: External compo
nent has thrown an exception.
at Ogre.Root.{ctor}(Root* , basic_string<char\,std::char_traits<char>\,std::a
llocator<char> >* , basic_string<char\,std::char_traits<char>\,std::allocator<ch
ar> >* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
at Mogre.Root..ctor()
at Mogre.Demo.ExampleApplication.Example.Setup()
at Mogre.Demo.ExampleApplication.Example.Go()
at Mogre.Demo.CelShading.Program.Main(String[] args)
Something interesting to note is that the ogre c++ samples are not running too after building with VS2005 ( "The application was not correctly initialized ... "), if debugging in vs2005 the output text is:
'Demo_BspCollision.exe': Loaded 'C:\OgreSDK\bin\debug\Demo_BspCollision.exe', Symbols loaded.
'Demo_BspCollision.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Demo_BspCollision.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Demo_BspCollision.exe': Loaded 'C:\OgreSDK\bin\debug\OgreMain_d.dll', No symbols loaded.
'Demo_BspCollision.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', No symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe c:\OgreSDK\bin\Debug\OgreMain_d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3580] Demo_BspCollision.exe: Native' has exited with code -1072365566 (0xc0150002).
That is so weird
Before all this, I was using the ogre 1.2.4 for vs 2003 and c++ as the language, and all worked fine. Never used Mogre before.
HELP PLZ!!!
thanks