Author Topic: PCL: PI takes a long time to 'die' in debugger  (Read 6159 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
PCL: PI takes a long time to 'die' in debugger
« on: 2009 July 07 07:31:39 »

Hi,

another tricky one. I noticed with PCL64 that PI takes a long time to die after I start the program from the debugger and then exit it. Luckily this happens not just when I use my own modules but also when I use DynamicCrop. I didn't try other modules as I was happy to reproduce this with a stock module :)

This is what the Output window in the debugger shows:

Code: [Select]
The thread 'Win64 Thread' (0xafc) has exited with code 0 (0x0).
The thread 'Win64 Thread' (0x15e8) has exited with code 0 (0x0).
The thread 'Win64 Thread' (0xca4) has exited with code 0 (0x0).
The thread 'Win64 Thread' (0x1504) has exited with code 0 (0x0).
The thread 'RPC Callback Thread' (0x1440) has exited with code 0 (0x0).
The thread '_threadstartex' (0x458) has exited with code 0 (0x0).
QObject::killTimer: timers cannot be stopped from another thread
QObject::killTimers: timers cannot be stopped from another thread
The thread 'RPC Callback Thread' (0x187c) has exited with code 0 (0x0).
The thread 'Win64 Thread' (0x1968) has exited with code 0 (0x0).
The program '[3568] PixInsight.exe: Native' has exited with code 0 (0x0).

Steps:

- start PI from the VS2008 debugger
- load an image
- do several crop operations with DynamicCrop (I undid each operation, maybe 4 total)
- exit PI
- observe in the debugger that PI stays around for a while
- breaking in the debugger showed it was malloc'ing but that could have been a fluke. This may not be PCL64 related but rather a version thing, I only tried it on this box.
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