Incidentally, if you ever want to do a version which uses R.dll directly (and consequently passes arrays natively), I would be happy to assist in any way I could, vc or lazarus. It would be imho.