APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

Ask for help, how to use AHK_H, etc.
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

30 Mar 2017, 11:04

Hi,

I got some problems on a few computers. Is there anybody, who can help me with that ms event log:

Event 1000:

Name der fehlerhaften Anwendung: test.exe, Version: 1.0.0.0, Zeitstempel: 0x58b444cd
Name des fehlerhaften Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000
Ausnahmecode: 0xc0000005
Fehleroffset: 0x00000000

Event 1001:

Fehlerbucket 108764543042, Typ 1
Ereignisname: APPCRASH
Antwort: Nicht verfügbar
CAB-Datei-ID: 0

Problemsignatur:
P1: test.exe
P2: 1.0.0.0
P3: 58b444cd
P4: StackHash_3f75
P5: 0.0.0.0
P6: 00000000
P7: c0000005
P8: PCH_25_FROM_ntdll+0x0006E2CC
P9:
P10:


My problem:

I can't even start an empty ahk h compiled exe. It's closed after opened. No Message, no Msgbox, nothing.

Code: Select all

MsgBox hallo 

ExitApp
I am using ahk h V 1.1.25.01-H003

It's working on 99% of computers, but there is 1% left and i don't know why. Is there any way to debug the exe?

Thx for your help!
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

30 Mar 2017, 16:44

You can try windbg for debugging.
What OS version are you using? Do you have all the updates installed?
Have you copied the right 32/64-bit msvcr100.dll to the exe folder?
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

31 Mar 2017, 05:42

Ok, i will read more about windbg. I tried it, but i don't understand it.

Now some informations about the system not working:

Win Server FE (https://www.experts-exchange.com/questi ... rd-FE.html)
Updates are not installed since 2016. (i will ask there admin for updating, do i really need it?)
msvcr100.dll is up to date.

Last working ahk h ist from March 2016. Any newer is not working. New ahk L is working, so maybe there is a problem with the crypt-engine? Is there any dll, that could get in conflict with ahk h? Could i embed the dlls while compiling, so my ahk h is not system dependent any more?
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

31 Mar 2017, 06:01

New information: I tried to run it without "encrypted" in ahk2exe and it's still not working on the server. So there must be something different.
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

31 Mar 2017, 06:17

Some more: i only use x32 Unicode
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

31 Mar 2017, 08:16

Taurus wrote:Last working ahk h ist from March 2016. Any newer is not working. New ahk L is working, so maybe there is a problem with the crypt-engine? Is there any dll, that could get in conflict with ahk h? Could i embed the dlls while compiling, so my ahk h is not system dependent any more?
You can try copying all dlls to the same folder where AutoHotkey.exe is.

Can you also confirm the date of latest one that works: https://github.com/HotKeyIt/ahkdll-v1-r ... ad68193+69
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

03 Apr 2017, 08:42

Ok, i tried copying all dlls to the exe. But now i get the error "api-ms-win-core-errorhandling-l1-1-0.dll" not found. If i copy it from my Visual Studio in, this error still exist. So i think, it's not possible to copy Win 10 dlls to the server to get it working.

I proofed the last working ahk h version: 1.1.23.05

Sadly, if i compile the hello example with the old ahk h and old Ahk2Exe.exe, the compiled msg-test.exe still not runs.

This is the list of all dlls:

Code: Select all

Filecopy, C:\WINDOWS\SysWOW64\KERNEL32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\KERNELBASE.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\SHLWAPI.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\WINMM.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\WSOCK32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\msvcrt.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\combase.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\WS2_32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\VERSION.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.953_none_89c2555adb023171\COMCTL32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\sechost.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\ucrtbase.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\RPCRT4.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\GDI32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\bcryptPrimitives.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\SspiCli.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\CRYPTBASE.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\USER32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\win32u.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\CRYPT32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\MSASN1.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\gdi32full.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\PSAPI.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\winmmbase.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\cfgmgr32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\COMDLG32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\shcore.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\SHELL32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\windows.storage.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\powrprof.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\advapi32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\kernel.appcore.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\profapi.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\ole32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\OLEAUT32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\msvcp_win.dll, % A_ScriptDir

Filecopy, C:\WINDOWS\SysWOW64\IMM32.dll, % A_ScriptDir
Filecopy, C:\WINDOWS\SysWOW64\uxtheme.dll, % A_ScriptDir
Filecopy, C:\Program Files (x86)\Common Files\Microsoft Shared\Ink\tiptsf.dll, % A_ScriptDir
Any other idea? Is it possible to tell Visual Studio to include everything that is needed? (bis exe size doesn't matter)
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

03 Apr 2017, 16:57

Try installing Redistributable Package: https://www.microsoft.com/en-us/downloa ... px?id=5555
Including everything in exe does not allow properly working between exe and dll, if you don't need AutoHotkey.dll then you could compile with /MT.
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

06 Apr 2017, 07:04

Ok, tried some new tests. Installing the Redistributable does not help.

There is no chance of getting it working on the server, but there is another computer with a problem.

ahk h with msvcr100.dll is running, but my own compiled ahk h with /MT is not running on this computer. But it's working on any other computer.

I found some things in the forum/source. Could you explain to me, what this comments do an should i uncomment it for /MT?

https://github.com/HotKeyIt/ahkdll/blob ... y.cpp#L195

And i also found this in the source\resources\AutoHotkey.rc:

Code: Select all

#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED
#ifndef AUTOHOTKEYSC
C974C3B7677A402D93B047DA402587C7	RCDATA	".\\source\\resources\\WINAPI.zip"
#endif
/*
#ifndef _USRDLL
	#ifdef _WIN64
		EA80A44AA77E484295B1813BD4C12C28	RCDATA	".\\source\\resources\\msvcr64.zip"
	#else
		EA80A44AA77E484295B1813BD4C12C28	RCDATA	".\\source\\resources\\msvcr32.zip"
	#endif
#endif
*/
#ifdef _DEBUG
#ifndef _USRDLL
//AHK		RCDATA	".\\source\\resources\\AHK.zip"
//AHK RCDATA ".\\Test\\Test.ahk"
#endif
#endif
Why is WinAPI included and msvcr not? Do i have to include it with /MT?

Thx!
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

06 Apr 2017, 12:25

WinAPI is the file for including WinAPI functions automatically, see here. Read about Microsoft redistributable here.
User avatar
Taurus
Posts: 94
Joined: 20 Jan 2015, 10:31

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

25 Apr 2017, 06:38

Now i am able to tell the last working version: 1.1.24.

Any version after that is not working on a few computers. There could be some problems with the new code hiding functions oder zip-system. I will try to find a solution.
:beard: Full Stack Developer > Dev for a better world | PHP for Web | AHK H for Local | with KISS (Keep IT Short and Simple) on Win 10 Pro (Version 2004) x64
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: APPCRASH - Moduls: unknown, Version: 0.0.0.0, Zeitstempel: 0x00000000

28 Apr 2017, 12:58

I think so but since I am not able to test it is difficult to tell what is causing the problems.
Can you build a debug version and run via windbg to find what causes the problem?

Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 23 guests