#212421 - 2017-04-18 03:22 PM
Fatal exception occurred
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
Error in using the DoEvents method in KixForms
Precondition for reproduction: Windows 10 Version 1703 (Build 15063.138) (creators update) KixTart Version 4.61 (or another version) KixForms Version 2.46.55.0 (or another version)
Break On
$System = CreateObject("Kixtart.System")
$Form = $System.Form()
$Form.Show
While $Form.Visible
$ = Execute($System.Application.DoEvents)
; or alternative code
;$ = Execute($Form.DoEvents)
Loop
Exit 1
Run with wkix32.exe: Error: --------------------------- >>> KiXtart <<< --------------------------- Fatal exception occurred. --------------------------- OK ---------------------------
Can you please tell me if this error is known or better if it is fixed? If it is fixed, on which date the bugfix will be released?
Thank you! Best regards
|
Top
|
|
|
|
#212422 - 2017-04-18 03:57 PM
Re: Fatal exception occurred
[Re: jjkix]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4549
Loc: USA
|
|
Top
|
|
|
|
#212423 - 2017-04-18 05:31 PM
Re: Fatal exception occurred
[Re: Allen]
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
Hello Allen, before I posted the article, I've already tested all versions of KixForms and KixTart, even KixForms 4.67. The error has not occurred with the Windows 10 version 1607. But with the Windows 10 version 1703, the error can be reproduced.
|
Top
|
|
|
|
#212426 - 2017-04-19 09:34 AM
Re: Fatal exception occurred
[Re: Allen]
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
I am using KixForms-Classic. I get the error on several machines. KixForms.net funktioniert, braucht jedoch .Net Framework 3.5. Ich kann die Scripte aber nicht auf KixForms.net umstellen. Es wäre zu viel. Hoffentlich hat jemand eine Lösung oder kann die KixForms-Classic Bibliothek anpassen. Thank you! Best regards
|
Top
|
|
|
|
#212427 - 2017-04-19 09:37 AM
Re: Fatal exception occurred
[Re: jjkix]
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
Sorry... Now in English. I am using KixForms-Classic. I get the error on several machines. KixForms.net works but needs .Net Framework 3.5. I can not change the scripts but on KixForms.net. It would be too much. Hopefully someone has a solution or can customize the KixForms Classic library.
|
Top
|
|
|
|
#212428 - 2017-04-19 10:08 AM
Re: Fatal exception occurred
[Re: jjkix]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
|
Yeah, I've updated now as well to the creators update and my Kixforms.net scripts work fine. The Classic KixForms scripts are unreliable, some work and some crash. Unfortunately it isn't updated anymore 2.47 was the last version and the author isn't around much :-/
The description for Event ID 5 from source KIXTART cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Fatal exception occurred.
Error : (0xc0000005/-1073741819)
The GUI does appear sometimes, so it's hard to figure out when it exactly crashes. I'll have to build a kixforms script from scratch to see where it crashes.
|
Top
|
|
|
|
#212429 - 2017-04-19 11:09 AM
Re: Fatal exception occurred
[Re: Arend_]
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
It is the DoEvents method
...
While $Form.Visible
$ = Execute($System.Application.DoEvents)
Loop
...
|
Top
|
|
|
|
#212430 - 2017-04-19 11:12 AM
Re: Fatal exception occurred
[Re: jjkix]
|
jjkix
Fresh Scripter
Registered: 2017-04-18
Posts: 6
Loc: Germany
|
I get the same message as Arend in the EventViewer
|
Top
|
|
|
|
#212432 - 2017-04-19 01:04 PM
Re: Fatal exception occurred
[Re: Arend_]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
|
I've made a simple script that helped me pinpoint where the problem is located. Maybe Lonkero can make more sense of it. Basically the "$=Execute($Form.DoEvents())" causes the Fatal Exception, if you uncomment that line where thing works as it should but off course the loop keeps going and none of the events are triggered.
Break On
$=SetOption('Explicit','On')
Dim $System, $Form, $Label1
Global $ComboBox1
$System = CreateObject("Kixtart.System")
$Form = $System.Form()
$Form.BackColor = 212,208,200
$Form.FontSize = 8,25
$Form.Height = 158
$Form.Left = 785
$Form.Text = "Test Dialog"
$Form.Top = 0
$Form.Width = 240
$Label1 = $Form.Controls.Label()
$Label1.BackColor = 212,208,200
$Label1.FontSize = 8,25
$Label1.Height = 16
$Label1.Left = 15
$Label1.Text = "User:"
$Label1.Top = 15
$Label1.Width = 59
$ComboBox1 = $Form.Controls.ComboBox()
$ComboBox1.DropDownWidth = 121
$ComboBox1.FontSize = 8,25
$ComboBox1.Height = 21
$ComboBox1.Left = 75
$ComboBox1.Sorted = "False"
$ComboBox1.Text = ""
$ComboBox1.Top = 15
$ComboBox1.Width = 121
$Form.Show
Init()
While $Form.Visible
$=Execute($Form.DoEvents())
? @SERROR
Loop
Exit @ERROR
Function Init()
Dim $Users, $User, $arrFilter[0]
$arrFilter[0] = "User"
$Users = GetObject("WinNT://@ldomain")
$Users.filter = $arrFilter
For Each $User In $Users
$ComboBox1.AddItem ($User.Name)
Next
EndFunction
|
Top
|
|
|
|
#212433 - 2017-04-19 01:12 PM
Re: Fatal exception occurred
[Re: Arend_]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
|
Even this piece of code causes the error:
$System = CreateObject("KiXtart.System")
$Form = $System.Form()
$Form.Show()
While $Form.Visible
$Nul = Execute($Form.DoEvents)
Loop
Exit 0
|
Top
|
|
|
|
#212434 - 2017-04-19 01:26 PM
Re: Fatal exception occurred
[Re: Arend_]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
|
Apparently this happened before on Windows 7. The author (Shawn) recompiled this using Visual Studio 2008 which solved the problem back then. I suppose it has to be compiled with VS2013 or higher this time. But Shawn doesn't stop by much anymore.
Just to be clear, I tried the above using the following Kix versions: 4.51, 4.52, 4.53, 4.60, 4.61, 4.64, 4.66, 4.67 And KixForms versions 2.47.5 (latest known version).
|
Top
|
|
|
|
#212436 - 2017-04-19 03:59 PM
Re: Fatal exception occurred
[Re: Allen]
|
anglerzac
Just in Town
Registered: 2017-04-19
Posts: 3
Loc: England
|
This issue is affecting us as well, since Windows 10 Creators Update. We have tried all combinations of Kix 460/461/462/463/464/466/467 and kixforms 2.47.4.0 / 2.47.5.0 / 2.46.55.0
This simple code generates the fault
Break On
$System = CreateObject("Kixtart.System")
$Form = $System.Form()
$Form.Caption = "This is my first KiXforms script" $Form.Width = 300 $Form.Height = 600 $Form.Center
$Form.Show
While $Form.Visible $ = Execute($System.Application.DoEvents) Loop
Exit 1 We are looking at translating our code to vb or c# .net but I wonder if anyone can see a fix coming from an updated version of KIX or will this require an update to kixforms?
|
Top
|
|
|
|
#212440 - 2017-04-20 08:59 AM
Re: Fatal exception occurred
[Re: Allen]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
|
Interestingly the kixtart.system object always crashes at Form.DoEvents. But the kixtart.form object doesn't always. My simple test code works fine, as does KixTris which uses kixtart.Form. But KixOmatic which uses kixtart.form as well crashes after loading the Classes. KixOmatic uses the object in 2 separate instances, one for the progressbar and one for the main form. The progresbar doesn't crash but the main form does, right after loading the classes.
Apparently this error happens for a lot more programs in the creators update.
Edited by Arend_ (2017-04-20 10:25 AM) Edit Reason: Added link
|
Top
|
|
|
|
#212441 - 2017-04-21 03:35 AM
Re: Fatal exception occurred
[Re: Arend_]
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
I don't have Creators Update yet and by the sounds of it, don't think I want it on my real machine yet I'm going to create a VM with this update and try to reproduce the issue as a first step.
Is there a chance that MS will fix this issue on their end ? or did they deprecate something ? (Still reading up on this stuff).
-Shawn
|
Top
|
|
|
|
Moderator: ShaneEP, Mart, Radimus, Jochen, Allen, Glenn Barnas
|
1 registered
(mole)
and 405 anonymous users online.
|
|
|