Hi,
Having given up on CsGL, I have recently integrated the Tao OpenGL
components into a VB.NET application that I am developing. I have a
problem though in that it works fine on two of the machines we have,
but on one of the laptops it crashes. When I say crashes, I mean the
CPU use goes to 100% and the application hangs. The only way to recover
is to kill it from the Task Manager.
The application is a CAD package and it has a "3D Viewer" and "3D
Editor" which come up in modal windows from the main form. I am
creating the 3D control as an inherited control from the
Tao.Platform.Windows.SimpleOpenGlControl. I ensure that the
InitializeContexts sub is called on the control in the New on the form
and the DestroyContexts sub is called on the control in the Dispose on
the form.
The refreshing is done "as needed" within the form, so e.g. only when
the building is rotated or zoomed. Otherwise, no refresh/redrawing is
done.
Further symptoms are that when you open the sub-form, the CPU use
creeps up e.g. by 20% and when you close the form it sometimes either
does not go back down, or only goes back down a little bit. So after
say 3 or 4 times of opening the sub-form and closing it again, the CPU
use for my application will be at 60% even though there is nothing else
happening.
I am using Tao 1.2 at the moment as Tao 1.3 had only just been released
when I integrated the code and I thought it would be better tested in
the community. Should I switch to Tao 1.3 for better stability?
Also, is there something I am not doing correctly, or something
missing. Thoughts that occur to me are that I am not initialising
things or destroying things correctly. Or maybe there are further .dll
files etc. that need to be put in the Windows System folder to support
Tao on target systems?
Any assistance would be much appreciated.
Thanks,
Mark.