@HotKeyIt
I'm having this error when I run my compiled program the first time, My Avast Antivirus stops the execution of my compiled executable and AHK_H has this issue.
I don't really mind the error, I'd just rather not be able to see it. After the first time the AV scans and says the file is okay, I don't receive this error message again. I did see this occurred throughout the years, for reference this is the latest version of AHK_H that I'm using. I was hoping of a way to just disable this message from popping up or a solution that actually resolves this issue. I don't mind either solution, just rather not have this error show in general.
Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION Topic is solved
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
If it's caused by your AV then add the file to exceptions. Doesn't seem to be a bug in ahk and disabling those errors is not a "fix". If you still want to disable them then I think there was a way, try checking the docs.
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
I understand this is a part of AV, I just want the message to not appear. I don't care if the program breaks the first time it runs, I would just rather not have the autohotkey error message. I've tried going through the docs and can't find anything to remove this message. I've tried using #ErrorStdOut and even preventing the first run by creating a registry key that compares the current directory to the saved reg key
Code: Select all
currentDirectory := % A_ScriptDir
MsgBox, %currentDirectory%
SetRegView, 64
RegRead, fr1, HKCU, Software\whhyyyy, fr1
if (ErrorLevel) {
RegWrite, REG_SZ, HKCU\Software\whhyyyy, fr1, %currentDirectory%
}
if (fr1 != currentDirectory) {
RegWrite, REG_SZ, HKCU\Software\whhyyyy, fr1, %currentDirectory%
ExitApp
}
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION Topic is solved
I solved the issue, this code works if the file is placed in a different directory it does a soft run that just exits the app, the reason this didn't work before was because I had a try catch statement that was formatted incorrectly, if anyone has this issue in the future you can use this in auto execute close to the top:
Prevent first run AV message:
Change regview to your system(32/64). If anyone has a more direct solution, PLEASE let me know. Thanks!
Prevent first run AV message:
Code: Select all
;Prevent AV from showing AHK
currentDirectory := % A_ScriptDir
SetRegView, 64
RegRead, fr1, HKCU, Software\yourProgram, fr1
if (ErrorLevel) {
RegWrite, REG_SZ, HKCU\Software\yourProgram, fr1, %currentDirectory%
ExitApp
}
if (fr1 != currentDirectory) {
RegWrite, REG_SZ, HKCU\Software\yourProgram, fr1, %currentDirectory%
ExitApp
}
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
That's great to know, thank you for sharing the solution to your problem. I'm going to use this as well.uhwok3n wrote: ↑27 Jun 2020, 22:37I solved the issue, this code works if the file is placed in a different directory it does a soft run that just exits the app, the reason this didn't work before was because I had a try catch statement that was formatted incorrectly, if anyone has this issue in the future you can use this in auto execute close to the top:
Prevent first run AV message:Change regview to your system(32/64). If anyone has a more direct solution, PLEASE let me know. Thanks!Code: Select all
;Prevent AV from showing AHK currentDirectory := % A_ScriptDir SetRegView, 64 RegRead, fr1, HKCU, Software\yourProgram, fr1 if (ErrorLevel) { RegWrite, REG_SZ, HKCU\Software\yourProgram, fr1, %currentDirectory% ExitApp } if (fr1 != currentDirectory) { RegWrite, REG_SZ, HKCU\Software\yourProgram, fr1, %currentDirectory% ExitApp }
I still believe there is a way to hide those msgboxes but I don't remember how, I think I saw the code in a reply from HotKeyIt.
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
Found it! here it is: #WarnContinuableException Off
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
if you recompile with the latest AHK_H from github, you'll get an extra line in the error msgbox which points to the code that is causing it
Re: Error: CONTINUABLE EXCEPTION_ACCESS_VIOLATION
Well, I'll be damned, I downloaded it. I'm trying to figure out this dynamic password situation so I can kill 2 birds with 1 stone. After I compile, I'll see if it points to the problem so I can actually fix it and I'll update the solution here. Thank you to both of you.
Who is online
Users browsing this forum: No registered users and 7 guests