You're right. I've changed the memory allocator and the problem disappeared! I can't believe MSVC is still having this kind of limitations.
Well, thank you very much for your help!

Ezequiel

El 06/09/2010 03:44 p.m., Mikhail Gusarov escribió:
Twas brillig at 15:32:51 06.09.2010 UTC-03 when [email protected]
did gyre and gimble:

  ER>  Although "session->userauth_kybd_responses" is not a bad pointer (I can 
see the
  ER>  right password in the text variable, and the apropiate length) , it 
returns the
  ER>  access violation when calling LIBSSH2_FREE for that object (line 1588). 
The text
  ER>  was allocated by using _strdup, and not deleted at all, I've also tried 
with
  ER>  _malloc (which is the same).

Very likely it is well-known problem malloc-in-EXE-free-in-DLL under
Win32. Try to provide your own alloc/free/realloc functions to
libssh2_session_init_ex, which just forward calls to malloc/free/realloc.



_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to