Mart
(KiX Supporter)
2011-08-16 10:59 AM
Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I think I found a serious bug (at least in my case it is a huge show stopper) while testing my logon script with 4.62.

I start a dummy kf classic form to see if kf is installed and select what script to run depending on the outcome (kf version or non kf version).
All is fine on WinXP but on Win7 and Win7SP1 it throws a fatal exception right away. It looks like 4.62 is not playing nice with kf classic on Win7 and Win7SP1. I tested this on two Win7 32bits systems one with SP1 and one without SP1 and it fails on both. 4.61 works fine on XP, 7 and 7 with SP1 installed.
Can someone please check this to confirm that I’m not going crazy?

 Code:
Break on

$rc = CreateObject("Kixtart.Form")


ShaneEP
(MM club member)
2011-08-16 05:42 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I am also seeing issues. I just created a simple test form with the code below, and although I dont see any errors, the form never shows, it just quits immediately. If I copy 4.61 back into place, the same code works fine.

 Code:
$System = CreateObject("KiXtart.System")
$Form = $System.Form()
$Form.Show()
While $Form.Visible
   $Nul = Execute($Form.DoEvents)
Loop
Exit 0


I am using Windows 7 SP1 64-bit.

Also, I added "? @SError" lines after each line and they all say success, but the form never shows.


Glenn BarnasAdministrator
(KiX Supporter)
2011-08-16 07:47 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I'm not having the problem - Windows 7 SP1 X64

This shows that I'm running 4.62 (kix32 /?), shows the sample code, and the execution of that code. Also, I've been using tsAdm and another GUI tool since upgrading to 4.62 without any issue.

I'm using KixForms 2.47.5.0

Glenn


ShaneEP
(MM club member)
2011-08-16 09:29 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Strange. I would say that I just did something wrong when I tested, but the fact that it immediately worked again after placing 4.61 back makes it a bit more suspicious. I will test again when I get home from work tonight.

ShaneEP
(MM club member)
2011-08-16 09:35 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Just out of curiousity, have you tried using wkix32.exe? Also...where did you get kixforms.dll ver 2.47? I can only find 2.46.

Ruud van Velsen
(Hey THIS is FUN)
2011-08-16 09:38 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Excellent find, thanks for the report.
Curiously, this does not appear to be the result of a code change in KiX itself, but due to some change in the VS2010 compile/build run. (Because if I build the 4.61 code, the same issue appears...) Maybe a change in the runtime libraries, maybe the optimization.

Also strange is the fact that everything else appears to work just fine, including automation of other COM objects..

This will require some investigation, and as I'll be busy elsewhere the next weeks, I'm afraid it may take a while to fix.

Ruud


Ruud van Velsen
(Hey THIS is FUN)
2011-08-16 09:41 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Ah, only just now saw Glenn's post: I've been testing with KF 2.46.

So if 2.47 indeed works fine, there indeed appears some curious compat issue between KX 2.46 and KiXtart built with VS 2010.

Hmmm.

Anyway, thanks for the testing, excellent work!

Ruud


JochenAdministrator
(KiX Supporter)
2011-08-16 09:52 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Shane, Ruud,

the latest and greatest is always to be found in here:

Kixforms Classic Development build


JochenAdministrator
(KiX Supporter)
2011-08-16 09:55 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

btw, Mart,

Kixtart.Form is a bit deprecated IIRC .. it's been a long time, but I think using Kixtart.System Object is the preferred way of initialising kf.Classic


ShaneEP
(MM club member)
2011-08-17 01:34 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I can confirm that replacing kixforms 2.46.55 with 2.47.4 resolved the problem for me.

It_took_my_meds
(Hey THIS is FUN)
2011-08-17 05:09 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Speaking of KiXforms, has anyone heard from Shawn?

Glenn BarnasAdministrator
(KiX Supporter)
2011-08-17 05:49 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Hmm.. the links on the KF site show 2.47.4, and I have 2.47.5.

This was a KF.DLL that Shawn sent me about 2 years ago when I was developing some Sockets-based code, so I don't know if it's been "released". It's worked well for all my apps, and I have some heavy socket-based code running between the US and Aus, as well as some local helpdesk type stuff that's GUI intensive and uses Sockets as well.

Glenn


Mart
(KiX Supporter)
2011-08-17 09:15 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

 Originally Posted By: Jochen
btw, Mart,

