#3 Remote CDDB fails on 2nd attempt

closed-fixed
nobody
None
5
2001-06-05
2001-06-02
Philip Van Baren
No

The second time a remote CDDB command is used, the
program crashes. (testing in windows 2000) The
problem is the CDdb::InitWinSock() function only calls
the AfxSocketInit() the first time this function is
called, but it needs to be called once for each new
thread. Removing the if(bInit) logic, so that the
AfxSocketInit() function is ALWAYS called, fixes the
problem.

Discussion

  • Albert L Faber
    Albert L Faber
    2001-06-05

    • status: open --> closed-fixed
     
  • Albert L Faber
    Albert L Faber
    2001-06-05

    Logged In: YES
    user_id=1069

    I removed the code ( however, it contradicts with the
    Microsoft Documentation, which states that you only have to
    call it once ( they recommend to call it in the
    InitInstance method of the application ).