I don't think this error is directly related to Win32::TieRegistry. The are report of this same error occuring when using Win32::AdminMisc and Win32::NetAdmin::CreateUser

Common elements seem to be apis that are communicating across the LAN, and an NT machine talking to a "K machine or vice versa.

The error is indicating that a previous call to some (network) IO was started asynchronously, and it hasn't yet completed, or it hasn't been reset prior to another attempt being made to perform further IO.

I think that you may be able to work around the problem by inserting a delay prior to calling which ever call is resulting in the error. I'd start with using 10 seconds, and if that is successful, slowly trim until the problem returns. I would use Win32::Sleep() in preference to perl's sleep as it allows millsecond increments, and may also relinguish more timeslice to the system and allow whatever process needs to complete, to complete more quickly. It is available by default on AS builds of perl, there is no need to load any extra modules to gain access to it.

The fact that the error is occuring from totally separate API's, and also I saw some evidence that it can be related to connections made from NT to 2K machines when perl is not involved, which suggests that this may well be a system level bug or failure rather than a perl or module problem per se.

Please come back and report your findings if you try this. Thanks.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!
Wanted!


In reply to Re: Win32::TieRegistry and Connect Method Errors by BrowserUk
in thread Win32::TieRegistry and Connect Method Errors by kakaze

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.