Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on launch #20

Closed
benrhughes opened this issue Nov 13, 2014 · 8 comments
Closed

Crashes on launch #20

benrhughes opened this issue Nov 13, 2014 · 8 comments
Labels

Comments

@benrhughes
Copy link

After my latest reboot, Switcheroo is crashing on launch. I couldn't find a log file, but here's the crash from Event Viewer:

Application: switcheroo.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Win32Exception
Stack:
   at ManagedWinapi.Hooks.Hook.StartHook()
   at Switcheroo.MainWindow.SetUpAltTabHook()
   at Switcheroo.MainWindow..ctor()
   at Switcheroo.Program.Main()

I tried deleting my user.config in the hope that it wouldn't try to re-hook Alt-Tab, but that didn't seem to help. I also tried installing/re-installing. Same thing.

Any ideas?

@benrhughes
Copy link
Author

Actually, it seems to be related to installing the 4.5.3 Preview .NET runtime. Not sure what about it messed up Switcheroo, but reverting back to 4.5.2 fixed things up.

Aside: being forced back to the old alt-tab make me realise just how much I rely on Switcheroo. It's part of my muscle memory now. Thanks :-)

@kvakulo
Copy link
Owner

kvakulo commented Nov 13, 2014

Ouch - sounds like a nasty bug. I'll check if it also happens to me under 4.5.3 preview. Would rather avoid being forced back to the old alt-tab after a random Windows update :D

@kvakulo kvakulo reopened this Nov 25, 2014
kvakulo added a commit that referenced this issue Nov 25, 2014
The alt+tab hook made Switcheroo crash due to "The specified module could not be found".
Fixed by http://stackoverflow.com/a/17898148/198065.
@kvakulo
Copy link
Owner

kvakulo commented Nov 25, 2014

It also happened to me, but the commit above should hopefully fix it.

@benrhughes, would you have a chance to try out this version that includes the fix under the .NET preview?
http://teamcity.codebetter.com/repository/download/Switcheroo/138490:id/switcheroo-portable.zip

  • Regin

@benrhughes
Copy link
Author

Sorry, I was planning on testing this last week. Unfortunately 4.5.3 screws
up some of my work-related projects too, so I can't re-install it on my
work machine. I was going to run up a VM but haven't had a chance.

On Wed, Nov 26, 2014 at 5:54 AM, Regin Larsen notifications@github.com
wrote:

It also happened to me, but the commit above should hopefully fix it.

@benrhughes https://github.com/benrhughes, would you have a chance to
try out this version that includes the fix under the .NET preview?

http://teamcity.codebetter.com/repository/download/Switcheroo/138490:id/switcheroo-portable.zip

  • Regin


Reply to this email directly or view it on GitHub
#20 (comment).

@ashutoshraina
Copy link

Hey @kvakulo ,

I tried the TC build and it works for me. The tagged releases were crashing as mentioned in the issue. Can we have the chocolatey packages updated along with an official release as well.

👍 for an awesome software, so happy to have this.

@kvakulo
Copy link
Owner

kvakulo commented Jan 14, 2015

Thanks for the feedback @ashutoshraina!

I'll make an official release with the fix a little later today :)

/ Regin

@kvakulo kvakulo added the bug label Jan 15, 2015
@kvakulo
Copy link
Owner

kvakulo commented Jan 15, 2015

Thanks @benrhughes and @ashutoshraina!

I have just released version 0.8.3 of Switcheroo containing this fix.

The chocolatey packages have been submitted and are waiting for approval.

/ Regin

@kvakulo kvakulo closed this as completed Jan 15, 2015
@ashutoshraina
Copy link

awesome 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants