﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2070	_GUICtrlStatusBar_GetText() Crash	TsukasaX	guinness	"
{{{
Func _Port()
	Local $iPort = 0
	Local $sPort = _SendQuiet('port')
	If $iPort = 0 Then $iPort = _Regex($sPort, 'Port: ([\d]+)', 0)

	Local $sIP = _GUICtrlStatusBar_GetText($hStatus, 0)
	If StringRegExp($sIP, '(\:[\d]+)') = 1 Then
		$sIP = StringRegExpReplace($sIP, '\:[\d]+', $iPort)
	Else
		$sIP &= ':' & $iPort
	EndIf
	_GUICtrlStatusBar_SetText($hStatus, $sIP, 0)
}}}

The idea of this code is to get the first part of a 4-part status bar that already has an IP address in it, determine if a port number is in it, and either update it or add it on then update the status bar.

Putting FileWriteLine()'s between commands shows the crash is indeed _GUICtrlStatusBar_GetText() as the FileWriteLine() one line after isn't reached. I tested some other _GUICtrlStatusBar functions and they worked one line before _GUICtrlStatusBar_GetText().

The crash is an ntdll.dll APPCRASH exception code c0000005.

I am unable to check to see if this issue has already been resolved because of no proper changelog."	Bug	closed	3.3.9.1	Standard UDFs	3.3.7.21	None	Fixed		
