Form Visibility Problem (Win 7 - 32 / 64 Bit)

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby tspink » Mon Aug 23, 2010 8:46 pm

Excellent, Phil! Clearly the "Region Workaround" implicitly caused PerformNeedPaint(true) to occur, in the Shown event.

Robin,

Nice development box! I'm a Linux developer, so I was running a Windows 7 VM inside VirtualBox, on Ubuntu, on top of a quad-core something - and admittedly only ran the test for at most 10 mins. The target PCs at work were clearly (surprisingly) fast enough to not show the issue too!

It would be nice to understand the race condition, however, as I'm pretty sure that's what it is.
Tom.
tspink
 
Posts: 6
Joined: Tue Mar 09, 2010 11:49 pm
Location: Perth, Scotland, UK

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby Ryan B. » Mon Aug 23, 2010 10:14 pm

Good work Phil!

Do you think you can make a maintanance release avaliable shortly?

This would save us from applying and (later) removing the fixes ourselves.

Regards,
Ryan
Ryan B.
 
Posts: 8
Joined: Thu Aug 19, 2010 1:58 am

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby Phil Wright » Mon Aug 23, 2010 10:27 pm

Not at the moment, it is a bit quick to be releasing one. Probably in another three weeks just before I go on holiday.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby Ryan B. » Tue Aug 24, 2010 12:48 am

That would be perfect! Thanks!
Ryan B.
 
Posts: 8
Joined: Thu Aug 19, 2010 1:58 am

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby colonel32 » Wed Sep 01, 2010 12:49 am

Thank you Phil, I have been running with your single-line workaround for a week now, and everything has been perfect!

Tom, yes, I'm very pleased (and lucky) to have this machine as a dev box :) I've never used VirtualBox, but its virtual display drivers may be masking the issue as well. I know when I tried to reproduce this on VIrtualPC, I could not at all.

Cheers, Robin
colonel32
 
Posts: 34
Joined: Tue Oct 13, 2009 1:31 am

Re: Form Visibility Problem (Win 7 - 64 Bit)

Postby Ryan B. » Sat Sep 18, 2010 11:09 pm

Krypton 4.3 did not fix the problem on my system (win 7 32 bit).

What's about the others? Did you do some testing? Is the problem still there or is it gone?

Edit: Some more testing seems to indicate that the problem does not occur when

Code: Select all
PerformNeedPaint(true);


is added to every form shown event.

I know that this is what Phil added internally as a fix to Krypton but it doesn't seem to suffice.

Maybe adding it once again on my side, makes the problem only much more less likely to occur and it may not be gone completely.

However, without this line the problem occured within 10 minutes (automatic repeated testing) two times.
With this line it ran for 100 minutes without a problem.

I'll now do just that and hope that it will be gone forever :D

Regards,
Ryan
Ryan B.
 
Posts: 8
Joined: Thu Aug 19, 2010 1:58 am

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby colonel32 » Tue Sep 21, 2010 6:17 am

Haven't tried 4.3 yet. I only upgraded to 4.2 the day before 4.3 was released, and after reading about the bug reports with the new controls, I had thought to stick with 4.2 and the workaround until the next version was released.
colonel32
 
Posts: 34
Joined: Tue Oct 13, 2009 1:31 am

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby shartmann » Tue Oct 12, 2010 7:39 am

anything new about this ???
shartmann
 
Posts: 45
Joined: Thu Mar 27, 2008 5:58 pm

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby Phil Wright » Thu Nov 11, 2010 1:04 pm

I have added the PerformNeedPaint to the base code for use under Windows7.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby Asterix » Sat Dec 11, 2010 9:00 pm

Hi all,
I have deployed my application with Krypton 4.3. On some computers with Windows 7 , the problem describes on this topic occures again. It's impossible for me to reproduce this problem on my computer. I try to download the test application of 'colonel32' but the link is broken. Can someone give me the test application ?
To Phil : I have purchased the source code and when I look on KryptonForm, I don't see the call to the 'PerformNeedPaint' method from the 'Shown' event.
Thanks for your help
Asterix
 
Posts: 4
Joined: Sat Dec 11, 2010 8:56 pm

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby colonel32 » Sat Dec 11, 2010 9:29 pm

Asterix wrote:I have deployed my application with Krypton 4.3. On some computers with Windows 7 , the problem describes on this topic occures again. It's impossible for me to reproduce this problem on my computer. I try to download the test application of 'colonel32' but the link is broken. Can someone give me the test application ?

Sorry about that, I had changed my ISP since I posted the test application. I have fixed the link now!
colonel32
 
Posts: 34
Joined: Tue Oct 13, 2009 1:31 am

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby Asterix » Sat Dec 11, 2010 9:52 pm

Colonel32, thank you for your link.
I try this now.
Asterix
 
Posts: 4
Joined: Sat Dec 11, 2010 8:56 pm

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby Asterix » Sat Dec 11, 2010 11:59 pm

Hi all,
I have executed the test application of colonel32.
I confirm that the ghost window appear with the 4.3 version of KryptonToolKit. Configuration : Windows 7- 64 bits, Krypton 4.3, .Net framework 2.0.
On Vista and XP, no ghost window.
Also, I have put
Code: Select all
PerformNeedPaint(true);
in the FormChild_Shown event (After Thread.Sleep), but the problem persist.
Someone have an idea ?
Asterix
 
Posts: 4
Joined: Sat Dec 11, 2010 8:56 pm

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby chinconkuak » Fri Dec 17, 2010 6:53 am

Same problem here with Krypton 4.3 (Windows 7 x64, VS 2008).

But I got the bug only on KryptonMessageBoxes!! The regular krypton forms work as expected.

I suppose I can change those KryptonMessageBox'es to regular ones... but I will break the visual flow.

I hope this can be fixed soon.
chinconkuak
 
Posts: 9
Joined: Sat Jun 07, 2008 3:30 pm
Location: Tepic, Mexico

Re: Form Visibility Problem (Win 7 - 32 / 64 Bit)

Postby justin » Sun Feb 12, 2012 12:08 am

Same here too with Krypton 4.3, Windows 7 x32, VS2008 / VS2010.

So although the 4.3 release claimed to fix this issue, I noticed no improvement at all. I seem to have fixed the issue by tweaking the Krypton source. Changes are below in the hope that it helps others. The only change is the case value. PerformNeedPaint wasn't getting called, but now is, once when the form is first shown. I think 0x05 is WM_SHOW. I couldn't discover what 0xC1BC is.

In VisualForm.cs change:
Code: Select all
                    case 0xC1BC:
                        // Under Windows7 a modal window with custom chrome under the DWM
                        // will sometimes not be drawn when first shown. So we spot the window
                        // message used to indicate a window is shown and manually request layout
                        // and paint of the non-client area to get it shown.
                        PerformNeedPaint(true);
                        break;


To:
Code: Select all
                    case 0x5:
                        // Under Windows7 a modal window with custom chrome under the DWM
                        // will sometimes not be drawn when first shown. So we spot the window
                        // message used to indicate a window is shown and manually request layout
                        // and paint of the non-client area to get it shown.
                        PerformNeedPaint(true);
                        break;
justin
 
Posts: 10
Joined: Tue Mar 31, 2009 6:24 am

Previous

Return to Krypton Toolkit

Who is online

Users browsing this forum: No registered users and 1 guest

cron