Hi,
I'm facing an intermittent Access Violation in COleVariant destructor during the call to VariantClear() inside the destructor.
The first chance exception dump shows the access violation in oleaut32!VariantClear method.
I'm facing this issue on 64-bit Windows Server 2008 R2 Datacenter SP1. Also, this access violation is intermittent, i.e., with the same input data sometimes there is access violation and sometimes it runs fine.
Is this a known issue on 64-bit Windows Server 2008 R2 Datacenter SP1 ?
Tha sample code snippet is given below:
COleVariant var;
NUMPARSE np; //its members are properly populated with some values.
BYTE digits[SOMELEN]; //has some bytes as digits.
VarNumFromParseNum( &np, digits, VTBIT_R8, (LPVARIANT)var );
return; //access violation occurs here during the call toCOleVariant destructor.
Thanks,
Amit