<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=16&amp;t=655" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2011-04-19T06:28:28+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=655</id>
<entry>
<author><name><![CDATA[koga]]></name></author>
<updated>2011-04-19T06:28:28+01:00</updated>
<published>2011-04-19T06:28:28+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=655&amp;p=2657#p2657</id>
<link href="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2657#p2657"/>
<title type="html"><![CDATA[Re: YubiClientAPI.dll hang up]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2657#p2657"><![CDATA[
Thanks for reply.<br /><br />If we call GetreadSerial without IsInserted, same problem has happen.<br />And I don't know how long time I should add a delay.<br /><br />So I decide to use IsInserted of YubiKCom.dll until new library is released.<br />That solution is working well, for now.<br /><br />Regards,<br /><br />koga<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1395">koga</a> — Tue Apr 19, 2011 6:28 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jakob]]></name></author>
<updated>2011-04-05T21:38:10+01:00</updated>
<published>2011-04-05T21:38:10+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=655&amp;p=2634#p2634</id>
<link href="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2634#p2634"/>
<title type="html"><![CDATA[Re: YubiClientAPI.dll hang up]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2634#p2634"><![CDATA[
It seems like you've found is a potential race issue here. When the instance is created, the worker thread monitoring the key status may not have started yet, thereby causing the main thread to hang.<br /><br />Can you please try to add a short delay between the CoCreateInstance and the actual call and see if that cures your problem ?<br /><br />Does the supplied MFC test container works as expected ?<br /><br />Thanks for your help,<br /><br />JakobE<br />Hardware- and firmware guy @ Yubico<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=83">Jakob</a> — Tue Apr 05, 2011 9:38 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koga]]></name></author>
<updated>2011-04-04T02:12:47+01:00</updated>
<published>2011-04-04T02:12:47+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=655&amp;p=2632#p2632</id>
<link href="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2632#p2632"/>
<title type="html"><![CDATA[YubiClientAPI.dll hang up]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=655&amp;p=2632#p2632"><![CDATA[
We use YubiClientAPI.dll to get serial number.<br /><br />IUnkown::Release() method is hang up when yubikey is not inserted.<br /><br />following is our code snippet:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">IYubiClient yubiClient;<br />ycRETCODE nRet;<br />HRESULT hr = CoCreateInstance(<br />            CLSID_YubiClient, 0,<br />            CLSCTX_ALL,<br />            IID_IYubiClient,<br />            reinterpret_cast&lt;void **&gt;(&amp;yubiClient;)<br />);<br /><br />if ( m_pcomYubiClient-&gt;GetisInserted() == ycRETCODE_OK ) {<br />    nRet = m_yubiClient-&gt;GetreadSerial(ycCALL_BLOCKING);<br />    if (nRet == ycRETCODE_OK ) {<br />        ....<br />    }<br />}<br /><br />yubiClient-&gt;Release();   // &lt;-- Hanging up<br /><br />return nRet;<br /><br /></div><br /><br />Is that misuse of objet? How can I release object?<br />Thanks,<br /><br />koga<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1395">koga</a> — Mon Apr 04, 2011 2:12 am</p><hr />
]]></content>
</entry>
</feed>