SharpTox icon indicating copy to clipboard operation
SharpTox copied to clipboard

System.AccessViolationException win7 x32 but x64 no problem

Open lottery2018 opened this issue 6 years ago • 12 comments

应用程序: FreeChat.exe Framework 版本: v4.0.30319 说明: 由于未经处理的异常,进程终止。 异常信息: System.AccessViolationException 堆栈: 在 SharpTox.Encryption.ToxEncryptionFunctions.PassEncrypt(Byte[], UInt32, Byte[], UInt32, Byte[], SharpTox.Encryption.ToxErrorEncryption ByRef) 在 SharpTox.Encryption.ToxEncryption.EncryptData(Byte[], System.String, SharpTox.Encryption.ToxErrorEncryption ByRef) 在 SharpTox.Core.Tox.GetData(System.String) 在 FreeChat.App.SaveData() 在 FreeChat.App.Start(System.String, System.String) 在 FreeChat.Form_LoginTox.button_login_Click(System.Object, System.EventArgs) 在 System.Windows.Forms.Control.OnClick(System.EventArgs) 在 System.Windows.Forms.Button.OnClick(System.EventArgs) 在 System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs) 在 System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32) 在 System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef) 在 System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef) 在 System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef) 在 System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef) 在 System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr) 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef) 在 System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32) 在 System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext) 在 System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext) 在 System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form) 在 System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window) 在 System.Windows.Forms.Form.ShowDialog() 在 FreeChat.Form_StartChat..ctor() 在 FreeChat.Program.Main(System.String[])

lottery2018 avatar Jun 13 '18 08:06 lottery2018

Are you sure you're using different builds of libtoxcore for 32-bit and 64-bit?

alexbakker avatar Jun 13 '18 12:06 alexbakker

I'm pretty sure that I've strictly distinguished between 32-bit and 64-bit systems

lottery2018 avatar Jun 13 '18 13:06 lottery2018

libtcx.dll.zip You can see my two files, one 32-bit and one 64-bit

lottery2018 avatar Jun 13 '18 13:06 lottery2018

if i use libtoxcore-toktok_build his dll ,so it's gonna be "Could not create a new instance of tox, error: LoadBadFormat, decrypt error: Ok"

lottery2018 avatar Jun 13 '18 13:06 lottery2018

I tried to reproduce this and I ran into the same issue. It's funny how things can suddenly break after years of not touching it.

Also, this library is not compatible with TokTok's fork of toxcore, so that's not going to work. It probably wouldn't be too much effort to update SharpTox to be compatible with it, but I don't have time to work on that right now.

alexbakker avatar Jun 13 '18 15:06 alexbakker

Do you mean there is no way to solve the problem at present but qtox can use x32 ,why?

lottery2018 avatar Jun 13 '18 15:06 lottery2018

This is a bug in SharpTox's C interop code, not toxcore itself.

alexbakker avatar Jun 13 '18 16:06 alexbakker

I didn't solve the problem, but I appreciate alexbakker's reply

lottery2018 avatar Jun 14 '18 02:06 lottery2018

Hello,alexbakker, didn't you use x86 testing when you started this project? Can you provide .so files?

lottery2018 avatar Jun 14 '18 02:06 lottery2018

I did, but it doesn't work anymore for some reason and I don't have time to investigate why right now.

The .so files you're talking about are for POSIX systems, not Windows. If you want to obtain those, it's easiest to compile toxcore on your own system and use the resulting shared libraries.

alexbakker avatar Jun 14 '18 18:06 alexbakker

I'm willing to pay for SharpTox compatibility with toktok libtox

lottery2018 avatar Jun 16 '18 02:06 lottery2018

Let's discuss that in private. Could you send me an email? My address is in my GitHub profile.

alexbakker avatar Jun 16 '18 09:06 alexbakker