Author Topic: exiting PI when run from Visual Studio takes several minutes  (Read 4435 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com

Hi,

I've reported this before and was hoping it would 'magically' have fixed itself but no such luck. I start PI from Visual Studio for debugging. I can press the 'stop' button in VS to kill PI immediately but I'd rather exit PI from itself so it can clean up properly and write config data such as which modules are loaded and which are favorites etc. For some reason it takes a minute or two for PI to exit when I do this. Very odd.

Vista x64 with VS 2008 Professional.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: exiting PI when run from Visual Studio takes several minutes
« Reply #1 on: 2010 August 22 02:13:24 »
Hi Sander,

I guess this must be some weird interaction between PI's watchdog thread and VS 2008. The watchdog thread is launched at PI's startup and is always running in the background as an idle priority thread. Its main purpose is watching for new instances of the PI Core application, and it will make possible (in a future release) the new multiple instance communication/sharing features. It also watches for crashes to keep track of them. The watchdog thread is terminated automatically when PI's main thread terminates. However VS 2008 is doing something odd that prevents this from working as it should do. This is the best 'candidate' that I can figure out for this issue. This doesn't happen on Eclipse/gdb.

I'll try to investigate this further to see if I can find some workaround. Sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: exiting PI when run from Visual Studio takes several minutes
« Reply #2 on: 2010 August 22 06:58:25 »
Thanks Juan for the explanation. For most debugging work it's ok to just stop PI from VS.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity