Getting an error

wdenslow

17-02-2010 00:13:07

Hey Guys!

Right now Im trying to build Tutorial 06, but came across this error. Any ideas?


------ Build started: Project: tutorial06, Configuration: Debug x86 ------
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /platform:x86 /errorreport:prompt /define:DEBUG;TRACE /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\Accessibility.dll /reference:..\..\..\..\..\..\..\OgreSDK\MogreSDK_1.6.5\bin\release\Mogre.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /filealign:512 /out:obj\x86\Debug\tutorial06.exe /target:exe OgreForm.cs OgreForm.Designer.cs program.cs
C:\Users\Will\Documents\Visual Studio 2008\Projects\tutorial06\tutorial06\OgreForm.Designer.cs(14,33): error CS0115: 'tutorial06.OgreForm.Dispose(bool)': no suitable method found to override

Compile complete -- 1 errors, 0 warnings
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

wdenslow

17-02-2010 00:16:39

I am now getting this wierd error. I did not change anything, but just tried to rebuild it:

'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Users\Will\Documents\Visual Studio 2008\Projects\tutorial06\tutorial06\bin\x86\Debug\tutorial06.vshost.exe'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll'
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'
The thread 0x1bd4 has exited with code 0 (0x0).
The thread 0x1b54 has exited with code 0 (0x0).
'tutorial06.vshost.exe' (Managed): Loaded 'C:\Users\Will\Documents\Visual Studio 2008\Projects\tutorial06\tutorial06\bin\x86\Debug\tutorial06.exe', Symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in tutorial06.exe
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in tutorial06.exe

Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

'tutorial06.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
The thread 'vshost.RunParkingWindow' (0x189c) has exited with code 0 (0x0).
The program '[5952] tutorial06.vshost.exe: Managed' has exited with code -532459699 (0xe0434f4d).

AndroidAdam

17-02-2010 01:15:55

I assume you're able to compile and run the previous tutorials, correct?

Anyway, just a couple of stabs in the dark:
Mogre was built for .Net 2.0, I'm fairly certain the Windows Form is 3.5, trying changes the windows form project to 2.0 by clicking Project->Properties->Application->Target Framework

How did you make your form? Just a drag and drop, or did you download it from somewhere? This line: error CS0115: 'tutorial06.OgreForm.Dispose(bool)': no suitable method found to override
indicates that the designer code is trying to do something it's not.

wdenslow

17-02-2010 01:31:10

I tried converting it to 2.0 but I still got the same I.O error. And I created my form by right clicking-> new windows form.

Edit: It builds just fine, but when debugging or releasing, it gives me this exact error:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in tutorial06.exe

Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

AndroidAdam

17-02-2010 02:12:05

It sounds to me that you may be missing a needed .dll
Does it tell you what line this error occurs on?

wdenslow

17-02-2010 02:27:28

Nope, found this though- Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

It does sound like I'm missing something, but what could it be? I put all the dll's under Moger's bin in my project's directory.


tutorial06.vshost.exe' (Managed): Loaded 'C:\Users\Will\Documents\Visual Studio 2008\Projects\tutorial06\tutorial06\bin\x86\Debug\tutorial06.exe', Symbols loaded.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in tutorial06.exe
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in tutorial06.exe

Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

AndroidAdam

17-02-2010 03:06:32

It might sound simple, but did you remember to include the Media folder in your projects directory?

wdenslow

17-02-2010 03:09:12

Well I took out the part where the ninja is placed in the scene, so I don't see how that could be a problem. Good idea however.

AndroidAdam

17-02-2010 03:34:57

Even if you never attempted to load a model, the application still tries to load resources based on the path provided by the resource.cfg in your bin folder.

GantZ

17-02-2010 08:13:22

Do you have an ogre.log file created ?

if not, you probably miss the OgreMain.dll (or OgreMain_d.dll if you use debug version of mogre) in the folder of your exe (bin/debug or bin/release depending of your configuration) . Also, it should be the good version of OgreMain, not an old one. this kind of error always come from that, if it were a media, or plugin missing, you would have an ogre exception not a IO one.

wdenslow

