This project is read-only.
1

Resolved

Operation is not valid due to the current state of the object.

description

Hi,
 
I have installed the latest version of Virtual Earth 3D and the latest build released yesterday. I can run the sample provided for WPF and all works well, however when I add InfoStrat.VE to my project and add a map to a use control i get the following error when the user control loads:
 
Operation is not valid due to the current state of the object.
 
public void InitRenderEngine()
    {
        this.ManualInitialize();
         this.Host.RenderEngine.ManuallyInitializeRender(); -------BREAKS HERE
         this.Host.RenderEngine.ManuallyRenderNextFrame();
 
        PositionStep positionStep = new PositionStep(this.Host.RenderEngine.StepManager);
 
        this.Host.RenderEngine.StepManager.InsertBefore(typeof(RenderStep), positionStep);
 
    }
 
Is this something anone else has experience, any ideas?
 
Many thanks
 
Jay

comments