I tried again with a few other random C dll's stolen around my system and they all work perfectly. it's only the D dll that gives me trouble.