Skip to content

Commit 579540c

Browse files
authored
Update 006-DownloadDemo.au3
1 parent 7504b4f commit 579540c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/006-DownloadDemo.au3

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ Func _Example()
6363
While 1
6464
Switch GUIGetMsg()
6565
Case $GUI_EVENT_CLOSE
66+
ConsoleWrite('$GUI_EVENT_CLOSE fired' & @CRLF)
6667
ExitLoop
6768
EndSwitch
6869
WEnd
6970

71+
_NetWebView2_CleanUp($oWebV2M, $oJSBridge)
7072
GUIDelete($hGUI)
7173
#EndRegion ; GUI Loop
7274

73-
_NetWebView2_CleanUp($oWebV2M, $oJSBridge)
7475
EndFunc ;==>_Example
7576

7677
; Advise using 'Volatile' for Event Handlers to ensure the WebView2 COM thread can interrupt the main script safely.

0 commit comments

Comments
 (0)