I'm probably doing something horribly wrong, but I'm getting a crash when attempting to store a vector3 (from the scriptmath3d add on) in a CScriptAny object in script. Basically: any storage; storage.store(vector3(1,1,1));
The issue seems to be with the reference pointer coming out of the script being invalid (in one case it was 0x01)
Although this may be less a CScriptAny problem and more an issue with returning value types via a method with variable parameters. This is with version 2.20.3, VS2010, x86 compile.
Seems that this problem still exists. I've just built the latest version and CScriptAny::store(void *ref, int refTypeId) crashes when trying to store a value type. I run it through the debugger and when the argument is a value type, this method is called with a NULL parameter on ref. I can post this particular type's registration and my script code if it would help you track down the issue.