I have variantinit immediately to variantClear like below,
VariantClear(&var); VariantInit(&var);
VariantInit is crashing in few places and few other places it's not crashing even though I have same sequence in both cases. What could be the reason for VariantInit to fail?