Re: Matt - More ADO/EuCom questions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jonas Temple wrote:
> 
> Now how about this...if I run the following code snippet with trace then 
> rtn_val for the second field is returned as an atom.  Without trace it's 
> returned as a sequence.  Hence the need to test and peek_string.  Oddly 
> enough, both work!

That's really odd, and I can't imagine why that happens.  There's a global
variable called return_true_variant.  If it's 0, then invoke() will try
to convert the variant (pointer) to a real value via get_variant().

What happens at the end of invoke?  The only thing I can think of is that
for some reason, the variant was set up as a VT_I4 rather than a 
VT_BSTR (even though it's really a pointer to the string).  If that's
what's going on, then it sounds like something happening on the ADO side
of things.  Either way, I have no clue why tracing would make any 
difference.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu