VC++ 2008, Debug Assertion Failed File: ../crt/src/memcpy_s.c Line:55 Expre dst!=NUL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shrishail
    New Member
    • Jan 2011
    • 1

    VC++ 2008, Debug Assertion Failed File: ../crt/src/memcpy_s.c Line:55 Expre dst!=NUL

    Hello Everyone,
    I am Transferring the data using two proxies.While transferring huge file of more than 1Gb from Client to server or Server to Client am getting the error as Debug Assertion failed in the windows file ../../crt/src/memcpy_s.c LIne:55 Expression dst!=NULL.
    _VALIDATE_RETUR N_ERRCODE(dst != NULL, EINVAL);
    if (src == NULL || sizeInBytes < count)
    {
    /* zeroes the destination buffer */
    memset(dst, 0, sizeInBytes);

    _VALIDATE_RETUR N_ERRCODE(src != NULL, EINVAL);
    _VALIDATE_RETUR N_ERRCODE(sizeI nBytes >= count, ERANGE);
    /* useless, but prefast is confused */
    return EINVAL;
    }

    and also some time as overflow
    int_type sputc(_Elem _Ch)
    { // put a character
    return (0 < _Pnavail()
    ? _Traits::to_int _type(*_Pninc() = _Ch)
    : overflow(_Trait s::to_int_type( _Ch)));
    }

    I am using Multithreading concept.

    Please anyone help me.
    Thanks a lot in adv....
  • myusernotyours
    New Member
    • Nov 2007
    • 188

    #2
    Assuming you are making the memcpy_s call from your code as it appears.
    Are you passing a valid pointer to memcpy_s?

    Also, it would be useful if you showed us the relevant part of your code where this is happening.

    For now, lets ignore the second part until you post some code. They may not be related.

    Regards,

    Alex.

    Comment

    Working...