Page 1 of 2 12>
Topic Options
#181136 - 2007-10-05 02:20 AM Another bug in 4.60
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Dear Ruud et. al.,

I've found another bug in 4.60, please check out the following code:

 Code:
Break On 

$System=CreateObject("Kixtart.System")
$Form=$System.Form
$txt=$Form.TextBox
$s=$txt.Text

A fatal exception is thrown. If $txt.Text is assigned to something before before it is assigned to $s, no exception is thrown. This may be strangely related to my previous bug report .

Regards,

Richard

Top
#181172 - 2007-10-05 08:23 PM Re: Another bug in 4.60 [Re: It_took_my_meds]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Hmm, I've tried and tried, but this does not crash for me?

Maybe you are using a different version of KiXForms (I have 2.46 on my system)?

Ruud

Top
#181198 - 2007-10-06 08:51 AM Re: Another bug in 4.60 [Re: Ruud van Velsen]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
kixforms.dll with in it's properties "File Version: 2.47.3.0"
kix32.exe 4.60
the code It_took_my_meds wrote
returns for me
 Code:
Fatal exception occurred.

Top
#181262 - 2007-10-08 01:26 AM Re: Another bug in 4.60 [Re: Ruud van Velsen]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Hi Ruud,
I'm using 2.47.4.0 which you can get here.
Thanks,
Richard

Top
#182289 - 2007-11-06 11:04 AM Re: Another bug in 4.60 [Re: It_took_my_meds]
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I'm receiving the same error when using DriveProp() on drive c:\ when retrieving the sharename property..
_________________________
Kind regards,

Top
#182354 - 2007-11-08 03:18 PM Re: Another bug in 4.60 [Re: Schuliebug]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
I'll have a look with 2.47.7.0.

Ruud

Top
#182558 - 2007-11-13 11:59 AM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
forcing proper thread title...
_________________________
!

download KiXnet

Top
#182689 - 2007-11-15 09:22 AM Re: Fatal exception issue with 4.60 and KF [Re: Lonkero]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Just to confirm: I have a repro now. I'll see if this can be fixed in the next build.

Ruud

Top
#182691 - 2007-11-15 09:36 AM Re: Fatal exception issue with 4.60 and KF [Re: Ruud van Velsen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Well, on the other side this is nothing I would let kixforms do.

 Code:
Break On 

$System=CreateObject("Kixtart.System")
$Form=$System.Form
$txt=$Form.TextBox
$s=$txt.Text


What does it do ?

-> Creating a handle to the Kixtart.System object (kixforms.dll classic)
-> Create a form object ($Form=$System.Form)
-> Create a child object (TextBox) on the form Object (correct way would be creating a control thing: $txt = $Form.Controls.Add("TextBox")
->next you assign the empty .Text Property of $txt to an implicitly created variable $s

What's the purpose of this ?

[this post is of course in reply to It_took_my_meds \:\) ]


Edited by Jochen (2007-11-15 09:37 AM)
_________________________



Top
#182697 - 2007-11-15 10:28 AM Re: Fatal exception issue with 4.60 and KF [Re: Jochen]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
Verified the bug using the following code:
 Code:
Break On 

$Form=CreateObject("Kixtart.Form")
$txt=$Form.Controls.TextBox()
$s=$txt.Text

Top
#182699 - 2007-11-15 11:30 AM Re: Fatal exception issue with 4.60 and KF [Re: Jochen]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Hi Jochen,

I've written a somewhat sophisticated front-end tool to my automated inventory system. The inventory system manages and tracks over 12,000 computers ranging from Windows 95-Vista, Linux, Mac OSX, Solaris, FreeBSD, Irix and Xenix. Each machine reports via SOAP to a .NET web service that analyses data and updates a central database.

The KiXtart/KiXforms code for the front-end is around 8,000 long lines, so it is only natural that it should encounter some unusual bugs. In this case, I found the bug because my front-end keeps a history in the registry of the current user's last 20 queries. As the query generation tool within the front-end has many fields, this feature is quite convenient.

When the user goes to the main menu to redo a previously stored query, the front-end also fills in and creates appropriate form objects (up to 50) to enable the user to make easy modifications to the stored query.

The bug in question arose because a property of an object created by this process was referenced, even though it had not yet been set.

Cheers,

Richard


Edited by It_took_my_meds (2007-11-15 01:20 PM)

Top
#182706 - 2007-11-15 02:02 PM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
So, you only got what you asked for, and I am not questioning the bug report:
unreferenced calls to empty properties are up to no good ;\)
_________________________



Top
#182709 - 2007-11-15 02:31 PM Re: Fatal exception issue with 4.60 and KF [Re: Jochen]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I really don't see why you think so. If you have code that dynamically sets properties based on user defined data, you would have to go to a lot of (unnecessary) pain to log what has been set before you try to read and manipulate the properties later in your code.
Top
#182844 - 2007-11-21 08:46 AM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
 Originally Posted By: It_took_my_meds
The KiXtart/KiXforms code for the front-end is around 8,000 long lines, so it is only natural that it should encounter some unusual bugs. In this case, I found the bug because my front-end keeps a history in the registry of the current user's last 20 queries. As the query generation tool within the front-end has many fields, this feature is quite convenient.


Ok, I see, the bug report code is of course only a couple of lines.
Hmmm... have you thought of (to work around this bug) creating an invisible Textbox, filling the text property with the things you like to reuse and then read from there ?
_________________________



Top
#182896 - 2007-11-22 07:26 AM Re: Fatal exception issue with 4.60 and KF [Re: Jochen]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Well the app in question is ASE packaged and the package includes wkix32.exe. I'm happy to continue to use 4.53 for it until this bug is fixed.

As for the bug report, I can see how you might have thought it was wacky code that I posted. I always try to break it down to the minimum as a courtesy to Ruud and others.

Top
#184450 - 2008-01-07 11:31 PM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
pearly Offline
Getting the hang of it
*****

Registered: 2004-02-04
Posts: 92
I just got this error using KF.NET 3.2.14.0 and KiXtart 4.60.

I have reverted back to KiXtart 4.53

Top
#184715 - 2008-01-21 08:48 AM Re: Fatal exception issue with 4.60 and KF [Re: pearly]
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Any news on the KiXtart 4.60 issues?
_________________________
Kind regards,

Top
#195625 - 2009-08-27 09:30 AM Re: Fatal exception issue with 4.60 and KF [Re: Schuliebug]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
Hi Ruud,

Many thanks for the update to 4.61. Just a friendly reminder, this bug is unfortunately still present in the RC.

Regards,

Richard

Top
#195668 - 2009-08-29 07:27 AM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I would like to add that IMHO this is the most serious bug in KiXtart at present as there is no workaround and COM encompasses of lot of what we do. It would be great if this could be addressed in 4.61RC2.

Many thanks,

Richard

Top
#195680 - 2009-08-30 01:46 PM Re: Fatal exception issue with 4.60 and KF [Re: It_took_my_meds]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Good call, I dug in once more and think I've found the culprit.

I'll send out an update with the fix asap.

Ruud

Top
Page 1 of 2 12>


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 360 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

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