Note that there are some explanatory texts on larger screens.

plurals
  1. PO.net wpf application startup issues
    primarykey
    data
    text
    <p>I've got a quite strange startup behavior for my application.</p> <p>The first time the application is started the process takes up one CPU Core (50% on dual core, 25% on quad core) and RAM consumption stops at a specific value (each start the same, different on other machines/different build versions as we change the application around to test). </p> <p>If I start an other instance while the first is running the second instance starts normally.</p> <p>I inserted some logging into the application and it seems the application crashes the first time a UI element is shown. Initially logging ended just before the splash screen should show up - after removing the splash screen it stopped as a Messagebox Control should be shown.</p> <p>The issue happens on some machines, not all. Copying the same files to an other machine can "fix" the problem. If I deploy a debug compiled build, builded by my workstation the issue disappears completely.</p> <p>Additional Info (March 18th): <strong>The required "hanging" instances count seems to depend on the number of available cores.</strong> </p> <p>If the machine runs on a <em>dual core</em>* system, the <em>second process</em> starts, the first taking 50% CPU (= 1 core@100%). If the machine runs on a <em>quad core</em> system the *fourth proces*s starts, the first three taking 25% CPU each (= 3 cores@100%).</p> <p>Update (March 19th): <strong>So... we solved it!</strong> A colleague wrote a thread manager with some code to wait on something. This manager is called when UI elements are shown. Running a debug version or running the release version on a very slow VM (the machine which functioned fine has been a virtual one on a really busy machine) seem to change the timing and make it work.</p> <p>He said he implemented some sort of timeout to fix it. </p> <p>I will take a closer look at his solution (and why such strange things are required) on Monday and post an update here to provide a proper solution to my question for following visitors.</p> <p><strong>The bounty goes to Stephen Chung, thank you all for your help.</strong></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload