freeze

Win32: My Application freezes while the user resizes the window

你。 提交于 2019-11-29 03:09:06
问题 I write a win32 application. I implemented the message loop myself like this: bool programcontinue = true; while(programcontinue) { while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&Msg); DispatchMessage(&Msg); } IdleProcess(); } There is a resizable window in my application. Usually, IdleProcess() gets called several times per second. When the user grabs a corner or an edge of the resizable window, IdleProcess() doesn't get called anymore until the user releases the mouse

CGFontCreateWithDataProvider hangs in airplane mode

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 18:57:50
When I make a call to CGFontCreateWithDataProvider while in airplane mode , my apps freeze. Not in airplane mode, it works fine. The font is stored on the device, no network access should be happening. While calling this method to load a local font file: [self registerIconFontWithURL:[[NSBundle mainBundle] URLForResource:@"FontAwesome" withExtension:@"otf"]]; The value of url in the following method is: file:///var/mobile/Applications/48D3DA14-235B-4450-A081-7A6BA6116667/Blah.app/FontAwesome.otf + (void)registerIconFontWithURL:(NSURL *)url { NSAssert([[NSFileManager defaultManager]

Joomla! 3 installation freezes at creating database table

北城以北 提交于 2019-11-28 15:39:28
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.16 Apache 2.4.4 How can I get the installer to go past this point? This problem occurring most usually

GUI Threading in Java (and SwingUtilities)

左心房为你撑大大i 提交于 2019-11-28 14:16:56
I'm making a simple game in Java using swing and am having problems with my GUI freezing up sporadically (due to threading issues most probably) after a button press that is supposed to trigger a switch in JPanels. I posted a related thread here , which has more details about the actual code I'm currently using (although I did update the countdown and get that working fine). From answers to that thread, it seems like using SwingUtilities.invokeLater() or invokeAndWait() might be what I need to solve the problem, but I'm not sure where in my code it is necessary or exactly how to implement it.

Visual C# GUI stops responding when process.WaitForExit(); is used

我是研究僧i 提交于 2019-11-28 14:11:13
I am creating a GUI application using Visual C# 2005 (net framework 2). I use the following code to start a process: Process process = new Process(); process.StartInfo = new ProcessStartInfo("app.exe"); process.StartInfo.WorkingDirectory = ""; process.StartInfo.Arguments = "some arguments"; process.Start(); process.WaitForExit(); I want my application to wait until this process is finished, so I used WaitForExit. But the GUI Windows freezes while app.exe is running. I want it to respond (e.g. press a cancel button), but I don't want the code to continue, because there is another process to

genymotion stays on black screen when loading emulator

你说的曾经没有我的故事 提交于 2019-11-28 10:14:29
When i start a new virtual device with genymotion sometimes it will get stuck on the black screen and not load. Sometimes it will work especially just after a restart, otherwise it will hang on the black screen and become unusable. If the emulator freezes or crashes this is likely due to incompatability with your video card driver. If however it just hangs on the black screen, this can be due to two reasons: Your Firewall or other program is blocking genymotion If this is likely the case then try disconnecting any vpn services or other software which could be hindering this, and ensuring that

What's the point of freezing your Rails version/gems?

不打扰是莪最后的温柔 提交于 2019-11-28 10:05:24
What does that mean? In the instructions for a project, it said to "freeze the Rails gems". Is that different from freezing the Rails version? What's freezing about? If one of the authors of a gem you use introduce a new version of the gem, there is a possibility the new version introduces backwards incompatible changes that would break your code. Freezing a gem puts it into the vendor folder of your application, and it will not be automatically updated on its own. Rails will use this version of the gem instead. This allows you to update the gem on your system for other apps, while having your

iPhone - UIScrollView and UIDatePicker scrolling conflict : the one interfer with the second

断了今生、忘了曾经 提交于 2019-11-28 05:24:21
问题 I have a UIDatePicker inside a UIScrollView. But the UIDatePicker does not respond to scroll touches. It's the scrollview that is scrolling. Reading some docs on the net, I've set "Delay Content Touches" to NO, an now I see the datepicker starting a slight scroll, but it's still the scrollview that take the final word. I have some place on the screen where the user can touch to scroll the view. So how may I separate the two kind of scrolls ans make the datepicker scroll in a normal way ?

cx-freeze fails to include modules even when included specifically

拥有回忆 提交于 2019-11-28 04:24:59
问题 I am trying to use cx-freeze to create a static self-contained distribution of my app (The Spye Python Engine, www.spye.dk), however, when I run cx-freeze, it says: Missing modules: ? _md5 imported from hashlib ? _scproxy imported from urllib ? _sha imported from hashlib ? _sha256 imported from hashlib ? _sha512 imported from hashlib ? _subprocess imported from subprocess ? configparser imported from apport.fileutils ? usercustomize imported from site This is my setup.py: #!/usr/bin/env

How to make a thread not freeze you whole JFrame. JAVA

亡梦爱人 提交于 2019-11-28 01:44:51
Hey i just need a question answered... How would i make the following code not freeze my whole JFrame? try { Thread.sleep(Integer.parseInt(delayField.getText()) * 1000); System.out.println("Hello!"); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } use a different thread to perform this task. If you do this in the main UI thread then it will freeze.. For example you can do following new Thread() { @Override public void run() { try { Thread.sleep(Integer.parseInt(delayField.getText()) * 1000); System.out.println("Hello!"); } catch (InterruptedException ex) { Thread