Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #638: Init3DNoRender
Product:
TV3D SDK 6.5
Language:
C#
Current State:
Closed
Resolution:
Fixed
Created On:
October 10th, 2006
Last Modified:
November 23rd, 2006
Reported By:
bruffner
Init3DNoRender must be passed a valid hwnd which doesn't really make sense to the context of the method since its for nonvisual work.

For a unit test i did:

TVEngine tv = new TVEngine();
tv.SetBetaKey(TVKeyProvider.TvBetaUser, TVKeyProvider.TvBetaKey);
tv.SetDebugFile("c:\\debug.txt");
tv.Init3DNoRender(new System.IntPtr(0));

when TVScene.CreateMeshBuilder is called it throws a memory pointer exception.

if the above code is changed to:

Form frm = new Form();
TVEngine tv = new TVEngine();
tv.SetBetaKey(TVKeyProvider.TvBetaUser, TVKeyProvider.TvBetaKey);
tv.SetDebugFile("c:\\debug.txt");
tv.Init3DNoRender(frm.Handle);

All functionality works including the CreateMeshBuilder.

Comments:

Posted by SylvainTV on November 23rd, 2006 at 1:19 AM
Added a fix for that.
The engine will create a temp HWND for the device use.
(directX requires one anyway)