Thank you ventilator for your input !
I will look into coroutines - they could be the key ^^

your approach to simulating pointers is also quite interesting ! the c# wrapper is able to get a pointer of a local variable but not of arbitrary expressions - lambda may be worth a look ^^.


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