Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

System.AccessViolationException win7 x32 but x64 no problem #30

Open
lottery2018 opened this issue Jun 13, 2018 · 12 comments
Open

System.AccessViolationException win7 x32 but x64 no problem #30

lottery2018 opened this issue Jun 13, 2018 · 12 comments

Comments

@lottery2018
Copy link

应用程序: 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[])

@alexbakker
Copy link
Owner

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

@lottery2018
Copy link
Author

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

@lottery2018
Copy link
Author

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

@lottery2018
Copy link
Author

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"

@alexbakker
Copy link
Owner

alexbakker commented Jun 13, 2018

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.

@lottery2018
Copy link
Author

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

@alexbakker
Copy link
Owner

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

@lottery2018
Copy link
Author

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

@lottery2018
Copy link
Author

lottery2018 commented Jun 14, 2018

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

@alexbakker
Copy link
Owner

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.

@lottery2018
Copy link
Author

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

@alexbakker
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants