Questions tagged [suspend]

469 questions
11
votes
3 answers

SQL Server - Why would my SPID be "SUSPENDED" but not blocked, while creating an index?

I have a SQL 2005 x64 server, and when I attempt to issue some queries against it (for example, when I try to create an index), my SPID goes to "sleeping" immediately, and seems to wait there indefinitely. It's not being blocked (the "BLKBY" column…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
11
votes
5 answers

Is it possible to suspend and resume a windows Azure server?

I have a program that I run only 1-2 hours a day. Is there a way to suspend the Azure server so I don't pay for it, then resume it later? How fast is it to suspend and then resume?
vy32
  • 28,461
  • 37
  • 122
  • 246
10
votes
6 answers

Best way to suspend control events in Windows Forms?

This seems like a very simple and a very common problem. The simplest example I can think of is this: The form has five checkboxes with a "check all/check none" checkbox above them. When a user selects checking all checkboxes, I toggle the states of…
Steve Bargelt
  • 175
  • 1
  • 2
  • 6
10
votes
3 answers

iOS: How to tell when an app is going to suspend?

I want to know when my app is going to be suspend? The state of not being active for a certain amount of time or being terminated by the user. I need this because I need to close a connection a web socket. I want to keep the connection alive while…
Jason Silberman
  • 2,471
  • 6
  • 29
  • 47
10
votes
2 answers

Suspended status in SQL Activity Monitor

What would cause a query being done in Management Studio to get suspended? I perform a simple select top 60000 from a table (which has 11 million rows) and the results come back within a sec or two. I change the query to top 70000 and the results…
Racter
  • 252
  • 1
  • 3
  • 15
9
votes
3 answers

Making multiple coroutine API calls and waiting all of them

so usually when you have to make different API calls and wait, you do something like this: viewModelScope.launch { withContext(dispatcherProvider.heavyTasks) { val apiResponse1 = api.get1() //suspend function val apiResponse2 =…
MaaAn13
  • 264
  • 5
  • 24
  • 54
9
votes
4 answers

Delphi thread that waits for data, processes it, then resumes waiting

I need to create a thread in Delphi with the following characteristics: Waits until the main thread adds data to a shared queue. Processes all the data in the queue, returning the results to main thread (for this last part I'll just send messages…
Marek Jedliński
  • 7,088
  • 11
  • 47
  • 57
8
votes
1 answer

Kotlin in Android - Suspend Functions in Room

I was looking at the sample at https://github.com/android/architecture-samples/tree/dev-dagger/app/src/main/java/com/example/android/architecture/blueprints/todoapp/data/source/local of the dev-dagger branch and in the TasksLocalDataSource.kt file…
ebeninki
  • 909
  • 1
  • 12
  • 34
8
votes
2 answers

kotlin coroutines. Difference between launch{ fun} and launch {suspend fun}

Is there any difference in execution between? launch { function1() } fun function1(){ DoSomething... } And launch { function2() } suspend fun function2(){ DoSomething... }
Kunta Kinte
  • 351
  • 1
  • 2
  • 15
8
votes
3 answers

Self Suspending a thread in Delphi when it's not needed and safely resuming

This question involves Delphi and XE specifically deprecating Suspend and Resume. I have read other posts and I have not found a similar usage so far, so I’m going to go ahead and ask for a discussion. What I’d like to know is there a better way to…
Rich Shealer
  • 3,362
  • 1
  • 34
  • 59
8
votes
6 answers

UIApplicationExitsOnSuspend anything else I'm missing?

So I know this has been beaten to death but I still can't figure out a solution. I have my UIApplicationExitsOnSuspend set to in the Info.plist and still both in the simulator as well as on an iPhone 4 device, the app goes into standby…
schone
  • 225
  • 1
  • 3
  • 10
8
votes
3 answers

How can I catch a system suspend event in Python?

I'm using ubuntu 12.04. Is there a way to catch a suspend event in Python, i.e. if the laptop is going to suspend, do this...? The same question for catching shutdown event.
koogee
  • 943
  • 3
  • 12
  • 24
7
votes
3 answers

Bash date/time arithmetic

I have a little Bash script which suspends the computer after a given number of minutes. However, I'd like to extend it to tell me what the time will be when it will be suspended, so I can get a rough idea of how long time I have left so to…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
7
votes
3 answers

Is there any Win32 API to trigger the hibernate or suspend mode in Windows?

Is there any Win32 API to put the machine into hibernate or suspend mode? I read MSDN and found that WM_POWERBROADCAST message gets broadcasted when power-management events occur. I thought of simulating the same with…
aJ.
  • 34,624
  • 22
  • 86
  • 128
7
votes
2 answers

NativeActivity does not finish

I call a NativeActivity from a JavaActivity. The entry point of my NativeActivity is android_main(struct android_app* state) At the end of this, I call ANativeActivity_finish However my native activity just hangs, instead of returning to the…
lost_bits1110
  • 2,380
  • 6
  • 33
  • 44
1
2
3
31 32