atexit override in your own module

  • Thread starter Parapura Rajkumar
  • Start date
P

Parapura Rajkumar

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
 
R

red floyd

Parapura said:
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-lite/how-to-post.html#faq-5.9
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top