a new version was uploaded (for Acknex 7.85.4 AND Acknex 8.10) the update of the wrapper includes:
- methods for schedulers now have IEnumerable<ScheduleMethod> as return type instead of IEnumerable ! - instead of PROC_MODE.EARLIEST -> ScheduleMethod.PROC_EARLIEST - yield return Schedule.wait(x) is now the equivalent to lite-c wait(x) - SchedulerEnabled removed - Scheduler code revised - Scheduler.StartScheduler(EventObject, object) added - ent_createterrain -> if position wasn't null an exception was thrown -> bug fixed - execute -> FreeHGlobal was called twice -> caused an exception -> bug fixed - var_for_name added - Scheduler.ThreadExecutingTheScheduler - returns the thread that executes the scheduler
ATTENTION : as mentioned this update changes how PROC_MODE is changed and the return type of functions which are called by the scheduler (this is a quite significant change, but it allows the yield return calls to be far safer (as only allowed variables/objects can be returned) and the speed of the Scheduler is improved as the previous constant casting has now been removed)! thus :
Code:
private IEnumerable bla()
{
yield return 1;
}
now becomes :
Code:
private IEnumerable<ScheduleMethod> bla()
{
yield return 1;
//or: yield return ScheduleMethod.wait(1);
//or: yield return ScheduleMethod.waitForFrames(1);
//ALL these three calls are equivalent !
}