No announcements
Found 476645 threads
-
0 Votes
Destructors
You don't "use" a destructor because a destructor cannot be directly called.Answered | 3 Replies | 1453 Views | Created by Kenan YILMAZ - Thursday, October 1, 2015 6:20 PM | Last reply by Magnus (MM8) - Friday, October 2, 2015 1:05 PM -
0 Votes
Cout is not working in private destructor
It doesn't print because the destructor is never called.Answered | 1 Replies | 2966 Views | Created by vaibhavsaxena17 - Monday, December 15, 2008 8:07 PM | Last reply by Brian Muth - Monday, December 15, 2008 8:34 PM -
0 Votes
VS2015 crash on calling a C++ destructor in a C# destructor
Is there anything in your C++ destructor that will care about threads?Answered | 9 Replies | 755 Views | Created by Arjen1988 - Monday, August 15, 2016 1:58 PM | Last reply by Hart Wang - Thursday, August 18, 2016 2:46 AM -
0 Votes
Destructor not getting called
When all connections are disconnected the cleanup thread terminates, the destructor (or finalize method or whatever you call it) runs and the object is cleaned up.Answered | 4 Replies | 8521 Views | Created by VentsyV - Friday, February 19, 2010 7:01 PM | Last reply by P.Brian.Mackey - Monday, February 22, 2010 6:18 PM -
0 Votes
Virtual Destructor Misconception ??
if i remove the virtual keyword from the destructor of the base class then output wont have "Derive Destructor" A candle loses nothing by lighting ...Answered | 2 Replies | 3502 Views | Created by Silver_Gates - Sunday, March 27, 2011 6:48 PM | Last reply by Reed Copsey, Jr - Sunday, March 27, 2011 7:27 PM -
8 Votes
Destructor vs Dispose vs Finalize?
C# does have destructors, written using the ~ClassName() syntax.Answered | 5 Replies | 48949 Views | Created by GurunGuns - Tuesday, April 6, 2010 11:10 AM | Last reply by Drew Cooper - Monday, December 19, 2016 7:50 PM -
0 Votes
Destructor freeing before return of function?
typedef void (*virtual_draw)(Drw*); typedef void (*virtual_draw_square)(Drw*); // DESTRUCTORS...Answered | 2 Replies | 2272 Views | Created by _roberto_ - Wednesday, December 7, 2011 2:01 AM | Last reply by _roberto_ - Wednesday, December 7, 2011 5:48 PM -
1 Votes
CComVariant, string destructors
That copy is freed by CComVariant's destructor. szFilename is not in any way modified in the process.Answered | 2 Replies | 748 Views | Created by Owen Ransen - Monday, March 23, 2015 2:03 PM | Last reply by Owen Ransen - Monday, March 23, 2015 2:17 PM -
1 Votes
why the need for virtual declaration of destructor in polymorphism
It generates the code that makes the call to the base destructor.Answered | 6 Replies | 4212 Views | Created by drichird - Saturday, May 30, 2009 8:36 PM | Last reply by Doug Harrison - Monday, June 1, 2009 3:34 AM -
0 Votes
what is difference between in Finalize() and Dispose() and destructor.
I know that Garbage Collector Call automatialy when Object has no longer use.so GC called for memory release.but where I will use Finalize() and Dispose() and ...Answered | 1 Replies | 4766 Views | Created by Ritesh Handa - Sunday, November 22, 2009 10:13 AM | Last reply by Tamer Oz - Sunday, November 22, 2009 11:25 AM -
0 Votes
Unmanaged class destructor not called in uwp app(c++)
Same code in console or win32/Mfc would call its destructors.Answered | 5 Replies | 1530 Views | Created by IDimitrov89 - Thursday, June 9, 2016 6:40 PM | Last reply by Baron Bi - Wednesday, June 22, 2016 9:28 AM -
0 Votes
Error in the constructor – why the destructor is getting called?
In C# any destructor tanslated into Finalize() method and it creates entry into finalize queue.Answered | 3 Replies | 3606 Views | Created by Ashish Khandelwal - Tuesday, April 26, 2011 1:29 PM | Last reply by Vishvvas - Wednesday, April 27, 2011 6:47 AM -
1 Votes
ActiveX Destructor not called
It all works fine, but when the IE tab/browser is closed, the class's destructor isn't being called and thus not making the required cleaning and closing.Answered | 4 Replies | 1960 Views | Created by La bla bla - Thursday, January 10, 2013 3:29 PM | Last reply by Elegentin Xie - Monday, January 21, 2013 8:59 AM -
2 Votes
C# destructor/finalize method on process killed
Hi, C# Folks If the process of a C# application is killed another process, is the destructor / finalize method get called?Answered | 1 Replies | 7988 Views | Created by Rick Liu - Monday, September 13, 2010 4:39 PM | Last reply by Jason Kresowaty - Monday, September 13, 2010 11:03 PM -
0 Votes
destructor called after for each
Hi You can implement IDisposable interface, put destructor procedure in Dispose() method and call it later to destroy object when it is not needed anymore.Answered | 6 Replies | 4675 Views | Created by avi1024 - Tuesday, March 16, 2010 5:12 PM | Last reply by Oleg Rimko - Sunday, August 18, 2013 3:23 PM -
2 Votes
Default Destructor?
So i will have to add a destructor to every class?Answered | 6 Replies | 6889 Views | Created by AJ Ravindiran - Sunday, August 16, 2009 10:51 PM | Last reply by Matthew Watson - Monday, August 17, 2009 8:47 AM -
1 Votes
default destructor and list iterator
I realize the role of using virtual specifier on destructors, but I am asking why I need to specify a destructor at all.Answered | 6 Replies | 10391 Views | Created by jdr5 - Monday, January 1, 2007 11:02 AM | Last reply by fissetyven - Sunday, August 19, 2012 3:28 PM -
0 Votes
What is the default code in destructor?
"i guess destructor at least has delete *this is it correct?Answered | 3 Replies | 2256 Views | Created by Map to new space - Friday, September 21, 2012 5:13 AM | Last reply by Mike Danes - Friday, September 21, 2012 6:34 AM -
0 Votes
Showing Default Generated Members
Hi chris386ps1, As far as I know, I don't find a function about seeing default members of created classes in Visual Studio.Answered | 3 Replies | 353 Views | Created by chris386ps1 - Sunday, May 1, 2016 11:31 PM | Last reply by Weiwei Cai - Wednesday, May 4, 2016 2:47 AM -
0 Votes
[UWP][CX]C++/CX Destructor not called
Thus since the thread is infinitely waiting for a the m_invocationHandleevent to be set, there is always a reference to this class which will never call its ...Answered | 7 Replies | 1044 Views | Created by ShaZiv - Tuesday, July 26, 2016 6:41 AM | Last reply by mcosmin - Tuesday, July 26, 2016 8:00 AM - Items 1 to 20 of 476645 Next ›
No announcements