freeze

Avoiding the window (WPF) to freeze while using TPL

泄露秘密 提交于 2019-12-21 06:18:27
问题 I am building a WPF which has a button that execute a sql query in sql server (the query could take a long time to run). I want to use TPL for doing that. This code: var result = Task.Factory.StartNew(() => { command.ExecuteNonQuery(); }); gives this exception: ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. I guess this is due to the fact that the query runs on a different thread and is not aware of the open connection. I have 2 questions:

Nexus 10 camera.release hangs for 30 seconds

ぃ、小莉子 提交于 2019-12-21 05:13:09
问题 We are a group of developers that are working on a realtime video processing app for android. Recently, a client reported a freeze in our app that happens only on Nexus 10 device. We bought the device ourselves and tested: device came with Android 4.2 preinstalled - there were no hangs nor freezes in our app after upgrading Android to 4.3, our app freezed on closing camera (see below for explanation) by upgrading to 4.4, our app kept freezing by flashing the latest Android 5.0 Nexus 10

Why does this wxPython GUI freeze when self.Destroy() is used instead of self.Close()? (example attached)

China☆狼群 提交于 2019-12-20 07:47:43
问题 LoginDialog is opened with self.loginButton , and upon closing it, the GUI freezes; the login button remains pressed, and there are only alert sounds when attempting to click on anything. LoginDialog() was from this tutorial, just augmented with the file-write line in onLogin (which isn't the problem source). All appears to work when switching from self.Destroy() to self.Close(). wxPython version is 3.0, Python 2.7.10 The following code is a working example of the issue: import wx # wxGlade

Freezing Columns in JQGrid

北城以北 提交于 2019-12-20 07:14:22
问题 Is there a way to get jqGrid to freeze one or more left-most columns and have the balance of the columns scroll left-and-right? I did Google up at least one person who claims to have done it here: http://www.trirand.com/blog/?page_id=393/discussion/new-freeze-column-plugin/ ... but the sample code is gone. (Ironically and painfully, the screencast of it working is still up, mocking me.) It looks like some here have gotten it working too, but didn't include code. Has anyone gotten frozen

Xcode 4.4 & 4.5 freezing on project close

百般思念 提交于 2019-12-20 04:15:39
问题 Ever since upgrading to Xcode 4.4 and again upgrading to 4.5 (running on Lion), Xcode appears to freeze for about 3-5 minutes every time I close my app project or quit. During this time, activity monitor shows that the CPU is pegged at 95%, although little disk activity is occurring. I have tried uninstalling and re-installing Xcode and this didn't make a difference. Anyone else experiencing this? Any suggestions what I could do? Thanks in advance! 回答1: This issue is reported: https:/

Freeze on SerialPort.Open / DeviceIoControl / GetcommState with usbser.sys

江枫思渺然 提交于 2019-12-19 04:03:10
问题 I have a C program which opens a handle to a COM port, writes some bytes to it, reads some bytes out, then closes the handle and exits. However, when I run the program like 10 times in a row, it starts to take very long to complete the GetCommState function and to get stuck in the SetCommState function. The same thing happens in C# with a simple SerialPort object. The only fix I could find is reconnecting the device to the port. Is there some more elegant way to get rid of this freeze? Is it

Using async to sleep in a thread without freezing [closed]

大兔子大兔子 提交于 2019-12-18 13:52:45
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . So I a label here (""). When the button (button1) is clicked, the label text turns into "Test". After 2 seconds, the text is set back into "". I made this work with a timer (which has an interval of 2000):

JavaFX program locks/freezes whilst running

允我心安 提交于 2019-12-18 09:37:15
问题 I'm trying to create a JavaFX program, which is working - but I am trying to get a progress bar to update whilst it is running. However, the program just seems to freeze and locks up until it has finished processing. Does anyone have an idea of how I can get the program not to freeze whilst running - and to get the progress bar to update whilst it processes? Thanks 回答1: You can put the progressbar progress in a Platform.runLater(()-> progressBar.setProgress(progressValue)); so it will be

Kernel freeze : How to debug it?

你。 提交于 2019-12-18 04:14:10
问题 I have an embedded board with a kernel module of thousands of lines which freeze on random and complexe use case with random time. What are the solution for me to try to debug it ? I have already try magic System Request but it does not work. I guess that the explanation is that I am in a loop or a deadlock in a code where hardware interrupt is disable ? Thanks, Eva. 回答1: Typically, embedded boards have a watch dog. You should enable this timer and use the watchdog user process to kick the

Joomla! 3 installation freezes at creating database table

僤鯓⒐⒋嵵緔 提交于 2019-12-17 21:43:35
问题 I am trying to install Joomla! 3.2.1 on my system but the installation freezes half way through. I've downloaded and installed the Wamp Server 2.4 and wanted to locally install Joomla! 3.2.1, but the installation freezes and doesn't finish. It stops short of finishing the installation during the "creating database tables" task: it just stays on this bit seemingly forever. Increasing the max execution time in php.ini and restarting the wamp didn't help. My Wamp 2.4 uses: MySQL 5.6.12 php 5.4