Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #13739
| From | "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: What would happen if your destructors aren't get called? |
| Date | 2012-02-04 15:46 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <jgjgbh$hn8$1@dont-email.me> (permalink) |
| References | <jghp01$ak1$1@speranza.aioe.org> |
On 04.02.2012 00:01, U.Mutlu wrote: > Can you imagine: > What would happen if your destructors aren't get called? :-) > > Today I encountered a very subtile bug in Microsoft's VS2008: > in my case the destructor of a globally used class isn't called > if the implementation of the destructor is in the cpp-file > and it is part of a library project. > It gets called only when the dtor code is in the h-file! > Disabling optimization and intrinsic stuff all has no effect on this, > it's an unbelievable bug! > > A research on the net revealed that this bug is known to Microsoft > since at least 4/1/2008 as this MS-page indicates: > http://connect.microsoft.com/VisualStudio/feedback/details/336316 > There a poster has written this: [snip] > > It is interessting how Microsoft gives a very low priority to this > unbelievable bug, > just see yourself the answers at the above link. Unbelievable! > > How can Microsoft sell such a buggy product and call it "C++ compiler"? If you'd care to *read* what you linked you'd see that this bug has been fixed. So your premises are wrong. The main problem is that a very similar bug is real and has as far as I know, is not the same bug and has not been fixed. James Kanze and Herb Sutter discussed that in this group one or two years ago. Readers should not confuse your complain here, with that bug. Cheers & hth., - Alf
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What would happen if your destructors aren't get called? "U.Mutlu" <for-usenet@mutluit.com> - 2012-02-04 00:01 +0100
Re: What would happen if your destructors aren't get called? Ian Collins <ian-news@hotmail.com> - 2012-02-04 12:05 +1300
Re: What would happen if your destructors aren't get called? "U.Mutlu" <for-usenet@mutluit.com> - 2012-02-04 00:23 +0100
Re: What would happen if your destructors aren't get called? Ian Collins <ian-news@hotmail.com> - 2012-02-04 13:18 +1300
Re: What would happen if your destructors aren't get called? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-02-04 15:43 +0100
Re: What would happen if your destructors aren't get called? "MikeWhy" <boat042-nospam@yahoo.com> - 2012-02-04 14:19 -0600
Re: What would happen if your destructors aren't get called? Ian Collins <ian-news@hotmail.com> - 2012-02-05 09:37 +1300
Re: What would happen if your destructors aren't get called? Goran <goran.pusic@gmail.com> - 2012-02-03 22:03 -0800
Re: What would happen if your destructors aren't get called? Joshua Maurice <joshuamaurice@gmail.com> - 2012-02-03 15:11 -0800
Re: What would happen if your destructors aren't get called? Ian Collins <ian-news@hotmail.com> - 2012-02-07 17:19 +1300
Re: What would happen if your destructors aren't get called? Sam <sam@email-scan.com> - 2012-02-03 17:28 -0600
Re: What would happen if your destructors aren't get called? Paavo Helde <myfirstname@osa.pri.ee> - 2012-02-03 18:22 -0600
Re: What would happen if your destructors aren't get called? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-02-04 15:46 +0100
Re: What would happen if your destructors aren't get called? "Gernot Frisch" <me@privacy.net> - 2012-02-07 10:32 +0100
csiph-web