Page 1 of 3 123>
Topic Options
#212421 - 2017-04-18 03:22 PM Fatal exception occurred
jjkix Offline
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)

 Code:
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 Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4441
Loc: USA
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=210525#Post210525
Top
#212423 - 2017-04-18 05:31 PM Re: Fatal exception occurred [Re: Allen]
jjkix Offline
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
#212424 - 2017-04-18 10:56 PM Re: Fatal exception occurred [Re: jjkix]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4441
Loc: USA
I'm not getting the same error as you, but it's not working on Win 10 1703 and Kixforms 247. Installer appears to work, but the error I'm getting with kixomatic is

"Kixforms.net not initiated. This Script will now close."

Top
#212425 - 2017-04-19 09:02 AM Re: Fatal exception occurred [Re: Allen]
Arend_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
Loc: Hilversum, The Netherlands
 Originally Posted By: Allen
I'm not getting the same error as you, but it's not working on Win 10 1703 and Kixforms 247. Installer appears to work, but the error I'm getting with kixomatic is

"Kixforms.net not initiated. This Script will now close."


You do realise that kixforms 2.47 and kixforms.net are two different things right?

Top
#212426 - 2017-04-19 09:34 AM Re: Fatal exception occurred [Re: Allen]
jjkix Offline
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 Offline
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_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
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 :-/

 Code:
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 Offline
Fresh Scripter

Registered: 2017-04-18
Posts: 6
Loc: Germany
It is the DoEvents method
 Code:
...
While $Form.Visible
  $ = Execute($System.Application.DoEvents)
Loop
...

Top
#212430 - 2017-04-19 11:12 AM Re: Fatal exception occurred [Re: jjkix]
jjkix Offline
Fresh Scripter

Registered: 2017-04-18
Posts: 6
Loc: Germany
I get the same message as Arend in the EventViewer
Top
#212431 - 2017-04-19 11:32 AM Re: Fatal exception occurred [Re: jjkix]
Arend_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
Loc: Hilversum, The Netherlands
It seems like it only happens with kix 4.64 and higher.
4.61 and lower works fine.


Nope, this only helped for some forms, the old kixomatic fails on each version.
But KixTris works on every version.


Edited by Arend_ (2017-04-19 11:57 AM)

Top
#212432 - 2017-04-19 01:04 PM Re: Fatal exception occurred [Re: Arend_]
Arend_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
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.
 Code:
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_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
Loc: Hilversum, The Netherlands
Even this piece of code causes the error:
 Code:
$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_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
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
#212435 - 2017-04-19 02:37 PM Re: Fatal exception occurred [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4441
Loc: USA
I've never installed any version other than kixforms classic. I realized that the message said it wanted .net, but I never used that, so it was just as confusing to me as to why it wanted it.
Top
#212436 - 2017-04-19 03:59 PM Re: Fatal exception occurred [Re: Allen]
anglerzac Offline
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
 Quote:
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
#212437 - 2017-04-19 04:49 PM Re: Fatal exception occurred [Re: anglerzac]
Arend_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
Loc: Hilversum, The Netherlands
 Originally Posted By: anglerzac

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?

Basically if you continue with the Creators Update of Windows 10 you will have to rewrite your KiXforms scripts into KiXforms.Net.
Unless Shawn pops by and fixes it, but that's highly unlikely.

Top
#212438 - 2017-04-19 10:14 PM Re: Fatal exception occurred [Re: Arend_]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4441
Loc: USA
Don't give up just yet... Another possibility of a fix could happen.
Top
#212440 - 2017-04-20 08:59 AM Re: Fatal exception occurred [Re: Allen]
Arend_ Online   sleepy
MM club member
*****

Registered: 2005-01-17
Posts: 1864
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 Offline
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
Page 1 of 3 123>


Moderator:  ShaneEP, Mart, Radimus, Jochen, Allen, Glenn Barnas 
Hop to:
Shout Box

Who's Online
1 registered (adamlevine) and 165 anonymous users online.
Newest Members
katherinknul, phamthuy, xuantu075, skygreen2031, amelindaróe
17629 Registered Users

Generated in 0.092 seconds in which 0.03 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org