Fix Win32 RPC Crashes. #938

pull TheBlueMatt wants to merge 1 commits into bitcoin:master from TheBlueMatt:guirpcwin32 changing 2 files +3 −2
  1. TheBlueMatt commented at 2:26 AM on March 15, 2012: member

    This resolves #820 and #640.

  2. TheBlueMatt commented at 4:41 AM on March 15, 2012: member

    Nevermind, Ive solved the problem. Well, OK maybe not quite, but I am getting closer.

  3. TheBlueMatt closed this on Mar 15, 2012

  4. TheBlueMatt reopened this on Mar 15, 2012

  5. laanwj commented at 9:59 AM on March 15, 2012: member

    If we're going to disable it, please add an error message, don't ignore the flag silently.

  6. TheBlueMatt commented at 3:02 PM on March 15, 2012: member

    Done.

  7. Fix Win32 RPC Crashes. 8864019f6d
  8. in src/init.cpp:None in 4ec7371e43 outdated
     263 | @@ -264,7 +264,14 @@ bool AppInit2(int argc, char* argv[])
     264 |      if (fDaemon)
     265 |          fServer = true;
     266 |      else
     267 | +    {
     268 | +#if !defined(WIN32) || !defined(QT_GUI)
     269 |          fServer = GetBoolArg("-server");
     270 | +#else
     271 | +        wxMessageBox(_("Error: cannot run an RPC server in GUI mode, ignoring -server."), "Bitcoin");
    


    gavinandresen commented at 4:19 PM on March 15, 2012:

    This logic doesn't look right to me-- won't the message box pop up always with this change?

    Should be something like:

    fServer = GetBoolArg("-server");
    #if defined(WIN32) && defined(QT_GUI)
    ... messageBox(ignoring....)
    fServer = false;
    #endif
    

    TheBlueMatt commented at 4:34 PM on March 15, 2012:

    if defined(WIN32) && defined(QT_GUI) is equivalent to if !(!defined(WIN32) || !defined(QT_GUI)) tough maybe a bit uglier...

  9. TheBlueMatt commented at 6:32 PM on March 16, 2012: member

    Changed to fix the problem itself.

  10. gmaxwell commented at 6:32 PM on March 16, 2012: contributor

    ACK.

  11. gmaxwell referenced this in commit fa689db37b on Mar 16, 2012
  12. gmaxwell merged this on Mar 16, 2012
  13. gmaxwell closed this on Mar 16, 2012

  14. coblee referenced this in commit 153398b5c2 on Jul 17, 2012
  15. suprnurd referenced this in commit ee266f2d01 on Dec 5, 2017
  16. ptschip referenced this in commit 514d59f0e9 on Jan 25, 2018
  17. lateminer referenced this in commit 0ac0116ae4 on Oct 30, 2019
  18. KolbyML referenced this in commit 565e630f64 on Sep 4, 2020
  19. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me