Access Violation Error
Hello,
I am trying to automate windows application, but when I try to access the element I am getting access violation error as below.
"Access violation at address 0040AAC4 in module 'XXX.exe'. Read of address 00000000.
Can somebody help to identify why I am getting this error and how to solve it?
Thank you in advance.
Hi @jaykhengar,
Where are you seeing this error? From the WinAppDriver.exe logs? This could be a bug within the application itself.
Hello @hassanuz
Thank for the reply.
When I try to automate the application, I get this error in the popup.
Can you please help me to identify in which direction I should look?
Hello,
We are also automating third party application using the WinAppDriver + Appium and we are getting the same "Access violation error".
Earlier we have done the automation for the same third party application using TestStack.White and it was working fine.
I guess this popup is the error message generated from the system. Please find the below attached screenshot for the error message.
Thanks in advance, Ronak Pandya
Actually this is an exception https://docs.microsoft.com/en-us/dotnet/api/system.accessviolationexception?view=netframework-4.8 The exception that is thrown when there is an attempt to read or write protected memory. To find the actual reason behind it, you need to run WinAppDriver from Visual Studio in debug mode, in this case I think you can get the better description of your error.