Yes i had the same problem too.
To give you an idea what i did.

Code:
private void button_LoadLevel_Click(object sender, EventArgs e)
        {
            //you can still put opendialog here
            //i use a global "levelloaded" string in a static
            //class called Global accessed through properties.
            ...
            Global.strLoadedLevel = opendialog.filename;

            Scheduler.AddEventVoidThreadSafe(LoadLevel);
        }
     
private IEnumerable<ScheduleMethod> LoadLevel()
        {
            //i use a Global.strLoadedLevel as string
            if(Global.strLoadedLevel != string.empty}
             {
                EngFun.level_load(Global.strLoadedLevel);

		//reinit camera
                InitCamera();
             }
            yield break;
        }



Calling some engine functions from a Form event will cause thread problems.
Hope this makes sense.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.