-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access violation #77
Comments
So it is working if you just use the sample master and it fails if you plug it into a Windows Forms app? I don't know what could be the reason for the access violation exception. I would first ensure that the pointer ( |
that is correct. First comes this exception and then (often on _actualWorkingCounter = EcHL.UpdateIo(this.Context, out _dcTime);) |
Found a null pointer: @Apollo3zehn any idea why context is null? |
I inserted the code into WPF app, thinking maybe WinForms somehow collides with SOEM dlls, but the problem is the same. Context is null, and UpdateIO fails with access violation. |
Sorry, it is hard for me to find the root cause of this. Unfortunately I am also quite busy right now :-( To debug the problem I would first try to reproduce it and then find out why |
I had same ex and It working I hope, you did find your way to work |
Hi
I tried to run your Sample Master as a thread from WinForm app and I am getting Access Violation Exception
I run the Master as an async Task before form pops up
The idea is to run HMI and controller as separate tasks/processes, so the HMI does not freeze...
Any idea what could be the problem?
I know that reading of variables is in unsafe{} block, but it didnt seem that unsafe (meaning it worked), when it was running in your original Sample
thx
--G
The text was updated successfully, but these errors were encountered: