hang

PHPMailer - Hangs

ぐ巨炮叔叔 提交于 2019-12-25 17:13:29
问题 I am trying to send an email via PHPMailer. I have unzipped the PHPMailer file to the server and have this code. I have the extra 'require' as it has been suggested in other posts regarding hanging when sending. It is reading the code as if I miss out the 'body' I get an error message saying so. I have tried multiple examples of different code as below and all hang. I have added and altered and now given up! I have a simple button that calls this code and the browser (tried multiple) just

Why Does TaskList.exe Never End When Redirecting Standard Output?

随声附和 提交于 2019-12-25 08:05:27
问题 When I attempt to run tasklist.exe with the Process class and set RedirectStandardOutput to true, the process never ends. using System.Diagnostics; class Program { static void Main(string[] args) { RunProcess("tasklist.exe"); } private static void RunProcess(string command) { var process = new Process() { StartInfo = { FileName = command, RedirectStandardOutput = true, UseShellExecute = false } }; process.Start(); process.WaitForExit(); } } If I set RedirectStandardOutput to false, the

Background worker hangs whole application

岁酱吖の 提交于 2019-12-25 02:12:26
问题 Ok here's the pretty light code: // // numConfigsBindingSource // this.numConfigsBindingSource.DataMember = "NumConfigs"; this.numConfigsBindingSource.DataSource = this.DSNumConfigs; // Grid this.GridNumConfigs.DataSource = this.numConfigsBindingSource; // // DSNumConfigs // this.DSNumConfigs.DataSetName = "DSNumConfigs"; this.DSNumConfigs.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // numConfigsTableAdapter // this.numConfigsTableAdapter.ClearBeforeFill =

Blank/black screen on app startup due data downloading?

烈酒焚心 提交于 2019-12-24 22:27:25
问题 The app i'm developing downloads a JSON file from remote address at every startup and then it parses the JSON Object and copies data to SQLite on the phone. This operation is the cause for which the app hangs for some seconds on every startup showing blank screen (or sometime blank and then black screen), in fact if i tried to disable this part of code the app starts quickly, with no hang. So, how could i do it better? Here is the code (DataHandler class) related to file download, parsing and

SendKeys::Send, going berserk

天大地大妈咪最大 提交于 2019-12-24 17:25:36
问题 I am trying to make updates to two linked TextBox es. I disable events in one and then send keystrokes using eg SendKeys::Send("A"); having first given it focus: texBox2->Focus(); texBox2->KeyDown -= gcnew KeyEventHandler(this, &Form1::texBox2_KeyDown); SendKeys::Send("A"); texBox2->KeyDown += gcnew KeyEventHandler(this, &Form1::texBox2_KeyDown); It almost works but goes totally mental instead repeating the character (I daren't look to check which exact key because I'm frantically

Loop thread hangs without `hFlush stdout` even there are no `print` things

假装没事ソ 提交于 2019-12-24 12:45:22
问题 When I test some simple cases about threaded codes, I found some loop hang without hFlush stdout even it does not use any print things. import Control.Concurrent import System.IO import Data.IORef delay :: Int -> IO () delay = threadDelay . (* 1000000) wait sw = loop where loop = do v <- readIORef sw --hFlush stdout -- without this, hang if v then return() else loop monitor sw = forkIO $ loop where loop = do v <- readIORef sw print v delay 1 loop main = do sw <- newIORef False forkIO $ do

isRegisteredForRemoteNotifications locking UI with semaphore_wait_trap

被刻印的时光 ゝ 提交于 2019-12-24 09:48:19
问题 There's a strange situation happening in my iOS application when it receive push notification. The UI stay locked and nothing works. When I pause the debugger I see semaphore_wait_trap in my thread. Debbuging the code I can see it is related to two things: the value type in push notification (because when I change Number to String the problem disappear); the isRegisteredForRemoteNotifications method (because when I remove it the problem disappear); I'm receiving a push notification as follow

Apache MINA - stuck on SSL connection

半世苍凉 提交于 2019-12-24 08:22:48
问题 I am having troubles with Apache MINA core library. When I deploy my application to a remote server some of the requests are not processed (around 2%). It looks like there might be a problem with SSL. Log tail: http://pastebin.com/48bwWsjs When request is not being processed, it is always stuck on the: org.apache.mina.filter.ssl.SslFilter - Session Server[40](ssl...): Processing the SSL Data Did something similar happened to any of you? I tried Apache-mina 2.0.7 and 2.0.16 Env: bash-4.2$ java

Use of Java generics could be hanging the compiler

旧城冷巷雨未停 提交于 2019-12-24 03:39:19
问题 I have about 55 Java interfaces and 5 abstract classes. Each declaration uses the same set of generic parameters: it lists the approximately 60 declarations so each implementation knows a specific type of each other implementation and substitute this type in method parameters and returns as appropriate. It appears that this (perhaps over)use of generics is causing the compiler to hang. The compiler throws an OutOfMemoryError, but does not appear to terminate. Considering my circumstance, a

Seeking advice on Jetty HttpClient Hang

二次信任 提交于 2019-12-24 02:23:48
问题 I have a small application that simply polls a server using Jetty v9.2, HttpClient . After some days, the application will freeze-up. Initially we identified the thread pool needed to be increased in size to relieve a performance hit. That change restored performance over a period of days. The lock-up remains. The cause has been isolated to the HTTP GET calls (problem goes away if when we comment-out the method). The root cause which appears the underlying the Jetty HttpClient Connection