Comments (13)
The only thing that jumps out as a possible culprit is it being a regional thing, however this is doubtful. This is kind of why frameworks like .Net are so useful.
Please install this special build attached; I have implemented a lot of Try...Catch statements, especially in calling the Settings dialogue box. Send me some screenshots of any error messages that appear; they should all be handled now, if it has anything to do with the Settings form class.
AlwaysOnTop-Installer_v0.5.1_b170106.2337.zip
from alwaysontop.
The error when exiting the app is still the same:
The error window when opening the settings has changed, but the message is virtually the same:
from alwaysontop.
+1, same issue on Windows 10 Pro build 15007
from alwaysontop.
English version of the stack trace, just in case due to the possibility of it being a regional thing.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at AlwaysOnTop.Classes.FormSettings.FormSettings_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
AlwaysOnTop
Assembly Version: 0.5.1.0
Win32 Version: 0.5.1
CodeBase: file:///C:/Program%20Files%20(x86)/jParnell/AlwaysOnTop/AlwaysOnTop.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2020.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
from alwaysontop.
Interesting... I never had this issue before, but I just reinstalled Windows 10 build 1607 on my dev PC (had OneDrive issues anyway), and now I get the same thing, but only when I'm running from the installed application (the debugging app, which is wrapped around vshost.exe, still works fine). This tells me there's a dependency issue in the installer and that I'm leaving something out when compiling.
Do either of you get the same results when opening other dialogue boxes (About or Help)?
from alwaysontop.
Appears to only happen with settings, I tried all the other tray options.
from alwaysontop.
I forgot to mention, I haven't used the special build. Would it be helpful if I tried that?
from alwaysontop.
@jwhipp are you using 32 bit Windows or 64 bit?
So this started happening to me (see above, reinstalled Windows), until I installed Visual Studio. There was a couple Visual C++ packages that got installed alongside Visual Studio 2015 Community
@jwhipp & @m93a , I am attaching a batch script that will search your registry for all installed software labeled "Visual C++". It will output a file called "software_list.txt" in the same folder as the batch script. Please run that script and attach the text file in a reply. May have a solution very soon.
from alwaysontop.
Also attaching the Visual C++'s I have installed, as I'll likely be at work before I see this, rather than home.
Installed Visual C Plus Plus.zip
software_list.txt
from alwaysontop.
Windows 10 Pro 64 bit
software_list.text:
Visual C++ Packages Installed
"Microsoft Visual C++ 2013 x64 Additional Runtime - 12.0.21005"
"Microsoft Visual C++ 2013 x64 Minimum Runtime - 12.0.21005"
from alwaysontop.
Ok, good news is I have found the cause of the unhandled exception in the Exit method.
In my primary class, I had a check against the user settings in the registry... if Use Hotkey = 1 and Hotkey != "", register a globalKeyboardHook and provide it the keys signaled in the registry.
The Exit method was calling the unhook method in the keyboard hook, so that any hotkeys registered would be de-registered. Since conditionals will only declare that IF the condition is true (so only in half scenarios) .Net was saying "Ok, this object may or may not exist, so let's throw a vague exception".
This is fixed by added an Else { } statement and declaring a blank globalKeyboardHook that does not register any keys or key events. This fix will be implemented in the next release.
Now on to troubleshoot the Settings exception....
from alwaysontop.
And more good news. Found the settings crash. Turns out, if the hotkey was never set, it never created a registry entry. When the settings was opened, it was trying parse and separate the registry setting into the separate keys (modifier + key). If that setting was blank, it was returning NULL - so rather than checking to see if the setting returned "", it now determines if the string IsNullOrWhiteSpace (so it checks for null, "", or whitespace".
Fixes are implemented in code, will be fixed in next release (waiting until I get the updater portion corrected)
from alwaysontop.
Bug fixed in version 0.6.1. Please download and install that version.
Thanks for catching this guys - I really need to set up a "clean" VM to test my products on, and will do that in the near future, to hopefully avoid this issue.
Let me know if you encounter any new bugs by filling out a new issue. If this one requires re-opening, please let me know!
from alwaysontop.
Related Issues (20)
- Allow a check for updates functionality against master branches releases HOT 2
- Turn of system sounds checkbox HOT 8
- When app is run in elevated admin mode AlwaysOnTop won't work HOT 4
- Message box used for debugging updater did not get removed from finalized build "You are up to date" HOT 1
- version 0.6.1 is not working correctly on Win 10 HOT 15
- Keyboard not working while using it. HOT 17
- How to get the Always On Top window to normal one. HOT 1
- Cannot open Windows Start menu when Settings window is open
- No license in the the installer
- Bug report master list
- Force Window to Always Open on Top
- keyboard issues after install of AlwaysOnTop HOT 9
- Arrow keys don't work while alwaysontop is running
- Input does not work when this program is running
- False postive in Bitdefender?
- Keyboard not working when this is active HOT 6
- Show/Hide System Tray icon
- Malicious exe according to Virus Total
- Keyboard (almost) do not respond after installing the Always On Top on WIndows 10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alwaysontop.