Kixtart.Form is a bit deprecated IIRC .. it's been a long time, but I think using Kixtart.System Object is the preferred way of initialising kf.Classic



Ok. Didn't know that. That's what you get for copying and pasting parts from other (older) scripts .
Changing Kixtart.Form to Kixtart.System gives the same results on kf 2.46. Upgrading to kf 2.47 works fine. I'll update my scripts and install 2.47. Thanks for the help.


Mart
(KiX Supporter)
2011-08-17 09:23 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

 Originally Posted By: It_took_my_meds
Speaking of KiXforms, has anyone heard from Shawn?


Every now and then he does a drive by but it has been a while since I’ve seen him online. His last post is from July 20th 2011. I guess he is not doing so much kix work nowadays.


It_took_my_meds
(Hey THIS is FUN)
2011-08-17 03:30 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I know it's a bid morbid... but what if Shawn dies.

Does anyone have the source code? I for one have a SIGNIFICANT investment in KiXforms (and of course KiXtart) code. I've been able to work around a number of limitations using DynaWrap etc but whilst KiXforms 2.47.4 is excellent, it has a number of expected limitations and is going to eventually need to be upgraded without eventually causing serious problems for those of us who have very large business critical scripts that rely heavily on it.

This will be especially apparent when Windows 8 opens up to a lot to native coders what was once the realm of .NET and vice versa. Sadly, I've heard no statement of intent, he just seemed to (at least to me) have disappeared. I've got sooo much to thank him for, I would like to hear his words on KiXforms just as I'm always excited to hear from Ruud.


ShawnAdministrator
(KiX Supporter)
2011-08-17 03:35 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I visit the board every other day or so. Don't post much anymore though. I'm always willing to look at and revisit any compatibility issues, at least until old age sets-in ;-)

[edit]

Ok, maybe less than every other day or so.


AllenAdministrator
(KiX Supporter)
2011-08-17 03:42 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Shawn, Glenn brought up having a .5 release instead of .4. I just downloaded .4 off the kforms site. Is there a newer release that just didn't make it to your site?

ShawnAdministrator
(KiX Supporter)
2011-08-17 03:55 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Glenn and I were working on some special customizations for a project he had. When I get a chance, will check the latest build number and advise. Will refresh it on kforg if possible.

Glenn BarnasAdministrator
(KiX Supporter)
2011-08-17 05:01 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

FYI - I've been using this version everywhere without any known issue. YMMV, of course. \:\)

Glenn


NTDOCAdministrator
(KiX Master)
2011-08-17 07:21 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

 Originally Posted By: It_took_my_meds
I know it's a bid morbid... but what if Shawn dies.

Does anyone have the source code?


There is an archive of his source code but without his permission even if he did pass away we would not be able to release it.


It_took_my_meds
(Hey THIS is FUN)
2011-08-18 01:45 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Thanks Shawn.

ShawnAdministrator
(KiX Supporter)
2011-08-18 05:39 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I uploaded 2.47.5 to here.

http://www.kixforms.org/assets/files/kixforms/developer/kixforms_2_47_5.msi

Please check it out and advise. It's compiled with VS2008 so it should be cool. I used VS2005 for the longest time prior to that, think that's why the earlier versions don't play nice.


It_took_my_meds
(Hey THIS is FUN)
2011-08-18 09:36 AM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

Excellent. Thanks :-)

JochenAdministrator
(KiX Supporter)
2011-08-18 01:00 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I remember the times when Shawn was programming on kixgui.dll (the predecessor of kf.Classic)

Damn, that is almost 10 years ago now .. Had fun with scripting a hearts clone in it, while our Australian friend cj did some very amazing fractal displays .. I have the scripts somehwere in an old folder somewhere


GOGO
(Fresh Scripter)
2014-03-21 03:16 PM
Re: Kixtart 4.62 and Kixforms classic not playing nice on Windows 7

I had the descriped problems with kixforms und W7 too. I was really worried, because i use the latest kix version and also downloaded the last kixforms.dll from kixforms.org. I was looking deep into my skripts and got really confused about registration, because my skripts doesn't even get any errors. Finally i found this thread. kixforms 2.47 works just fine with my skripts but i'm wondering why the version 2.47 isn't released officially at kixforms.org?
Even no hint in any documentation about this known issues and also not easy to find in both forums.

Does anyone has more Information about version 2.47? Are there any problems so it can't be released yet?

Thanks GOGO