CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    Program crash when i call recv() function in release mode not in debug.



    My program crashed when i call recv() in release mode , but i work fine in debug mode.When it crash,system report "access violate".

    What can cause it?

    If the socket function confict with MFC?

    Help please!


    regards


    hos



  2. #2

    Re: Program crash when i call recv() function in release mode not in debug.

    My guess is Buffer for the incoming data is not
    properly allocated and you are trying to access
    memory which is invalid. So please check for 2nd argument in recv...
    If this doesn't solve problem use NuMega's BoundsChecker



    Vijay Khot
    Software Consultant,
    ICEM Technologies, Arden Hills,
    MN 55112 USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured