Hanging references

Hi all,

I've got an annoying problem that I'm sure comes up often but my
Google-fu is failing me on this one.

What is the best way to track down hanging references? That is, when I
close my wxApp, it doesn't close. Either it doesn't return control to
the command line or the debugger. I've seen this before when I've
forgotten to Destroy() an object (usually a dialog box) here or there.
Is there a good way to find these objects? FWIW, we use the Wing IDE
and associated debugger ... But the stack data returned by the debugger
when it hangs doesn't contain anything that points me in the right
direction. And, yes, I'm trapping the OnClose, but 1) I have
event.Skip() and 2) when I comment out the trapping, it still hangs.

Any pointers?

Thanks,
Anthony.

ยทยทยท

--
Anthony Floyd, PhD
Convergent Manufacturing Technologies Inc.
6190 Agronomy Rd, Suite 403
Vancouver BC V6T 1Z3
CANADA

Email: Anthony.Floyd@convergent.ca | Tel: 604-822-9682
WWW: http://www.convergent.ca | Fax: 604-822-9659

CMT is hiring: See http://www.convergent.ca for details