Hi Adam,
I'm not in my work now, so I'll send you the code tomorrow. However, as I said, the code should be the same in the version 5, isn't it? So, why is not working now?. I'll send you the code of your own samples and if you help me to make your own code working in my IIS server, I will know if something is wrong in my code.
The only thing I could see but probably you must know is that _CState reference seems to come from a problem when creating the object. It looks like the object is not properly created and then _CState is trying to access it.
David