GeneralLee
27-10-2010 15:24:02
Hello, i've downloaded NxOgre tutorials,but they are made for SampleBrowser.exe.
I've got troubles converting them to my program.(Maybe due to unavailability of nxogre.org)
so here is the setup code:
void setup()
{
mWorld = NxOgre::World::createWorld();
NxOgre::ResourceSystem::getSingleton()->openProtocol(new Critter::OgreResourceProtocol());
mWorld->getRemoteDebugger()->connect();
mSceneMgr = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC);
NxOgre::SceneDescription scene_description;
scene_description.mGravity = NxOgre::Constants::MEAN_EARTH_GRAVITY;
scene_description.mUseHardware = false;
mScene = mWorld->createScene(scene_description);
mScene->getMaterial(0)->setAll(0.1, 0.9, 0.5);
mMeshManager = NxOgre::MeshManager::getSingleton();
mScene->createSceneGeometry(NxOgre::PlaneGeometryDescription());
mRenderSystem = new Critter::RenderSystem(mScene,mSceneMgr);
}
After compiling it crashes:
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\TestLoL.exe', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\NxOgre.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXLoader.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreMain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreTerrain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgrePaging.dll', Binary was not built with debug information.
The program '[212] TestLoL.exe: Native' has exited with code 0 (0x0).
Please help.
spacegaier
27-10-2010 15:56:15
Did you perhaps build your application in debug mode, but try to use the release version of theOgre DLLs (OgreTerrain.dll and OgrePaging.dll are the release versions)?
betajaen
27-10-2010 16:33:09
Can you trace the error for me? Find the offending line in NxOgre?
GeneralLee
27-10-2010 18:04:47
What do you mean? Ogre.log?
18:36:42: Creating resource group General
18:36:42: Creating resource group Internal
18:36:42: Creating resource group Autodetect
18:36:42: SceneManagerFactory for type 'DefaultSceneManager' registered.
18:36:42: Registering ResourceManager for type Material
18:36:42: Registering ResourceManager for type Mesh
18:36:42: Registering ResourceManager for type Skeleton
18:36:42: MovableObjectFactory for type 'ParticleSystem' registered.
18:36:42: OverlayElementFactory for type Panel registered.
18:36:42: OverlayElementFactory for type BorderPanel registered.
18:36:42: OverlayElementFactory for type TextArea registered.
18:36:42: Registering ResourceManager for type Font
18:36:42: ArchiveFactory for archive type FileSystem registered.
18:36:42: ArchiveFactory for archive type Zip registered.
18:36:42: DDS codec registering
18:36:42: FreeImage version: 3.13.1
18:36:42: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
18:36:42: 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
18:36:42: Registering ResourceManager for type HighLevelGpuProgram
18:36:42: Registering ResourceManager for type Compositor
18:36:42: MovableObjectFactory for type 'Entity' registered.
18:36:42: MovableObjectFactory for type 'Light' registered.
18:36:42: MovableObjectFactory for type 'BillboardSet' registered.
18:36:42: MovableObjectFactory for type 'ManualObject' registered.
18:36:42: MovableObjectFactory for type 'BillboardChain' registered.
18:36:42: MovableObjectFactory for type 'RibbonTrail' registered.
18:36:42: Loading library .\RenderSystem_Direct3D9
18:36:42: Installing plugin: D3D9 RenderSystem
18:36:42: D3D9 : Direct3D9 Rendering Subsystem created.
18:36:42: D3D9: Driver Detection Starts
18:36:42: D3D9: Driver Detection Ends
18:36:42: Plugin successfully installed
18:36:42: Loading library .\RenderSystem_GL
18:36:42: Installing plugin: GL RenderSystem
18:36:42: OpenGL Rendering Subsystem created.
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_ParticleFX
18:36:43: Installing plugin: ParticleFX
18:36:43: Particle Emitter Type 'Point' registered
18:36:43: Particle Emitter Type 'Box' registered
18:36:43: Particle Emitter Type 'Ellipsoid' registered
18:36:43: Particle Emitter Type 'Cylinder' registered
18:36:43: Particle Emitter Type 'Ring' registered
18:36:43: Particle Emitter Type 'HollowEllipsoid' registered
18:36:43: Particle Affector Type 'LinearForce' registered
18:36:43: Particle Affector Type 'ColourFader' registered
18:36:43: Particle Affector Type 'ColourFader2' registered
18:36:43: Particle Affector Type 'ColourImage' registered
18:36:43: Particle Affector Type 'ColourInterpolator' registered
18:36:43: Particle Affector Type 'Scaler' registered
18:36:43: Particle Affector Type 'Rotator' registered
18:36:43: Particle Affector Type 'DirectionRandomiser' registered
18:36:43: Particle Affector Type 'DeflectorPlane' registered
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_BSPSceneManager
18:36:43: Installing plugin: BSP Scene Manager
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_CgProgramManager
18:36:43: Installing plugin: Cg Program Manager
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_PCZSceneManager
18:36:43: Installing plugin: Portal Connected Zone Scene Manager
18:36:43: PCZone Factory Type 'ZoneType_Default' registered
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_OctreeZone
18:36:43: Installing plugin: Octree Zone Factory
18:36:43: Plugin successfully installed
18:36:43: Loading library .\Plugin_OctreeSceneManager
18:36:43: Installing plugin: Octree & Terrain Scene Manager
18:36:43: Plugin successfully installed
18:36:43: *-*-* OGRE Initialising
18:36:43: *-*-* Version 1.7.1 (Cthugha)
or code? :
#include "NxOgre.h"
#include "critter.h"
using namespace Ogre;
using namespace NxOgre;
using namespace Critter;
NxOgre::World* mWorld;
NxOgre::Scene* mScene;
Ogre::Root* root=new Ogre::Root;
Ogre::RenderWindow *renderWindow = NULL;
Ogre::SceneManager* mSceneMgr;
float mLastTimeStep;
const NameValuePairList * miscParams;
NxOgre::MeshManager* mMeshManager;
NxOgre::Material* mDefaultMaterial;
Critter::RenderSystem* mRenderSystem;
Cloth* mCloth;
NxOgre::Mesh* mClothMesh;
int mClothSelectedVertex;
Ogre::SceneNode* mClothSelectedVertexMarker;
Ogre::RenderSystem* rsys;
Critter::Body* makeBox(const Matrix44& globalPose, const Vec3& initialVelocity = Vec3::ZERO)
{
Critter::BodyDescription bodyDescription;
bodyDescription.mMass = 40.0f;
bodyDescription.mLinearVelocity = initialVelocity;
Body* box = mRenderSystem->createBody(BoxDescription(1,1,1), globalPose, "cube.1m.mesh", bodyDescription);
return box;
}
void setup()
{
mWorld = NxOgre::World::createWorld();
NxOgre::ResourceSystem::getSingleton()->openProtocol(new Critter::OgreResourceProtocol());
mWorld->getRemoteDebugger()->connect();
mSceneMgr = Ogre::Root::getSingleton().createSceneManager(Ogre::ST_GENERIC);
NxOgre::SceneDescription scene_description;
scene_description.mGravity = NxOgre::Constants::MEAN_EARTH_GRAVITY;
scene_description.mUseHardware = false;
mScene = mWorld->createScene(scene_description);
mScene->getMaterial(0)->setAll(0.1, 0.9, 0.5);
mMeshManager = NxOgre::MeshManager::getSingleton();
mScene->createSceneGeometry(NxOgre::PlaneGeometryDescription());
mRenderSystem = new Critter::RenderSystem(mScene,mSceneMgr);
}
int main(int argc, char* argv[])
{
//renderWindow = root->getSingleton().createRenderWindow("Main",640,480,false);
setup();
makeBox(0);
return 0;
}
or VS9 comments?:
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\TestLoL.exe', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\NxOgre.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXLoader.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreMain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreTerrain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgrePaging.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\RenderSystem_Direct3D9.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\D3DX9_42.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvd3dum.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\RenderSystem_GL.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvoglv32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
The thread 'Win32 Thread' (0x16c8) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x17f0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x123c) has exited with code 0 (0x0).
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_ParticleFX.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_BSPSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_CgProgramManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\cg.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_PCZSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_OctreeZone.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_OctreeSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dhcpcsvc.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Engine\v2.8.3\PhysXCooking.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Engine\v2.8.3\PhysXCore.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\cudart32_30_9.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvcuda.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'TestLoL.exe': Unloaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll', Binary was not built with debug information.
'TestLoL.exe': Unloaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\Bonjour\mdnsNSP.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'
First-chance exception at 0x714eae7a in TestLoL.exe: 0xC0000005: Access violation reading location 0x00000000.
betajaen
27-10-2010 18:17:32
Run the program within Visual Studio, when it crashes it will point to the line (literally opens up the file and moves the cursor to it) of the line that crashes.
GeneralLee
27-10-2010 18:38:45
It crashes on "makebox(0)" line in main.
without it it just closes:
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\TestLoL.exe', Symbols loaded.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\NxOgre.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXLoader.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcp90.dll'
'TestLoL.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb\msvcr90.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreMain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgreTerrain.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\OgrePaging.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\RenderSystem_Direct3D9.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\d3d9.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\version.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\D3DX9_42.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvd3dum.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\RenderSystem_GL.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvoglv32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
The thread 'Win32 Thread' (0xa44) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xb90) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfc) has exited with code 0 (0x0).
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_ParticleFX.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_BSPSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_CgProgramManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\cg.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_PCZSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_OctreeZone.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\Plugin_OctreeSceneManager.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dhcpcsvc.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Engine\v2.8.3\PhysXCooking.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Engine\v2.8.3\PhysXCore.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\cudart32_30_9.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvcuda.dll', Binary was not built with debug information.
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nvapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll'
'TestLoL.exe': Unloaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll'
'TestLoL.exe': Loaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll', Binary was not built with debug information.
'TestLoL.exe': Unloaded 'C:\Users\eXtremal\Documents\Visual Studio 2008\Projects\TestLoL\bin\Release\PhysXDevice.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll'
'TestLoL.exe': Loaded 'C:\Program Files (x86)\Bonjour\mdnsNSP.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll'
'TestLoL.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL'
The thread 'Win32 Thread' (0x143c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1180) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x1764) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x135c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x14bc) has exited with code 0 (0x0).
The program '[328] TestLoL.exe: Native' has exited with code 0 (0x0).
betajaen
27-10-2010 19:03:33
It's like finding a needle in...well some needles there.
There could be a number of things wrong, I really need to find out in what part of NxOgre it crashes. It is likely to be a null/uninitialised pointer problem, probably in your setup code. If you can
run a stack trace whilst your debugging your application when it crashed, and post the results (print screen/copy+paste) here, I'd may know what is up. Also you can look at the variables whilst it's debugging, just move the mouse over them, and it should tell you the value; look for ones that are 0x000000 (null), or like it.
betajaen
27-10-2010 19:45:26
Urgh, no help from there then.
Just try commenting out some of the setup code then compile/run again; makebox, rendersystem, scene, world, ogre, in that order. If you can figure out which line it's breaking then we know. Personally, I think it's the order of creation of those classes.
GeneralLee
27-10-2010 20:08:14
BTW, is there a sample of NxOgre without SampleBrowser.exe?
betajaen
27-10-2010 20:30:02
No, not really. But your code is one of the simplest you can get.
GeneralLee
27-10-2010 20:36:16
What about FrameListener, is it optional?
I was using XNA framework and it has Update method. Is FrameListener something like "Update"?