Coder Social home page Coder Social logo

Comments (8)

Houd1ny avatar Houd1ny commented on August 23, 2024

I think one fix is to remove
rethrow of exception in UpdateChecker and UpdateDownloader
because they run in different spread and CATCH_ALL_EXCEPTIONS can`t catch them.

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

Thanks!

run in different spread

I have no idea what you mean by that, sorry — can you please be more specific? You have the code at your disposal, you know, you could actually show the suggested code and some me some time, since you clearly already investigated this a bit…

But generally speaking, no, silently loosing errors is most definitely no the right thing to do. Making sure everything is caught and logged is.

from winsparkle.

Houd1ny avatar Houd1ny commented on August 23, 2024

@vslavik sorry I meant thread not spread.

from winsparkle.

Houd1ny avatar Houd1ny commented on August 23, 2024

@vslavik as I understand you run UpdateDownloader and UpdateChecker in different thread asynchronously. And because they are in different thread
there are no one that can catch this rethrow
catch ( ... )
{
UI::NotifyUpdateError();
throw;
}

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

What does "in sleep mode" in the title mean? Presumably it's about putting the computer into sleep while the host app is… doing what, exactly? Just being? Checking for updates at the moment? Actively downloading? Just having some WinSparkle UI shown but not doing anything?

from winsparkle.

Houd1ny avatar Houd1ny commented on August 23, 2024

@vslavik We have found what was the problem. Our user generated crash reports from winsparkle, but app in reality did n`t crash. That was exceptions in win sparkle. I think that was because they was unhandled and in different thread. We fixed this just filtering exception that do no cause crash. I close this issue
Thank you for your time.

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

Kindly leave the decision of closing to me.

It was obvious from the very beginning that this was an uncaught exception. Uncaught exceptions are bad. Bad things should be fixed.

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

Upon code review, this issue was indeed bogus: all exceptions thrown in threads are caught correctly. So your crash reported wasn't misreporting uncaught exceptions (it would be right to report that!), but was misreporting any thrown — and later caught — exceptions.

You were right to close the issue, I just didn't understand what you were saying then (I do now).

from winsparkle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.