Got an unhandled exception error on exporting to Rfactor..... can anyone help or tell me what this means? I really really REALLY want to be able to rescue this....
edit: I've removed all object, Sobjects, and walls, and still get this error.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
Error in the application.
-2005530516 (D3DERR_INVALIDCALL)
at Microsoft.DirectX.Direct3D.BaseMesh.Clone(MeshFlags options, VertexElement[] declaration, Device device)
at BobsBits.rFactor_GMT.PopulateFromTrackOrWallMesh(Mesh Mesh, Vector3 Offset, SurfaceMaterials loSurfaceMaterials, String lsName, XPacks l_XPacks, Boolean lbReceiveLighting, Single LODIn, Single LODOut, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.CreateSurfaceObject(Surface Surface, String TrackPiece, String Extension, Int32& SurfaceCount, Boolean Driveable, Boolean Collideable, Boolean Moveable, Boolean Render, Boolean ShadowReceiver, Boolean ReceiveLighting, Shadows Shadow, Boolean ShadowOnMoveables, ShadowCasts ShadowCast, ShadowQuality ShadowQuality, Single LODIn, Single LODOut, VisibilityGroup rFactorVisGroup, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.CreateSurfacesObjects(Surfaces Surfaces, String TrackPiece, String Extension, Boolean Driveable, Boolean Collisions, Boolean Moveable, Boolean Renderable, Boolean ShadowReceiver, Boolean ReceiveLighting, Shadows Shadow, Boolean ShadowOnMoveable, ShadowCasts ShadowCast, ShadowQuality ShadowQuality, Single LODIn, Single LODOut, VisibilityGroup rFactorVisGroup, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.AddTrack(Int32 TrackId)
at BobsBits.ISIEngine.rFactor_Venue.AddTracks()
at BobsBits.ISIEngine.rFactor_Venue.CreateAll(Vector3 Offset, String VenueFolder, String TrackFolder)
at BobsBits.Venue.ExportForrFactor(String ExePath, String VenueFolder, String TrackFolder, String VenueName, String TrackName, Boolean OverwriteTDF, Boolean OverwriteGDB, Boolean OverwriteSCN, Boolean OverwriteAIW, Boolean OverwriteCAM)
at BobsTrackBuilder.frmExport.butrFactorExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
edit: I've removed all object, Sobjects, and walls, and still get this error.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
Error in the application.
-2005530516 (D3DERR_INVALIDCALL)
at Microsoft.DirectX.Direct3D.BaseMesh.Clone(MeshFlags options, VertexElement[] declaration, Device device)
at BobsBits.rFactor_GMT.PopulateFromTrackOrWallMesh(Mesh Mesh, Vector3 Offset, SurfaceMaterials loSurfaceMaterials, String lsName, XPacks l_XPacks, Boolean lbReceiveLighting, Single LODIn, Single LODOut, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.CreateSurfaceObject(Surface Surface, String TrackPiece, String Extension, Int32& SurfaceCount, Boolean Driveable, Boolean Collideable, Boolean Moveable, Boolean Render, Boolean ShadowReceiver, Boolean ReceiveLighting, Shadows Shadow, Boolean ShadowOnMoveables, ShadowCasts ShadowCast, ShadowQuality ShadowQuality, Single LODIn, Single LODOut, VisibilityGroup rFactorVisGroup, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.CreateSurfacesObjects(Surfaces Surfaces, String TrackPiece, String Extension, Boolean Driveable, Boolean Collisions, Boolean Moveable, Boolean Renderable, Boolean ShadowReceiver, Boolean ReceiveLighting, Shadows Shadow, Boolean ShadowOnMoveable, ShadowCasts ShadowCast, ShadowQuality ShadowQuality, Single LODIn, Single LODOut, VisibilityGroup rFactorVisGroup, Boolean IsTreeWall)
at BobsBits.ISIEngine.rFactor_Venue.AddTrack(Int32 TrackId)
at BobsBits.ISIEngine.rFactor_Venue.AddTracks()
at BobsBits.ISIEngine.rFactor_Venue.CreateAll(Vector3 Offset, String VenueFolder, String TrackFolder)
at BobsBits.Venue.ExportForrFactor(String ExePath, String VenueFolder, String TrackFolder, String VenueName, String TrackName, Boolean OverwriteTDF, Boolean OverwriteGDB, Boolean OverwriteSCN, Boolean OverwriteAIW, Boolean OverwriteCAM)
at BobsTrackBuilder.frmExport.butrFactorExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)