Yet another Exception Violation error

grizzley90

10-11-2006 14:03:23

This time i can't even get close to the error .... :? :? :?

...
08:53:02: ***************************************
08:53:02: *** D3D9 : Subsystem Initialised OK ***
08:53:02: ***************************************
08:53:02: ResourceBackgroundQueue - threading disabled
08:53:02: Particle Renderer Type 'billboard' registered
08:53:02: Creating resource group Core
08:53:02: Added resource location 'Media/OgreCore.zip' of type 'Zip' to resource group 'Core'
08:53:02: Initialising resource group Core
08:53:02: Parsing scripts for resource group Core
08:53:02: Parsing script OgreCore.material
08:53:02: Parsing script OgreProfiler.material
08:53:02: Parsing script Ogre.fontdef
08:53:02: Parsing script OgreDebugPanel.overlay
08:53:02: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
08:53:02: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
08:53:02: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
08:53:02: Font BlueHighwayusing texture size 512x512
08:53:02: Info: Freetype returned null for character 127 in font BlueHighway
08:53:02: Info: Freetype returned null for character 128 in font BlueHighway
08:53:02: Info: Freetype returned null for character 129 in font BlueHighway
08:53:02: Info: Freetype returned null for character 130 in font BlueHighway
08:53:02: Info: Freetype returned null for character 131 in font BlueHighway
08:53:02: Info: Freetype returned null for character 132 in font BlueHighway
08:53:02: Info: Freetype returned null for character 133 in font BlueHighway
08:53:02: Info: Freetype returned null for character 134 in font BlueHighway
08:53:02: Info: Freetype returned null for character 135 in font BlueHighway
08:53:02: Info: Freetype returned null for character 136 in font BlueHighway
08:53:02: Info: Freetype returned null for character 137 in font BlueHighway
08:53:02: Info: Freetype returned null for character 138 in font BlueHighway
08:53:02: Info: Freetype returned null for character 139 in font BlueHighway
08:53:02: Info: Freetype returned null for character 140 in font BlueHighway
08:53:02: Info: Freetype returned null for character 141 in font BlueHighway
08:53:02: Info: Freetype returned null for character 142 in font BlueHighway
08:53:02: Info: Freetype returned null for character 143 in font BlueHighway
08:53:02: Info: Freetype returned null for character 144 in font BlueHighway
08:53:02: Info: Freetype returned null for character 145 in font BlueHighway
08:53:02: Info: Freetype returned null for character 146 in font BlueHighway
08:53:02: Info: Freetype returned null for character 147 in font BlueHighway
08:53:02: Info: Freetype returned null for character 148 in font BlueHighway
08:53:02: Info: Freetype returned null for character 149 in font BlueHighway
08:53:02: Info: Freetype returned null for character 150 in font BlueHighway
08:53:02: Info: Freetype returned null for character 151 in font BlueHighway
08:53:02: Info: Freetype returned null for character 152 in font BlueHighway
08:53:02: Info: Freetype returned null for character 153 in font BlueHighway
08:53:02: Info: Freetype returned null for character 154 in font BlueHighway
08:53:02: Info: Freetype returned null for character 155 in font BlueHighway
08:53:02: Info: Freetype returned null for character 156 in font BlueHighway
08:53:02: Info: Freetype returned null for character 157 in font BlueHighway
08:53:02: Info: Freetype returned null for character 158 in font BlueHighway
08:53:02: Info: Freetype returned null for character 159 in font BlueHighway
08:53:02: Info: Freetype returned null for character 160 in font BlueHighway
08:53:02: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
08:53:02: Parsing script OgreLoadingPanel.overlay
08:53:02: Finished parsing scripts for resource group Core
08:53:02: Loading library Plugin_OctreeSceneManager.dll
08:53:02: Loading library Plugin_ParticleFX.dll
08:53:02: Particle Emitter Type 'Point' registered
08:53:02: Particle Emitter Type 'Box' registered
08:53:02: Particle Emitter Type 'Ellipsoid' registered
08:53:02: Particle Emitter Type 'Cylinder' registered
08:53:02: Particle Emitter Type 'Ring' registered
08:53:02: Particle Emitter Type 'HollowEllipsoid' registered
08:53:02: Particle Affector Type 'LinearForce' registered
08:53:02: Particle Affector Type 'ColourFader' registered
08:53:02: Particle Affector Type 'ColourFader2' registered
08:53:02: Particle Affector Type 'ColourImage' registered
08:53:02: Particle Affector Type 'ColourInterpolator' registered
08:53:02: Particle Affector Type 'Scaler' registered
08:53:02: Particle Affector Type 'Rotator' registered
08:53:02: Particle Affector Type 'DirectionRandomiser' registered
08:53:02: Particle Affector Type 'DeflectorPlane' registered
08:53:02: Loading library Plugin_CgProgramManager.dll
08:53:02: Creating viewport on target 'Pure3D - Testing', rendering from camera 'MainCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
08:53:02: Viewport for camera 'MainCam', actual dimensions L: 0 T: 0 W: 800 H: 600
08:53:02: Added resource location 'Media/Characters' of type 'FileSystem' to resource group 'General'
08:53:02: Parsing scripts for resource group Autodetect
08:53:02: Finished parsing scripts for resource group Autodetect
08:53:02: Parsing scripts for resource group General
08:53:02: Parsing script EvilCharacter.material
08:53:02: Finished parsing scripts for resource group General
08:53:02: Parsing scripts for resource group Internal
08:53:02: Finished parsing scripts for resource group Internal
08:53:02: Mesh: Loading EvilCharacter.mesh.
08:53:04: Unregistering ResourceManager for type BspLevel
08:53:04: *-*-* OGRE Shutdown
08:53:04: Unregistering ResourceManager for type Compositor
08:53:04: Unregistering ResourceManager for type Font
08:53:04: Unregistering ResourceManager for type Skeleton
08:53:04: Unregistering ResourceManager for type Mesh
08:53:04: Unregistering ResourceManager for type HighLevelGpuProgram
08:53:04: Unloading library Plugin_CgProgramManager.dll
08:53:04: Unloading library Plugin_ParticleFX.dll
08:53:04: Unloading library Plugin_OctreeSceneManager.dll


