mm, the exact error message is:

Unhandled exception at 0x77d6e1fe in Test.exe: 0xC0000005: Access violation reading location 0x44ed6d96.

The Test.exe is just an exe creating an instance of this class, and calling the open() method.

An important update: I was trying to debug this at a lower level, so I've compiled the libssh2 with debugging symbols to find more info before the crash, and then the application worked!. So I recompiled it back to release mode, and the access violation was still there. So, in other words: the error just happen when the libssh2.dll is compiled in release mode, in debug mode works OK. Perhaps some uninitialized variables? or some problems with the optimizations of the MSVC compiler?
I' really don't know. Unfortunatelly, we don't have valgrind for windows...

Ezequiel

El 06/09/2010 01:59 p.m., Alexander Lamaison escribió:
On 6 September 2010 17:28, Ezequiel Ruiz<[email protected]>  wrote:
... snip

The code crashes exactly at line 171, when calling
libssh2_userauth_keyboard_interactive(m_Session, "root",&kbd_callback)
What exactly is the nature of the crash?  Null-pointer, protection
violation etc?  The more information you include from the debugger,
the better.

Alex

--
Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)
_______________________________________________
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