Coder Social home page Coder Social logo

Comments (7)

kenjiuno avatar kenjiuno commented on August 23, 2024

Hi.

I have posted a pull request (#45) to fix this issue, though I'm not sure if it is good solution.

Thanks
kenji uno

from winsparkle.

kenjiuno avatar kenjiuno commented on August 23, 2024

Hi.

If you try to show CheckUpdate dialog again in example_psdk.exe:
Delete [CheckForUpdates] value from the registry key [HKEY_CURRENT_USER\Software\winsparkle.org\WinSparkle Example App\WinSparkle].

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

Did you try with the very latest sources (it's always worth doing)? Specifically, with sources that include 8a440b6? I'm almost sure this is a duplicate of #42 and was just fixed 3 days ago. Could you please check if that's the case?

from winsparkle.

kenjiuno avatar kenjiuno commented on August 23, 2024

Hi.

Did you try with the very latest sources

Yes, I have tried and worked on latest master 2ee16f6.

The fix 8a440b6 is included and it didn't fix my problem.

My issue is about "dialog's parent window":

  • [Window2] owns [Window3], because wxDIALOG_NO_PARENT isn't specified. I don't know whether this is specification/bug of wxWidgets or not. You can check it by using Spy++.
  • If you close [Window2] by selecting one of [Btn2][Btn3], [Window3] is also destroyed. It seems that it is done without required post processing of wxWidgets. It means that wxWidgets treats [Window3] is still alive, so app won't quit, because UI thread cannot be terminated.

ps: I'm using winsparkle on company's product and it works very well, thanks!

from winsparkle.

vslavik avatar vslavik commented on August 23, 2024

My issue is about "dialog's parent window":

(Your issue was with application not terminating. Nowhere in the description was it apparent that it could be related to parent-child relationship, so the assumption that it was related to 8a440b6 was IMHO a reasonable one.)

Thanks for the follow-up explanation! This parentship relationship between the windows would be correct without wxDIALOG_NO_PARENT if [Window2] was created first; it's highly surprising to me that wx would reparent later, when the dialog is already being shown modally. That's a very valuable observation and makes the reason for #45 much cleaner, thanks a lot for that. (It's exactly the kind of description that would be great to have in the commit message itself, too.)

I still don't understand how could 8a440b6 not work, but that's a problem with me, not this issue and PR — I must still be missing something :(

from winsparkle.

kenjiuno avatar kenjiuno commented on August 23, 2024

Hi.

Sorry, I have found a side effect brought by this patch!

from winsparkle.

kenjiuno avatar kenjiuno commented on August 23, 2024

Hi.

My mention "a side effect" at the prior post is by my misunderstanding. Sorry!

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.