Click here to Skip to main content
16,008,469 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Oddball16-Jul-08 14:06
Oddball16-Jul-08 14:06 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Mark Salsbery16-Jul-08 14:16
Mark Salsbery16-Jul-08 14:16 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Oddball16-Jul-08 14:20
Oddball16-Jul-08 14:20 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Oddball17-Jul-08 6:29
Oddball17-Jul-08 6:29 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Mark Salsbery17-Jul-08 7:21
Mark Salsbery17-Jul-08 7:21 
GeneralRe: AsyncCallback Instantiation - Why Did This Work? Pin
Oddball17-Jul-08 7:42
Oddball17-Jul-08 7:42 
QuestionExecute Dispose function of a managed class??? Pin
CTaylor8916-Jul-08 8:26
CTaylor8916-Jul-08 8:26 
AnswerRe: Execute Dispose function of a managed class??? Pin
Mark Salsbery16-Jul-08 8:53
Mark Salsbery16-Jul-08 8:53 
CTaylor89 wrote:
Is there a way to execute the Dispose function


Yes. It is called when the class destructor (in C++) is called.
From the docs, this occurs:
If an object created using stack semantics goes out of scope. For more information, see C++ Stack Semantics for Reference Types.
If an exception is thrown during the object's construction.
If the object is a member in an object whose destructor is running.
If you call the delete Operator (C++) on a handle (^ (Handle to Object on Managed Heap)).
If you explicitly call the destructor.

For best results, study these carefully Smile | :)

Destructors and Finalizers in Visual C++[^]
Changes in Destructor Semantics[^]

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Execute Dispose function of a managed class??? Pin
CTaylor8916-Jul-08 9:23
CTaylor8916-Jul-08 9:23 
GeneralRe: Execute Dispose function of a managed class??? Pin
Mark Salsbery16-Jul-08 9:26
Mark Salsbery16-Jul-08 9:26 
GeneralRe: Execute Dispose function of a managed class??? Pin
CTaylor8916-Jul-08 10:09
CTaylor8916-Jul-08 10:09 
GeneralRe: Execute Dispose function of a managed class??? Pin
Mark Salsbery16-Jul-08 10:31
Mark Salsbery16-Jul-08 10:31 
GeneralRe: Execute Dispose function of a managed class??? Pin
CTaylor8916-Jul-08 10:51
CTaylor8916-Jul-08 10:51 
GeneralRe: Execute Dispose function of a managed class??? Pin
Mark Salsbery16-Jul-08 11:08
Mark Salsbery16-Jul-08 11:08 
QuestionVC#.Net class in VC++.Net ? Pin
Andy Rama15-Jul-08 21:04
Andy Rama15-Jul-08 21:04 
AnswerRe: VC#.Net class in VC++.Net ? Pin
Mark Salsbery16-Jul-08 7:19
Mark Salsbery16-Jul-08 7:19 
GeneralRe: VC#.Net class in VC++.Net ? Pin
Andy Rama17-Jul-08 3:34
Andy Rama17-Jul-08 3:34 
AnswerRe: VC#.Net class in VC++.Net ? Pin
Paul Conrad16-Jul-08 9:36
professionalPaul Conrad16-Jul-08 9:36 
QuestionBlowFish Pin
Xaria14-Jul-08 16:24
Xaria14-Jul-08 16:24 
AnswerRe: BlowFish Pin
led mike15-Jul-08 4:27
led mike15-Jul-08 4:27 
AnswerRe: BlowFish Pin
Mark Salsbery15-Jul-08 6:27
Mark Salsbery15-Jul-08 6:27 
AnswerRe: BlowFish Pin
Paul Conrad16-Jul-08 9:35
professionalPaul Conrad16-Jul-08 9:35 
GeneralRe: BlowFish Pin
Xaria16-Jul-08 20:46
Xaria16-Jul-08 20:46 
QuestionMarshalAs UnmanagedType::LPStrunc trouble Pin
Thees Ch. Winkler13-Jul-08 2:44
Thees Ch. Winkler13-Jul-08 2:44 
AnswerRe: MarshalAs UnmanagedType::LPStrunc trouble Pin
Mark Salsbery13-Jul-08 16:08
Mark Salsbery13-Jul-08 16:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.