freeze

SDL program freezes

谁都会走 提交于 2019-12-13 00:05:05
问题 I'm writing a simple program for testing mouse. It compiles fine, but doesn't work. When I launch it, the window freezes. What am I doing wrong? #include <SDL/SDL.h> #undef main int main() { if (SDL_Init (SDL_INIT_EVERYTHING) != 0) return 1; SDL_Surface* Scr; if ((Scr = SDL_SetVideoMode (300, 200, 32, 0)) == 0) return 2; SDL_Rect Mouse1 = {50, 50, 50, 100}; SDL_Rect Mouse3 = {150, 50, 50, 100}; SDL_Rect Mouse2 = {250, 50, 50, 100}; SDL_Surface Colors; SDL_Rect Click = {0, 0, 50, 100}; SDL

iOS swift : generateCGImagesAsynchronouslyForTimes takes too long and freezes the app?

混江龙づ霸主 提交于 2019-12-12 18:15:25
问题 I'm getting video thumbnails asynchronously with the following code: let imgGenerator = AVAssetImageGenerator(asset: asset) imgGenerator.generateCGImagesAsynchronouslyForTimes([NSValue(CMTime: CMTimeMake(1, 30))]) {(time1, image, time2, result, error) -> Void in if (result == .Succeeded) { dispatch_async(dispatch_get_main_queue()) { thumbnailImageView.image = UIImage(CGImage: image!) } NSLog("SUCCESS!") } } I don't understand why it freezes the app but for example if I use this for 20

Form.Invoke freezes the UI

梦想与她 提交于 2019-12-12 17:24:23
问题 I have been googling around for about an hour, and I still don't found any solution. I simply try to set the maximum value of a progressbar from another thread. So I found the Control.Invoke method. I've been going ahead and implement it: Now, when I debug my App it simply stucks at the this.Invoke line. The UI comes up, and it is frozen. So I was going ahead and google that out, and it told me to use this.BeginInvoke() . I implemented it, and I was fine, the UI don't freeze. Thats quiet nice

Android Studio Quits unexpectedly on Mac

守給你的承諾、 提交于 2019-12-12 09:39:33
问题 I am running Android Studio v1.5.1 on OSX El Capitan 10.11.2. Android studio starts flickering whenever I move and click the mouse from external monitor to the laptops screen, then suddenly quits without giving any error message. Is anyone else facing this problem? Crash Report: http://pastebin.com/xda8wAKN 回答1: I just found the solution to my problem: Open the info.plist in a text editor path is "/Applications/Android\ Studio.app/Contents/info.plist" update the JVMVersion to 1.7* 来源: https:/

Delphi XE2 Indy 10 TIdCmdTCPServer freezing application

孤街浪徒 提交于 2019-12-12 09:22:50
问题 I'm just starting to learn how to use the Indy 10 components in Delphi XE2. I started with a project that will use the command sockets ( TIdCmdTCPServer and TIdCmdTCPClient ). I've got everything set up and the client connects to the server, but after the client connects, any command the server sends to the client just freezes the server app, until it eventually crashes and closes (after a deep freeze). Project Setup The setup is very simple; there's a small server app and a small client app,

A separate thread freezes while sending HTTP sequests

♀尐吖头ヾ 提交于 2019-12-12 06:46:51
问题 I'm trying to build a remote control Android app and keep failing to use the network properly. The commands are sent in a separate thread with a delay of approximately 100 ms (plus sending) using HTTP ( okhttp3 ). The problem is the app sometimes freezes the transmittion printing something like this to logcat : 03-29 02:18:31.249 25191-25191/com.example.control D/CommandSender: http://192.168.1.185/drive?m1s=988&m2s=927&dir=ff s: 6557 f: 0 03-29 02:18:31.259 25191-25191/com.example.control D

C# language: How to freeze listview control in windows form?

我是研究僧i 提交于 2019-12-12 05:37:26
问题 i need to freeze certain columns in listview so when the user scrolls horizontally the frozen columns will not be affected (like in excel) but there is no frozen(bool) property like that in datagrid. Can this be done in listview control? Thanks 回答1: ListView has no support for this, nor can it easily be added. Consider using DataGridView instead. Its columns have a Frozen property. 来源: https://stackoverflow.com/questions/2833616/c-sharp-language-how-to-freeze-listview-control-in-windows-form

Release builds hang/crash, regardless of code

二次信任 提交于 2019-12-12 03:34:47
问题 For some reason I just started having an issue with my release builds. I'm able to run any of my projects without issue from the debug builds, I can also run my release builds as long as I attach a debugger, but when I try to run the release builds on their own they either hang infinitely (The UI crashes, but I'm unable to stop the process with task manager), or they load up EXTREMELY slowly (I've only ever had them eventually load twice, and that was on a separate machine from my main PC). I

iAd freezes Sprite Kit app

跟風遠走 提交于 2019-12-12 02:58:20
问题 I find that tapping on iAds can freeze the screen on any Sprite Kit game. It's not just my specific project, since the stock Sprite Kit example project also freezes with iAd. This does not happen in the simulator though! I cannot decide whether if it's because the simulator runs iOS 8 and my actual testing device is on 7.1, or because of the fact that the simulator is just a simulator so it does things differently. So if you tap on the iAd then click on the link in the iAd to go to safari (or

Dispatcher Timer freezing the WPF

你。 提交于 2019-12-12 00:09:59
问题 I am designing a 3 DOF control application for AR Drone (quad-rotor UAV) .. i am using multiple PID controllers to control the UAV .. these controllers are implemented by using dispatcher timer class .. for example at the start of the program I initialize the dispatcher timer like : timer_yaw = new DispatcherTimer(); timer_yaw.Interval = new TimeSpan(0, 0, 0, 0, 45); timer_yaw.Tick += new EventHandler(timer_yaw_tick); as soon as the user presses a button on the GUI this timer is fired . timer