It then just gives me a system access violation exception error....

public void Destroy()
{
Mogre.ResourceGroupManager.Singleton.ShutdownAll();
mWindow.Destroy();
if (mWindow != null)
{
mWindow.Dispose();
mWindow = null;
}
mRoot.Dispose(); //<=== LINE WHERE IT DIES
mReady = false;
}


I am using managed direct sound but i destroy that before destroying ogre so i have no clue what to do... I didn't have this problem before.

Bekas

10-11-2006 15:20:29

See http://www.ogre3d.org/wiki/index.php/Mogre_FAQ

grizzley90

10-11-2006 15:41:28

Im not using any sharedptrs however i am using nodes and entities and cameras ... and those are being disposed and nulled before the root.dispose function... :?

Bekas

10-11-2006 15:49:48

At what line does the crash occur ? [edit] I mean in Ogre's source [/edit]

grizzley90

10-11-2006 16:12:40



Don't know if that helps... Im gonna check what line soon enough.

Bekas

10-11-2006 16:50:07

The line would be useful.
And get these latest binaries to see if it's an issue that is already solved.

grizzley90

10-11-2006 16:59:01

nope the latest binaries didn't help.. how do i find out the line ? ... more specifically how do i select the source file in the last step in mogre faq?

Bekas

10-11-2006 17:27:08

Use the .pdb file with the SDK binaries. When the exception is caught, select 'break' and check out the call stack (and there should be a dialog poping out to select the path of the source file).

grizzley90

10-11-2006 17:41:23

there isn't any mogre.pdb anywhere... only ogremain_d.pdb and ogreguirenderer...


i can't find it anywhere.... not even with the latest binaries...

Bekas

10-11-2006 17:49:55

I meant the ogremain_d.pdb file. Don't use it with the latest binaries.

grizzley90

10-11-2006 19:04:39

I reinstalled the sdk... and it started working .... i honestly dont know why it was causing me so much pain before.... :? :? :? I also removed the references to mogre from my app (its still in my engine) but i dont believe that was the cause of the error.... :?

Bekas

10-11-2006 19:14:04

Are you using threads? There's a slight chance of weird things happening if you don't dispose at the right thread..

grizzley90

11-11-2006 04:12:47

I don't think so... :?