470,833 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

atexit override in your own module

hey all

I was wondering if there a way to override atexit in my own module.
The problem I was facing is that the VS2005 seems to ignore functions
registered with atexit once it starts processing atexit registered
functions. ( Mainly static object destructors )

What I would like to achieve is have my custom atexit that calls the
standard atexit. But when dlls are being unloaded and VS2005 is
processing registered atexit functions, I can make my atexit assert so
that I can find and fix potential bugs / resources leaks.

Thanks
Raj

Jan 3 '07 #1
1 1803
Parapura Rajkumar wrote:
hey all

I was wondering if there a way to override atexit in my own module.
The problem I was facing is that the VS2005 seems to ignore functions
registered with atexit once it starts processing atexit registered
functions. ( Mainly static object destructors )

What I would like to achieve is have my custom atexit that calls the
standard atexit. But when dlls are being unloaded and VS2005 is
processing registered atexit functions, I can make my atexit assert so
that I can find and fix potential bugs / resources leaks.
The Standard says nothing about DLLs. This looks like it might be an
implementation problem. Please ask in a newsgroup related to your platform.

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Jan 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Gorton | last post: by
8 posts views Thread by JKop | last post: by
2 posts views Thread by Steve Lambert | last post: by
7 posts views Thread by David Rushby | last post: by
1 post views Thread by Andreas Schmitt | last post: by
2 posts views Thread by Christopher Pisz | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.