highfeeling Posted March 26, 2013 Share Posted March 26, 2013 Hi all,since 2011, I published a tool called Overmon (http://www.overmon.fr)This tools is currently used by more than 700 french companies.Now, I have some users who complained about regular crashes which occurs on new Windows 2012 servers.After investigating, I discover the problem is localized into "core" MemoryDllOpen function :Func MemoryDllOpen($DllBinary) If Not IsDllStruct($_MDCodeBuffer) Then MemoryDllInit() Local $Ret = DllCall($_MDKernel32Dll, "hwnd", "LoadLibraryA", "str", "kernel32.dll") Local $GetProcAddress = DllCall($_MDKernel32Dll, "uint", "GetProcAddress", "hwnd", $Ret[0], "str", "GetProcAddress") Local $LoadLibraryA = DllCall($_MDKernel32Dll, "uint", "GetProcAddress", "hwnd", $Ret[0], "str", "LoadLibraryA") Local $DllBuffer = DllStructCreate("byte[" & BinaryLen($DllBinary) & "]") DllStructSetData($DllBuffer, 1, $DllBinary) MemoryFuncSet(DllStructGetPtr($_MDCodeBuffer) + $_MDLoadOffset) FileWriteLine($MainLocalLogFile, @YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC & " : " & ". DEBUG008") Local $Module = DllCall($_MDKernel32Dll, "uint", $_MFHookApi, "uint", $LoadLibraryA[0], "uint", $GetProcAddress[0], "ptr", DllStructGetPtr($DllBuffer)) FileWriteLine($MainLocalLogFile, @YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC & " : " & ". DEBUG009") $DllBuffer = 0 Return $Module[0] EndFuncHere is the line which crash :Local $Module = DllCall($_MDKernel32Dll, "uint", $_MFHookApi, "uint", $LoadLibraryA[0], "uint", $GetProcAddress[0], "ptr", DllStructGetPtr($DllBuffer))Can you tell me please if you are aware about such problems on Win2012 servers ?SebP.S. : Obviously, I use last version of AutoIT (v3.3.8.1) Link to comment Share on other sites More sharing options...
UEZ Posted March 26, 2013 Share Posted March 26, 2013 (edited) The problem is UAC DEP. Add the program to the exception list and it should work.Br,UEZ Edited March 26, 2013 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
KaFu Posted March 26, 2013 Share Posted March 26, 2013 (edited) The problem is that you do not use the latest version of that Ward's which addresses the UAC DEP issue mentioned by UEZ.Edit: Read, think, post ... Edited March 26, 2013 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
UEZ Posted March 26, 2013 Share Posted March 26, 2013 (edited) The memory UDF needs still some modification to work properly when DEP is enabled. One workaround is to add the exe to the exception list as already said or disable the DEP policy for the current process: DllCall("Kernel32.dll", "long", "SetProcessDEPPolicy", "long", False) Br, UEZ Edited March 26, 2013 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
JFX Posted March 26, 2013 Share Posted March 26, 2013 There is also trancexx's subrogation which works great. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now