Thread: Link error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C maniac
    Join Date
    Aug 2004
    Location
    Cyberwarping to Middle Earth
    Posts
    154
    Therefore, incorrect parms, passing an unallocated pointer by value, or perhaps no memory left .

    [edit]Here's your problemo:

    Code:
    DWORD status=GetAdaptersInfo(Adap,&len)
    It should be:
    Code:
    DWORD status=GetAdaptersInfo(Adap,len)
    P.S. And maybe len should equal sizeof(structname) rather than sizeof(varname).

    If I'm wrong, please tell me, and I'll look again.
    [/edit]
    Last edited by kawk; 09-27-2005 at 04:11 PM.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    ... and what did you think reporting it would do exactly? Besides wasting all of the mods time, who will see the mail and look to see if it has been handled... not a good way to go.

    This is a reply to the reporter, not to the thread. S/he knows who that is.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    4

    Red face

    Quote Originally Posted by kawk
    Therefore, incorrect parms, passing an unallocated pointer by value, or perhaps no memory left .

    [edit]Here's your problemo:

    Code:
    DWORD status=GetAdaptersInfo(Adap,&len)
    It should be:
    Code:
    DWORD status=GetAdaptersInfo(Adap,len)
    P.S. And maybe len should equal sizeof(structname) rather than sizeof(varname).

    If I'm wrong, please tell me, and I'll look again.
    [/edit]
    Were you really so busy at the time you posted that post that you asked me to not pass by a reference but incorectly by value instead ??? That won't work. Even though I get sizeof a struct, what is going to change then ? Nothing at all

    It just aborts while executing and the error is just as mentioned

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  3. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  5. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 07:17 PM