Questions tagged [app-startup]

Concerns that are a focus of application startup include configuration, startup time optimization, locking/threading/race conditions, preconditions, and configuration changes.

Application startup concerns include:

  • Configuration (e.g., database connection strings, SMTP server names, etc.)
  • Startup time optimization
  • Locking/threading/race conditions
  • Checking preconditions (e.g., presence of required folders / files, security checks)
  • Handling of configuration changes (i.e., whether the application has to be redeployed / recompiled / restarted)
176 questions
123
votes
18 answers

How To fix white screen on app Start up?

I have an android app which displays a white screen for 2 seconds on startup. My other apps don't do this, but this one does. I have also implemented a splashscreen with the hope that it would fix this. Should I increase my splash screen sleep…
Anonymous
  • 1,389
  • 3
  • 11
  • 16
31
votes
5 answers

App_Start Folder in ASP 4.5 only in WebApplications Projects?

I have a Website Project I've converted to .NET 4.5. I'd like to use the AuthConfig that I've seen added to the App_Start directory. A couple of questions. Is the App_Start directory only available for Web Application Projects?, When I try to add…
TreK
  • 1,144
  • 2
  • 13
  • 25
16
votes
2 answers

Canonical method of measuring iOS app startup performance?

I've been asked to reduce the startup time of an iOS application. I am very familiar with the platform/tools in general but I haven't focussed upon application startup time before. I'm wondering if there are known patterns for attacking this…
Matty P
  • 881
  • 1
  • 7
  • 11
14
votes
3 answers

What happens between Application.Run and Form.Load?

I have a WinForms application written in VB.NET for Framework 4.5. I noticed that the startup time of the application is unusually long (other applications I have written that are doing even more work on startup start nearly instantly, this…
Jens
  • 6,275
  • 2
  • 25
  • 51
10
votes
4 answers

Slow startup of xamarin app

We are developing a cross platform app on a PCL, but for the time being we are only using android devices for testing. Our concern is that its taking about 6 to 8 seconds (depending on which device we test it) to start the app, which is very…
9
votes
2 answers

How to use Android Jetpack App Startup library

As part of Jetpack, there is now a library to handle App Startup. Specifically, you can implement a component initializer for any of your dependencies, apparently ones that use ContentProvider for their initialization, in order to speed up the app…
8
votes
3 answers

Improve perceived WPF app startup time

I have a WPF database viewer application: It's a simple main window containing a user control with a data grid showing the data extracted from an SQLite database. The problem is that this application takes 6 seconds to start until it is usable. I…
Marc
  • 9,012
  • 13
  • 57
  • 72
8
votes
3 answers

Application_Start versus OnInit versus constructor

I've gone rounds with this ever since I started programming classic ASP 12 (or so) years ago and I've never found a great solution because the architecture of ASP and ASP.NET has always been a swamp of bad practices, magic shared singletons, etc. My…
Asbjørn Ulsberg
  • 8,721
  • 3
  • 45
  • 61
8
votes
1 answer

How to understand performance problems in "Native or Optimized code" when using DotTrace Performance

I am using DotTrace Performance (v 5.5.4) on my web application. I am trying to optimize the page load time after cold starting the MVC 5 application. Looking at the main thread on the snapshot, it seems like majority of the work is being done in…
KnightFox
  • 3,132
  • 4
  • 20
  • 35
8
votes
2 answers

How to enable -T1118 trace flag in SQL Server 2012?

I am using SQL Server 2012 I would like to enable -T1118 at server level can somebody please help me to enable it?
Vikrant More
  • 5,182
  • 23
  • 58
  • 90
6
votes
3 answers

Why is my application startup time slower when I use Process.Start()?

I'm trying to profile the startup time of my application, so I wrote a small C# program that will start my application using the Process.Start() method, and time it using a stopwatch. When I try to start the application myself (by just clicking on…
dreadpirateryan
  • 545
  • 1
  • 7
  • 16
6
votes
3 answers

Can I configure startup and shutdown logs for Spring Boot applications?

For the ability to verify the startup and shutdown of our Spring Boot applications we want to configure a startup.log and shutdown.log capturing events that bootstrap and shutdown the application. For startup everything up to: Root…
Anthony Ikeda
  • 534
  • 2
  • 6
  • 11
6
votes
1 answer

How to access EJB bean through context lookup from ServletContextListener

Need to call a EJB service from the servlet context listener's contextInitialized() method. Application is running on JBOSS, though the context listener works fine, I'm not able to access the EJB bean through JNDI look up. Because the web deployment…
Murugesh
  • 1,009
  • 1
  • 12
  • 34
6
votes
4 answers

Mac OSX: how to know if app automatically launched at session startup/login?

The users of my app can choose if they want (or not) launch my app at their session startup. To do this, I use LSSharedFileListRef as described here : How do you make your App open at login? What I want now is to know if my app has been launched…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
5
votes
2 answers

Polly -how do I log final error and continue?

I'm trying to set up Polly in .Net Core 3.1 (Azure Functions v3). I want to create a Policy in the Startup class which I can inject into functions. The behaviour that I'm looking for is: It should wait And retry 3 times - if the final try fails -…
PSXYU
  • 101
  • 2
  • 8
1
2 3
11 12