Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Kenneth Siewers Møller
9 discussion posts
I can confirm this also happens with LINQPad v4.47.02 (alt-tab handler doesn't show the application)
Feb 13, 2014 (modified Feb 13, 2014)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I've just tested LINQPad here, and it shows up for me in the DisplayFusion Alt-Tab Handler. Which version of Windows are you on?
Feb 13, 2014  • #2
User Image
Kenneth Siewers Møller
9 discussion posts
I'm on windows 8.1.
Feb 13, 2014 (modified Feb 13, 2014)  • #3
User Image
Kenneth Siewers Møller
9 discussion posts
Oh and DF 6.0.0 beta 2.
Feb 13, 2014  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, strange! Just re-tested in DisplayFusion 8.1 with DF 6.0 B2, and it still shows up fine for me. Could you do the following to help troubleshoot further?
  • Enable debug logging on the Troubleshooting tab (set it to Logging: Important Only) and click Apply
  • Restart DisplayFusion
  • Try the alt-tab again when LINQPad is running (please note the time so I'll know where to look in the log file)
  • Attach the %appdata%\DisplayFusion\DisplayFusion.log file to this topic (can be found by clicking the 'Open Log' button on the Troubleshooting tab)
  • Disable debug logging after sending me the log

Thanks!
Feb 13, 2014 (modified Feb 13, 2014)  • #5
User Image
Kenneth Siewers Møller
9 discussion posts
Hm, this is strange. I've rebooted my computer and now LINQPad shows up.
It must have beens some glitch in Windows, as I tried restarting DF multiple times.

I'll do as you suggest, if it happens again (seems kind of pointless now) :)

Thanks!
Feb 14, 2014  • #6
User Image
Kenneth Siewers Møller
9 discussion posts
Alright, it's happening again :(

I've attached the logfile... I ran the debug at approximately 13.08+'ish. I seached for LINQPad in the logfile and it's there...
• Attachment [protected]: DebugInfo.txt [71,467 bytes]
• Attachment [protected]: DisplayFusion.log [276,545 bytes]
Feb 14, 2014  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks! It shows up in the log, but not with any log lines related to the alt-tab handler. The next time it stops working, could you note any details about the circumstances? i.e. had you just moved it to another monitor, or did you do something specific in LINQPad right before it broke?
Feb 14, 2014 (modified Feb 14, 2014)  • #8
User Image
Kenneth Siewers Møller
9 discussion posts
I've figured out what causes the problem.

Try executing the following code in LINQPad as a C# Program. Don't mind the actual contents, as I believe the culprit is WPF.

You'll need to add the following to the "Additional References" in query properties (F4):
  • PresentationCore.dll
  • PresentationFramework.dll
  • System.Xaml.dll
  • WindowsBase.dll

The following goes in the "Additional Namespace Imports" tab:
  • System.Windows
  • System.Windows.Forms
  • System.Windows.Media

Code

void Main()
{
var sp = new System.Windows.Controls.WrapPanel();
sp.Orientation = System.Windows.Controls.Orientation.Horizontal;
sp.MaxWidth = 250;

var rnd = new Random();

for (int i = 0; i < 100; i++)
{
var colorCode = 0;

colorCode = ("The quick brown fox jumped over the" + (char)rnd.Next(1, 10)).GetHashCode();

var color = this.ConvertIntToColor(colorCode);

var element = new System.Windows.Shapes.Ellipse();
element.Width=25;
element.Height=25;
element.Fill = new SolidColorBrush(color);
element.Stroke = new SolidColorBrush(Colors.Black);

sp.Children.Add(element);
}

PanelManager.DisplayWpfElement(sp);
}

public Color ConvertIntToColor(int colorCode)
{
    var r = (byte)((colorCode >> 16) & 0xFF);
    var g = (byte)((colorCode >> 8) & 0xFF);
    var b = (byte)(colorCode & 0xFF);
    var a = (byte)((colorCode >> 24) & 0xFF);

    var c = Color.FromArgb(255, r, g, b);
    return c;
}
Feb 14, 2014 (modified Feb 19, 2014)  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, interesting! I'll test that out here, but could you add the 'using' statements to your code snippet? I'm getting some namespace errors when I try to run it.

Thanks!
Feb 18, 2014  • #10
User Image
Kenneth Siewers Møller
9 discussion posts
Press F4 to open query properties. There you need to add the following lines in the "Additional Namespace Imports" tab:

System.Windows
System.Windows.Forms
System.Windows.Media

That should take care of the problem :)
Feb 19, 2014  • #11
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks, I've reproduced that issue here with the attached query :)

We'll let you know as soon as we're able to get it fixed up!
Feb 20, 2014  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just released a new DisplayFusion beta version and this issue should be all fixed up. Please let us know if you run into any trouble after updating.

Thanks!
May 7, 2014  • #13
User Image
Kenneth Siewers Møller
9 discussion posts
Wow, the new improvements are amazing! Performance alone is through the roof! Thanks a lot :D
Jun 10, 2014  • #14
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Awesome, glad to hear it!
Jun 10, 2014  • #15
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)