17-02-2010 17:39:44

Does anyone have this is project form so I can download it? That would most likely be the best way to see what the problem is. I pretty much ran through every option that I have come across.

Edit: I used the OgreMain from mogre's files.

wdenslow

17-02-2010 22:15:48

Wait nevermind, I got the ogre log:

17:35:46: Creating resource group General
17:35:46: Creating resource group Internal
17:35:46: Creating resource group Autodetect
17:35:46: SceneManagerFactory for type 'DefaultSceneManager' registered.
17:35:46: Registering ResourceManager for type Material
17:35:46: Registering ResourceManager for type Mesh
17:35:46: Registering ResourceManager for type Skeleton
17:35:46: MovableObjectFactory for type 'ParticleSystem' registered.
17:35:46: OverlayElementFactory for type Panel registered.
17:35:46: OverlayElementFactory for type BorderPanel registered.
17:35:46: OverlayElementFactory for type TextArea registered.
17:35:46: Registering ResourceManager for type Font
17:35:46: ArchiveFactory for archive type FileSystem registered.
17:35:46: ArchiveFactory for archive type Zip registered.
17:35:46: FreeImage version: 3.13.1
17:35:46: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
17:35:46: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
17:35:46: DDS codec registering
17:35:46: Registering ResourceManager for type HighLevelGpuProgram
17:35:46: Registering ResourceManager for type Compositor
17:35:46: MovableObjectFactory for type 'Entity' registered.
17:35:46: MovableObjectFactory for type 'Light' registered.
17:35:46: MovableObjectFactory for type 'BillboardSet' registered.
17:35:46: MovableObjectFactory for type 'ManualObject' registered.
17:35:46: MovableObjectFactory for type 'BillboardChain' registered.
17:35:46: MovableObjectFactory for type 'RibbonTrail' registered.
17:35:46: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at ..\src\OgreConfigFile.cpp (line 84)
17:35:46: plugins.cfg not found, automatic plugin loading disabled.
17:35:46: *-*-* OGRE Initialising
17:35:46: *-*-* Version 1.6.5 (Shoggoth)
17:35:46: OGRE EXCEPTION(6:FileNotFoundException): 'resources.cfg' file not found! in ConfigFile::load at ..\src\OgreConfigFile.cpp (line 84)

AndroidAdam

17-02-2010 22:38:58

The log indicates that you're missing the .cfg files from Mogre. Make sure you have Resources.cfg and Plugins.cfg in your projects bin directory.

wdenslow

17-02-2010 22:42:07

Thankyou Android. I believe that was from the x64 debug log, and I am building x86.

Sorry about that. Here is the log file now. It doesnt say that there is a error in the ogre log but when debugging, I get the error

An unhandled exception of type 'System.IO.FileLoadException' occurred in Tutorial6.exe

Additional information: A procedure imported by 'Mogre, Version=1.6.5.0, Culture=neutral, PublicKeyToken=null' could not be loaded.



