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

here's the link:

AcknexWrapper_8_10_2_2_1.zip


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 !
}


and
Code:
private IEnumerable bla()
{
yield return 1;
yield return Scheduler.PROC_MODE.PROC_EARLIEST;
yield return 1;
}


now becomes :
Code:
private IEnumerable<ScheduleMethod> bla()
{
yield return 1;
yield return ScheduleMethod.PROC_EARLIEST;
yield return 1;
}



Last edited by Stromausfall; 03/03/11 23:57.

get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread