﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2197	#RequireAdmin creates a critical error, if the user doesn't start it as local admin	jmalmgren@…		"{{{

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=C:\Temp\CriticalError.exe
#AutoIt3Wrapper_Res_Description=Critical error using #RequireAdmin
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=© 2012: J. Malmgren, wwww.tryware.dk
#AutoIt3Wrapper_Res_Language=1033
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

;	***** WARNING: Don't compile and run this script, because it restarts itself thousands of times with new PID's, so you can't stop it again using TaskManager.exe
;	There is only 2 ways to stop it again: Restart your computer, or rename C:\Temp\CriticalError.exe to something else using explorer.exe
;
;	The reason is kind of described in the help file: ""As this function launch a new process, some functions as Consolewrite() cannot be captured""
;
;	Yes it certainly launch a new process, launch a new process, launch a new process, launch a new process, launch a new process, launch a new process, launch a new process


	Local $_sMsg = ""If #RequireAdmin is used, but the user isn't local administrator, and doesn't rightclick and select 'another user' being local administrator, ""
	$_sMsg = $_sMsg & ""then the script calls itself thousands of times, no matter what you have below, so the MsgBox function below isn't shown!"" & @CRLF & @CRLF
	$_sMsg = $_sMsg & ""But if you do nothing else than removing the first line with #RequireAdmin, this script works!""

	MsgBox(16,""Critical error:"",$_sMsg)

Exit


}}}"	Bug	closed		AutoIt	3.3.8.1	None	Duplicate		