19:21:47: Creating resource group General
19:21:47: Creating resource group Internal
19:21:47: Creating resource group Autodetect
19:21:47: SceneManagerFactory for type 'DefaultSceneManager' registered.
19:21:47: Registering ResourceManager for type Material
19:21:47: Registering ResourceManager for type Mesh
19:21:47: Registering ResourceManager for type Skeleton
19:21:47: MovableObjectFactory for type 'ParticleSystem' registered.
19:21:47: OverlayElementFactory for type Panel registered.
19:21:47: OverlayElementFactory for type BorderPanel registered.
19:21:47: OverlayElementFactory for type TextArea registered.
19:21:47: Registering ResourceManager for type Font
19:21:47: ArchiveFactory for archive type FileSystem registered.
19:21:47: ArchiveFactory for archive type Zip registered.
19:21:47: FreeImage version: 3.13.1
19:21:47: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
19:21:47: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
19:21:47: DDS codec registering
19:21:47: Registering ResourceManager for type HighLevelGpuProgram
19:21:47: Registering ResourceManager for type Compositor
19:21:47: MovableObjectFactory for type 'Entity' registered.
19:21:47: MovableObjectFactory for type 'Light' registered.
19:21:47: MovableObjectFactory for type 'BillboardSet' registered.
19:21:47: MovableObjectFactory for type 'ManualObject' registered.
19:21:47: MovableObjectFactory for type 'BillboardChain' registered.
19:21:47: MovableObjectFactory for type 'RibbonTrail' registered.
19:21:47: Loading library .\RenderSystem_Direct3D9
19:21:47: Installing plugin: D3D9 RenderSystem
19:21:47: D3D9 : Direct3D9 Rendering Subsystem created.
19:21:47: D3D9: Driver Detection Starts
19:21:47: D3D9: Driver Detection Ends
19:21:47: Plugin successfully installed
19:21:47: Loading library .\RenderSystem_GL
19:21:47: Installing plugin: GL RenderSystem
19:21:47: OpenGL Rendering Subsystem created.
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_ParticleFX
19:21:47: Installing plugin: ParticleFX
19:21:47: Particle Emitter Type 'Point' registered
19:21:47: Particle Emitter Type 'Box' registered
19:21:47: Particle Emitter Type 'Ellipsoid' registered
19:21:47: Particle Emitter Type 'Cylinder' registered
19:21:47: Particle Emitter Type 'Ring' registered
19:21:47: Particle Emitter Type 'HollowEllipsoid' registered
19:21:47: Particle Affector Type 'LinearForce' registered
19:21:47: Particle Affector Type 'ColourFader' registered
19:21:47: Particle Affector Type 'ColourFader2' registered
19:21:47: Particle Affector Type 'ColourImage' registered
19:21:47: Particle Affector Type 'ColourInterpolator' registered
19:21:47: Particle Affector Type 'Scaler' registered
19:21:47: Particle Affector Type 'Rotator' registered
19:21:47: Particle Affector Type 'DirectionRandomiser' registered
19:21:47: Particle Affector Type 'DeflectorPlane' registered
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_BSPSceneManager
19:21:47: Installing plugin: BSP Scene Manager
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_CgProgramManager
19:21:47: Installing plugin: Cg Program Manager
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_PCZSceneManager.dll
19:21:47: Installing plugin: Portal Connected Zone Scene Manager
19:21:47: PCZone Factory Type 'ZoneType_Default' registered
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_OctreeZone.dll
19:21:47: Installing plugin: Octree Zone Factory
19:21:47: Plugin successfully installed
19:21:47: Loading library .\Plugin_OctreeSceneManager
19:21:47: Installing plugin: Octree & Terrain Scene Manager
19:21:47: Plugin successfully installed
19:21:47: *-*-* OGRE Initialising
19:21:47: *-*-* Version 1.6.5 (Shoggoth)
19:21:47: Creating resource group Bootstrap
19:21:47: Added resource location 'C:/OgreSDK/media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
19:21:47: Added resource location 'C:/OgreSDK/media' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/fonts' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/materials/programs' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/materials/scripts' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/materials/textures' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/models' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/overlays' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/particle' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/gui' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/dragon.zip' of type 'Zip' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
19:21:47: Added resource location 'C:/OgreSDK/media/packs/skybox.zip' of type 'Zip' to resource group 'General'
19:21:47: D3D9 : RenderSystem Option: Full Screen = No
19:21:47: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
19:21:47: CPU Identifier & Features
19:21:47: -------------------------
19:21:47: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
19:21:47: * SSE: yes
19:21:47: * SSE2: yes
19:21:47: * SSE3: yes
19:21:47: * MMX: yes
19:21:47: * MMXEXT: yes
19:21:47: * 3DNOW: no
19:21:47: * 3DNOWEXT: no
19:21:47: * CMOV: yes
19:21:47: * TSC: yes
19:21:47: * FPU: yes
19:21:47: * PRO: yes
19:21:47: * HT: no
19:21:47: -------------------------
19:21:47: D3D9 : Subsystem Initialising
19:21:47: ***************************************
19:21:47: *** D3D9 : Subsystem Initialised OK ***
19:21:47: ***************************************
19:21:47: D3D9RenderSystem::_createRenderWindow "Main RenderWindow", 800x600 windowed miscParams: externalWindowHandle=1510838
19:21:47: D3D9 : Created D3D9 Rendering Window 'Main RenderWindow' : 784x564, 32bpp
19:21:47: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
19:21:48: Registering ResourceManager for type Texture
19:21:48: Registering ResourceManager for type GpuProgram
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT16_R
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT32_R
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT16_GR
19:21:48: D3D9: Vertex texture format supported - PF_FLOAT32_GR
19:21:48: RenderSystem capabilities
19:21:48: -------------------------
19:21:48: RenderSystem Name: Direct3D9 Rendering Subsystem
19:21:48: GPU Vendor: nvidia
19:21:48: Device Name: NVIDIA GeForce GTX 280
19:21:48: Driver Version: 7.15.11.8224
19:21:48: * Fixed function pipeline: yes
19:21:48: * Hardware generation of mipmaps: yes
19:21:48: * Texture blending: yes
19:21:48: * Anisotropic texture filtering: yes
19:21:48: * Dot product texture operation: yes
19:21:48: * Cube mapping: yes
19:21:48: * Hardware stencil buffer: yes
19:21:48: - Stencil depth: 8
19:21:48: - Two sided stencil support: yes
19:21:48: - Wrap stencil values: yes
19:21:48: * Hardware vertex / index buffers: yes
19:21:48: * Vertex programs: yes
19:21:48: * Fragment programs: yes
19:21:48: * Geometry programs: no
19:21:48: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
19:21:48: * Texture Compression: yes
19:21:48: - DXT: yes
19:21:48: - VTC: no
19:21:48: * Scissor Rectangle: yes
19:21:48: * Hardware Occlusion Query: yes
19:21:48: * User clip planes: yes
19:21:48: * VET_UBYTE4 vertex element type: yes
19:21:48: * Infinite far plane projection: yes
19:21:48: * Hardware render-to-texture: yes
19:21:48: * Floating point textures: yes
19:21:48: * Non-power-of-two textures: yes
19:21:48: * Volume textures: yes
19:21:48: * Multiple Render Targets: 4
19:21:48: - With different bit depths: yes
19:21:48: * Point Sprites: yes
19:21:48: * Extended point parameters: yes
19:21:48: * Max Point Size: 8192
19:21:48: * Vertex texture fetch: yes
19:21:48: - Max vertex textures: 4
19:21:48: - Vertex textures shared: no
19:21:48: * Render to Vertex Buffer : no
19:21:48: * DirectX per stage constants: yes
19:21:48: ResourceBackgroundQueue - threading disabled
19:21:48: Particle Renderer Type 'billboard' registered
19:21:48: SceneManagerFactory for type 'BspSceneManager' registered.
19:21:48: Registering ResourceManager for type BspLevel

