<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 21: Bug - closing window via utility causes PSM to crash</title><link>https://sourceforge.net/p/puttysm/support-requests/21/</link><description>Recent changes to 21: Bug - closing window via utility causes PSM to crash</description><atom:link href="https://sourceforge.net/p/puttysm/support-requests/21/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 31 Jan 2014 13:26:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/puttysm/support-requests/21/feed.rss" rel="self" type="application/rss+xml"/><item><title>Bug - closing window via utility causes PSM to crash</title><link>https://sourceforge.net/p/puttysm/support-requests/21/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Apologies - this is a complicated one to explain. I use a utility called AWM (www.actualtools.com) to add extra functionality to the regular Win32 windowing system. One of the things AWM can do is close / minimise / roll-up windows which aren't active. I want to use the PSM window as a kind of transient pop-up window rather than have it visible all the time. So, I created an AWM rule that would close the PSM window when it became inactive.&lt;/p&gt;
&lt;p&gt;The problem is that when PSM launches, it opens its window, and if I then focus another window immediately, PSM crashes (its System Tray icon vanishes along with the window, and on running PSM again, I get a system.invalidoperationexception error dialog (closing this allows me to run PSM again without any errors).&lt;/p&gt;
&lt;p&gt;I can workaround this by following a very specific procedure:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open PSM&lt;/li&gt;
&lt;li&gt;Without giving any other app focus (tricky, as I also use XMouse), close the PSM window via the red 'X' button (no crash, and System Tray icon still available)&lt;/li&gt;
&lt;li&gt;Open the PSM window via the System Tray icon&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Once I've done this, I can happily let AWM close the PSM window by focussing on another app - it doesn't crash PSM now, providing I've been through the 'click the Red 'X' button' routine before PSM loses initial focus.&lt;/p&gt;
&lt;p&gt;My guess is that there's some code behind that button click event which needs to run to avoid the crash, but which isn't triggered if PSM just receives a windows message (from AWM) to close the window.&lt;/p&gt;
&lt;p&gt;Any thoughts gratefully appreciated!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dsl101</dc:creator><pubDate>Fri, 31 Jan 2014 13:26:23 -0000</pubDate><guid>https://sourceforge.neta38a15cf0d08b730c89812e4aac7ddc98c34efdd</guid></item></channel></rss>