Questions tagged [startup]

Startup usually refers to the processes or events that occur at the start of a program, at the beginning of execution of a code block, or when a device is first booted.

2846 questions
15
votes
4 answers

XCode : why launchOptions in didFinishLaunchingWithOptions always nil?

I want my app to do specific things when the app is launched by a click on a notification. I want to do these specific things when the app is already running into background BUT ALSO when the app is started FROM SCRATCH (not running into background)…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
14
votes
3 answers

Java EE Application Startup Failure

Is there any method to prevent a Java EE application from starting if an exception occurs during application initialization? I'm basically looking for a way to cause the application to enter a "j2ee.state.failed" state (per JSR-77) following an…
shelley
  • 7,206
  • 4
  • 36
  • 63
14
votes
1 answer

Where in Django can I run startup code that requires models?

On Django startup I need to run some code that requires access to the database. I prefer to do this via models. Here's what I currently have in apps.py: from django.apps import AppConfig from .models import KnowledgeBase class…
Serge Rogatch
  • 13,865
  • 7
  • 86
  • 158
14
votes
2 answers

Do normal x86 or AMD PCs run startup/BIOS code directly from ROM, or do they copy it first to RAM?

I understand modern computers have modified Harvard architectures. Can the fact that they can read instructions from somewhere other than where they hold data allow them to fetch instructions directly from ROM chips? Do they load the BIOS to RAM…
salvador p
  • 2,905
  • 5
  • 26
  • 26
14
votes
1 answer

Set Multiple Startup Projects in Visual Studio for Mac?

Is it possible/how do I set multiple start up projects in Visual Studio for Mac? It is very easy and common to do it in VS for Windows (https://msdn.microsoft.com/en-us/library/ms165413.aspx) but struggling to find the option on VS for Mac in the…
stoater
  • 143
  • 1
  • 4
14
votes
4 answers

Docker on windows 10 can't startup after deleting MobyLinuxVM in Hyper-V manually

At first the docker work well on my Windows 10 with official version. Then I deleted the MobyLinuxVM in Hyper-V for some reason. After that the docker can't work. Then I turn off the feature of Hyper-V and uninstall docker(of course the…
Yun
  • 305
  • 1
  • 2
  • 12
14
votes
2 answers

Why Eclipse is too slow on startup?

I am using windows 7 home premium with service pack 1 installed. I had installed JDK 1.7u21. Then I downloaded Eclipse Juno (Before that I was using Eclipse Indigo with JDK 1.6u26) and when I started it, I found out that it is taking too much time…
kaushik
  • 2,308
  • 6
  • 35
  • 50
14
votes
3 answers

Cygwin startup script

How can I run a script inside cygwin after it launches? I want to automatically add some mounts and run other scripts inside cygwin whenever it starts. I see that in linux it is as simply as adding a shell file inside etc/init.d However, i tried…
codiac
  • 1,857
  • 4
  • 18
  • 31
14
votes
11 answers

How to increase the startup speed of the delphi app?

What do you do to increase startup speed (or to decrease startup time) of your Delphi app? Other than application specific, is there a standard trick that always works? Note: I'm not talking about fast algorithms or the likes. Only the performance…
Olaf
  • 336
  • 3
  • 8
13
votes
4 answers

App OnStartup never gets called

Very simple problem but I'm making no progress so I thought I should ask... I'm writing a small WPF prototype where I placed the boot up logics where I believe it belongs: In (the overridden) App.OnStartup method. The problem is the method never…
Jonas Rembratt
  • 1,550
  • 3
  • 17
  • 39
13
votes
4 answers

Call async method in AddTransient in Startup - Asp.Net Core

I have a service which is used to get some information and the method has a bunch of async calls in the chain. public interface IFooService { Task GetFooAsync(); } The concrete class, public class FooService : IFooService { public…
13
votes
2 answers

Changing the app start-up window's colour

I'd like to change the colour that flickers for a moment as an app is launching. I think it's determined by the overarching application theme, but I'd like to specify another colour. To elaborate, I wouldn't like to modify the default background…
eye_mew
  • 8,855
  • 7
  • 30
  • 50
13
votes
1 answer

Auto-Loading a module on IPython startup

I'm trying to to auto load the division module from __future__ on startup, i've currently got a simple script in the IPython startup libray with the line: from __future__ import division which works fine when run directly from the shell, however,…
ronimb
  • 370
  • 2
  • 11
13
votes
1 answer

Why is my JavaFX application startup so slow?

My JavaFX applications always start much slower than Swing applications. Much slower than what is acceptable for a little application. Is this 'normal' or do I have to make changes somewhere? EDIT: I heard about some proxy issues that may affect…
ceklock
  • 6,143
  • 10
  • 56
  • 78
13
votes
7 answers

ASP.NET application on IIS7 - very slow startup after iisreset

I have an ASP.NET 3.5 website running under IIS7 on Windows 2008. When I restart IIS (iisreset), then hit a page, the initial startup is really slow. I see the following activity in Process Explorer: w3wp.exe spawns, but shows 0% CPU activity for…
frankadelic
  • 20,543
  • 37
  • 111
  • 164