wdenslow

18-02-2010 18:22:21

Sorry for the bump, but I still am having difficulties here.

If someone could be gracious enough to download and inspect my project, It would be most appreciated.



http://www.2shared.com/file/11486130/9f ... ial06.html

GantZ

18-02-2010 20:38:41

do you have copy your entire solution ? because i see several problem with it :

-> in x86 mode, you haven't any .cfg files in your output folder (bin/x86/debug) so it won't work with this setting. if you use a x64 OS, you must use this setting, mogre won't work otherwise.
-> check that you got the ninja.mesh file in the media folder you link in the resources.cfg file, (it won't work if it's in a subfolder)
-> you haven't the ogremain.dll file in any of your output folder, but perhaps you got the mogre bin folder in your PATH ? (i never use this setting), otherwise, you have to add it.

AndroidAdam

20-02-2010 02:10:21

when you switched your project to x86 I'm guessing it changed the directories to so that the bin folder now contains two folders, x86 and x64. Like GantZ said you may have the required .cfg's in your x64 release (or debug) folder, but you don't in the newly created x86. Also because of this your resources.cfg references will be off a directory.
for example one of the lines in your Resources.cfg probably says:

FileSystem=../../Media

You'd either need to change all of these lines to read FileSystem=../../../Media or you can move your Media folder into the same directories where the folders x86 and x64 reside.