The problem is clearly described in https://rdotnet.codeplex.com/discussions/458695
* Brush up on Marshal and P/Invoke options to see what's feasible
* Have tests, unit tests (regression tests) preferably
Comments: Fixed on branch jperraud as of Dec 2013, for numeric values. Note that strings/character do not have improved performance however.