Thread: Weird C++ Socket Problem

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    1

    Weird C++ Socket Problem

    Hey all, wondering if you can help me...

    I'm trying to compile some code which uses Winsock (cpIRC wrapper) yet my exe keeps crashing when the socket trys to initilize...

    When using Visual C++ 6.0 Standard and I compile in debug or release, I get
    Failed to open streams!
    Code:
    fdopen(irc_socket, "w");
    When I use Visual Studio .NET 2005 I get
    Microsoft Visual Studio C Runtime Library has detected a fatal error in hh.exe.

    Press Break to debug the program or Continue to terminate the program.
    in debug and the program just opens and closes without error in release. It seems to break on line 65:
    Code:
    _debugger_hook_dummy = 0;
    of dbghook.c.

    Now I'm thinking this cpIRC wrapper is messed up, so I compile a _simple_ program which also utilizes Winsock, and I get:
    hh.exe has encounted a serious error and needs to be closed
    in both 6.0 and .NET 2005.

    Both using the socket() function by the way....

    I've asked someone else to compile both, and they both work fine, so obviously my setup?

    I'm using Windows XP with SP2. VS2005.NET:
    Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework Version 2.0.50727
    Visual Studio C++ 6.0 STANDARD, I've also got the C++ Service Pack 6 installed along with the 'Microsoft Platform SDK for Windows Server 2003 R2'

    So, anyone got any ideas?

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Socket or send() problem?
    By Achy in forum C Programming
    Replies: 5
    Last Post: 06-09-2006, 01:09 PM
  2. very weird problem (pointers I think)
    By hannibar in forum C Programming
    Replies: 2
    Last Post: 10-11-2005, 06:45 AM
  3. sockets problem programming
    By kavejska in forum C Programming
    Replies: 0
    Last Post: 07-25-2005, 07:01 AM
  4. Weird connection problem.
    By tilex in forum Networking/Device Communication
    Replies: 6
    Last Post: 02-06-2005, 10:11 AM
  5. Weird mouse problem in XP
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 06-16-2004, 11:47 AM