Compiling plugin in x64 bit works but rF2 crashes

Discussion in 'Plugins' started by B1K3R, Jul 25, 2014.

  1. B1K3R

    B1K3R Registered

    Joined:
    Apr 6, 2012
    Messages:
    1,605
    Likes Received:
    88
    Hi fellow developers :)

    I have a slight problem when compiling the custom rF2 plugin x64 for my live timing app. Changed all the linking libraries to x64 and it compiles ok. However, the x64 version is crashing :/ When I debug it, it crashes on this line:

    memcpy(&sad.sin_addr, ptrh->h_addr, ptrh->h_length);

    Below is the error screen shot. When compiled 32 bit all works well. My C++ knowledge is very limited and I can't figure out what is wrong.

    Thanks!

    View attachment 13699
     
    Last edited by a moderator: Jul 25, 2014
  2. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
  3. B1K3R

    B1K3R Registered

    Joined:
    Apr 6, 2012
    Messages:
    1,605
    Likes Received:
    88
    Thanks Gerald! I'll have a look now :)

    Sent from my GT-I9300 using Tapatalk
     
  4. B1K3R

    B1K3R Registered

    Joined:
    Apr 6, 2012
    Messages:
    1,605
    Likes Received:
    88

Share This Page