I'm not sure if this helps, but I kept running into this error whilst using the oracle XSU and implementing in Delphi.
The cause turned out to be that I was attempting to return a 64 bit integer into a 32 bit integer parameter, which I guess is a little unreasonable.
I am unable to check at...