I'm trying to use Direct3D retained mode with BC++Builder to display a
height-field (z=f(x,y) function). But it seems to produce random invalid
operation (EInvalidOp) or division byzero (EDivideByZero).
Sometimes, I can recover from these exceptions, but only for a while.
Using de*, I found that it crashes during a call to Render()
function (IDirect3DRMViewport method).
I compiled the 'viewer' DX5SDK example (with some minor modifications to
compile it properly with BC++Builder). It crashed with the same error at
the very beginning, but it can recover and the Microsoft logo turn in
space for 180deg before a new exception comes.
It seems that some specific angles produce those crashes.
Does anybody have the same (or nearly) problem ?
Is it a BC++Builder bug, a direct3D bug or have I done something wrong ?
I can mail you the source code if you need.