hang

Download HTTP thru sockets (C)

£可爱£侵袭症+ 提交于 2019-12-20 14:09:17
问题 Recently I started taking this guide to get myself started on downloading files from the internet. I read it and came up with the following code to download the HTTP body of a website. The only problem is, it's not working. The code stops when calling the recv() call. It does not crash, it just keeps on running. Is this my fault? Am I using the wrong approch? I intent to use the code to not just download the contents of .html-files, but also to download other files (zip, png, jpg, dmg ...). I

sqlite database is locked on insertion

て烟熏妆下的殇ゞ 提交于 2019-12-20 02:04:53
问题 There's a simple code var insert = @"INSERT INTO [files] ( [Name], [FullName], [MD5]) VALUES (@Name, @FullName, @MD5);"; using (var con = _db.OpenConnection()) { using (var cmd = con.CreateCommand()) { cmd.CommandText = insert; cmd.Parameters.AddWithValue("@Name", item.Name); cmd.Parameters.AddWithValue("@FullName", item.FullName); cmd.Parameters.AddWithValue("@MD5", item.MD5); cmd.ExecuteNonQuery(); } } applications hangs for some time when executing cmd.ExecuteNonQuery(); and then fails

Ant build scripts totally hangs, with no messages in console

半世苍凉 提交于 2019-12-19 12:52:15
问题 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

Ant build scripts totally hangs, with no messages in console

风格不统一 提交于 2019-12-19 12:52:05
问题 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

How to avoid Android getSystemService(Context.SENSOR_SERVICE) hanging emulator?

隐身守侯 提交于 2019-12-18 15:17:25
问题 Whenever I call this method in the Android emulator: SensorManager sensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE); The emulator hangs. When searching for this problem, I find a lot of references of this being fixed back in 2009, but I'm currently using the latest SDK/Tools available at the current time (Dec 2011). API level 8 / v2.2. Must I really implement code for checking if I run in the emulator and avoid all sensor based code? 回答1: I experienced something similar

IOS semaphore_wait_trap on main thread causing hang in UI

南楼画角 提交于 2019-12-18 04:29:16
问题 I have a long running function inside an asynchronous (serial) worker queue. I know that sometimes this function hangs inside a particular openCV call. For some reason this hang is also causing the main thread to hang. When pausing and entering debug mode I see that there is a call to semaphore_wait_trap() on the main thread (Queue) I can suspend the hanging thread (My worker queue) in debug mode and then this trap goes away and the GUI becomes responsive once again on the phone. After

Plot window not responding

一曲冷凌霜 提交于 2019-12-17 15:14:03
问题 I'm using Windows 7 64 bit. Each time, I'm using plot function, plot windows will shows and draws successfully, but after that it stops responding and must shut down it. For example : x = linspace(0,1,10) y = x.^2 plot(x,y); Strangely, when plot windows freeze and I must close octave windows, they will be unresponsive too. This will not happen if I don't use plot function. I don't know why. Does it because I'm using 64 bit version? Please tell me how to fix this. 回答1: The problem is likely to

Open and Close Word Document from VBA Excel

▼魔方 西西 提交于 2019-12-13 03:44:11
问题 I developed a small program in VBA Excel. It was a good start however I adjusted some presets -- a website recommended this as would be pulling text from MS Word. I stripped out all of the code I was working on to the following: Function FnOpeneWordDoc() Dim objWord Dim objDoc Set objWord = CreateObject("Word.Application") Set objDoc = objWord.Documents.Open("C:\Users\Filepath\Example1.docx") objWord.Visible = True End Function It opens a Word document referenced in the task manager, but not

HBase Shell hangs / freezes

喜夏-厌秋 提交于 2019-12-12 16:05:23
问题 I've installed HBase 0.92.1-cdh4.0.1 on Ubuntu 12.04 in Pseudo-Distributed mode. hbase-master , hbase-regionserver and zookeeper-server are running on this machine; the HDFS is running on another machine (property hbase.rootdir set accordingly). Now I have a problem with the "hbase shell": whenever I submit a create table statement like create 'tbl1', {NAME => 'd', COMPRESSION => 'GZ'} the shell hangs (it does not return anything; waits forever) and I have to kill it with ctrl+c. However the

How to repair broken Delpi XE3 IDE after installation of custom package?

一个人想着一个人 提交于 2019-12-12 12:53:54
问题 I have created a new package with one component in it (descendant of TSpeedButton), compiled the package and installed it in the IDE (Delphi XE3 Pro). It worked as far as I have tested it (I could use my component in design- and runtime). BUT: I have closed the IDE and now I can't start it. It displays the splashscreen and shows progress: Documentation Insight Express CodeSite Express Jedi Code Library Jedi Visual Component Library Up to All designtime packages loaded (translated from German,