﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
4060	DllStructCreate() issue with handling errors: Error allocating memory	mLipok	Jon	"According to the HelpFile:
https://www.autoitscript.com/autoit3/docs/functions/DllStructCreate.htm
{{{
Return Value
Success:	a variable for use with DllStruct calls.
Failure:	sets the @error flag to non-zero.
@error:	1 = Variable passed to DllStructCreate was not a string.
2 = There is an unknown Data Type in the string passed.
3 = Failed to allocate the memory needed for the struct, or Pointer = 0.
4 = Error allocating memory for the passed string.
}}}


In this repro script:
{{{#!autoit
#AutoIt3Wrapper_UseX64=Y
DllStructCreate(""byte[123456789097]"")
ConsoleWrite('TESTING : ERR=' & @error & ' EXT=' & @extended & @CRLF)
}}}

**Issue/Question 1: in x32 AutoIt version**
Why AutoIt fires MsgBox error and quit proceesing rest of the script, instead of simply setting @error = 3 (eventually @error = 4) ?

**Issue/Question 2: in x64 AutoIt version**
Why AutoIt  does not set @error = 3 (eventually @error = 4) ?


''Related discussion:''
https://www.autoitscript.com/forum/topic/154081-avoid-autoit-error-message-box-in-unknown-errors/page/5/#findComment-1548049

https://www.autoitscript.com/forum/topic/154081-avoid-autoit-error-message-box-in-unknown-errors/page/5/#findComment-1548054
"	Bug	assigned		AutoIt	3.3.18.0	None			
