hang

onuserpreferencechanged hang - dealing with multiple forms and mutlipe ui threads

て烟熏妆下的殇ゞ 提交于 2019-12-02 07:27:30
问题 I think my problem is similar to: .NET 4.0 and the dreaded OnUserPreferenceChanged Hang I have also looked through: http://ikriv.com/en/prog/info/dotnet/MysteriousHang.html#BeginInvokeDance I have removed our splash screen. I also tried adding the suggested code: Microsoft.Win32.SystemEvents.UserPreferenceChanged += delegate { }; to our main() method. I'm looking for some ideas and information on how to troubleshoot. For our main() method we start a windowmanager class which is a form using

onuserpreferencechanged hang - dealing with multiple forms and mutlipe ui threads

拈花ヽ惹草 提交于 2019-12-02 00:57:23
I think my problem is similar to: .NET 4.0 and the dreaded OnUserPreferenceChanged Hang I have also looked through: http://ikriv.com/en/prog/info/dotnet/MysteriousHang.html#BeginInvokeDance I have removed our splash screen. I also tried adding the suggested code: Microsoft.Win32.SystemEvents.UserPreferenceChanged += delegate { }; to our main() method. I'm looking for some ideas and information on how to troubleshoot. For our main() method we start a windowmanager class which is a form using Application.Run It is just an icon in the task tray ( we don't show a window). Whenever we launch an

Ant build scripts totally hangs, with no messages in console

。_饼干妹妹 提交于 2019-12-01 15:14:27
I have build.xml for my project, but even this small piece of code <target name="init"> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> It doesn't run Console is empty but process is active. I still can terminate it over STOP button In same time I cannot debug it as well, same stuff active process no output in console and I can wait forever! Any ideas? JDK 1.6.0_14 Eclipse 3.5.1 Edited : Thank to Peter's Loron question I checked workspace log file MyWorkspace/.metadata/.log There I saw error message I googled it and found that this

GIDSignIn white screen on iOS 9

℡╲_俬逩灬. 提交于 2019-12-01 04:36:29
I implemented Google sign in and everything works on iOS 8. But when I call this line on iOS 9: GIDSignIn.sharedInstance().signIn() I'm able to log in the first time. But if I cancel, the next time I try to log in it shows a white screen where the normal user approval web view would be. This even happens when I delete the app and reinstall it, meaning that something might be getting cached at the OS level. The only solution is to reopen the iOS Simulator or restart my iPhone. I've tried all these answers with no luck. I've also tried GIDSignIn.sharedInstance().signIn().allowsSignInWithWebView

GIDSignIn white screen on iOS 9

元气小坏坏 提交于 2019-12-01 02:23:10
问题 I implemented Google sign in and everything works on iOS 8. But when I call this line on iOS 9: GIDSignIn.sharedInstance().signIn() I'm able to log in the first time. But if I cancel, the next time I try to log in it shows a white screen where the normal user approval web view would be. This even happens when I delete the app and reinstall it, meaning that something might be getting cached at the OS level. The only solution is to reopen the iOS Simulator or restart my iPhone. I've tried all

Buffered Reader HTTP POST

断了今生、忘了曾经 提交于 2019-11-30 23:57:24
Looking for a bit of help, I have currently written a HTTP server. It currently handles GET requests fine. However, whilst using POST the buffered reader seems to hang. When the request is stopped the rest of the input stream is read via the buffered reader. I have found a few things on google. I have tried changing the CRLF and the protocol version from 1.1 to 1.0 (browsers automatically make requests as 1.1) Any ideas or help would be appreciated. Thanks I agree with Hans that you should use a standard and well-tested library to do this. However, if you are writing a server to learn about

Python getpass.getpass() function call hangs

久未见 提交于 2019-11-30 21:35:20
I am trying to get a prompt that will ask for my password but when I try to call getpass.getpass() it just freezes. I am running on Windows 7 64 bit using Python 2.7 on Canopy. import sys import getpass p = getpass.getpass() print p Python "effectively freezes because it can't receive the input from standard input". See https://support.enthought.com/entries/22157050-Canopy-Python-prompt-QtConsole-Can-t-run-getpass-or-interactive-OS-shell-commands-or-Windows-process The fix is to use a different interpreter. I switched to IDLE and fixed the issue. It is correct that Python "effectively freezes

Win32 ReadFile hangs when reading from pipe

痞子三分冷 提交于 2019-11-30 20:24:55
I am creating a child process, and reading its output. My code works fine when the child process creates output ( cmd /c echo Hello World ), however ReadFile will hang if process does not create output ( cmd /c echo Hello World > output.txt ). I am only reading after the process has terminated. Am I doing something horribly wrong? Is there anyway to do this with synchronous mode, or do I have to use asynchronous mode? All of this is happening in a seperate thread, so I dont think asynchronous mode would offer any benefit to me, unless it is the only way to get this to work. Thanks a lot!

Python's subprocess.Popen object hangs gathering child output when child process does not exit

依然范特西╮ 提交于 2019-11-30 19:27:05
问题 When a process exits abnormally or not at all, I still want to be able to gather what output it may have generated up until that point. The obvious solution to this example code is to kill the child process with an os.kill, but in my real code, the child is hung waiting for NFS and does not respond to a SIGKILL. #!/usr/bin/python import subprocess import os import time import signal import sys child_script = """ #!/bin/bash i=0 while [ 1 ]; do echo "output line $i" i=$(expr $i \+ 1) sleep 1

Buffered Reader HTTP POST

时间秒杀一切 提交于 2019-11-30 18:49:48
问题 Looking for a bit of help, I have currently written a HTTP server. It currently handles GET requests fine. However, whilst using POST the buffered reader seems to hang. When the request is stopped the rest of the input stream is read via the buffered reader. I have found a few things on google. I have tried changing the CRLF and the protocol version from 1.1 to 1.0 (browsers automatically make requests as 1.1) Any ideas or help would be appreciated. Thanks 回答1: I agree with Hans that you