
Problem wih resize after using CloneMesh
Now I'm using the following code line to call the
CloneMeshFVF:
Set tempMesh = frame.GetChildMesh(0).Mesh.CloneMeshFVF(0,
frame.GetChildMesh(0).Mesh.GetFVF, g_dev)
Where tempMesh is a D3DXMesh, frame a CD3DFrame and g_dev
a Direct3DDevice8
I've also tried using this other line, but I also get the
problem with it.
Set tempMesh = frame.GetChildMesh(0).mesh.CloneMesh(0,
d3dxd, g_dev)
Where d3dxd is a D3DXDECLARATOR
Quote:
>-----Original Message-----
>> I have a problem when trying to make a resize if i have
>> use previously the CloseMesh <spelling?> function.
>> The Vb6 crash completely and gives a General Protection
>> Error. I've located where is the problem, and it's when
>> calling to the method g_dev.reset. According with the
>> documentation it's because i haven't freed all the
memory
>That is what the problem sounds like. Could you show us
>how you are calling the CloneMesh function, maybe we can
>spot something. Other than that, I'm just not sure.
>--
>Eric DeBrosse
>http://www.blown.com/dx/
>Microsoft Visual Basic DirectX MVP
>The opinions expressed in this message are my own
personal views and
>do not reflect the official views of Microsoft
Corporation. The MVP program
Quote:
>does not constitute employment or contractual obligation
with Microsoft.
>.