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

Managed C++/CLI

 
GeneralRe: How to build own help [modified] Pin
mikobi8-May-08 19:28
mikobi8-May-08 19:28 
QuestionGet IP-Address of Primary Network Adapter [modified] Pin
Probot1-May-08 1:21
Probot1-May-08 1:21 
AnswerRe: Get IP-Address of Primary Network Adapter Pin
led mike1-May-08 4:29
led mike1-May-08 4:29 
GeneralRe: Get IP-Address of Primary Network Adapter Pin
Probot4-May-08 1:47
Probot4-May-08 1:47 
GeneralRe: Get IP-Address of Primary Network Adapter Pin
led mike6-May-08 5:04
led mike6-May-08 5:04 
GeneralVery simple question about gcnew in opreator overloading cases Pin
aa1ww28-Apr-08 10:06
professionalaa1ww28-Apr-08 10:06 
GeneralRe: Very simple question about gcnew in opreator overloading cases Pin
led mike29-Apr-08 4:35
led mike29-Apr-08 4:35 
GeneralRe: Very simple question about gcnew in opreator overloading cases Pin
aa1ww29-Apr-08 8:19
professionalaa1ww29-Apr-08 8:19 
Ok, bear with me here...

fred is a handle to some resources gcnew'd in the instantiation of an OpClass object in the main program, right?

Then, during the operator overloading function call, more resources were gcnew'd for the instantiation of OpClass (whose handle is ret).

So ret is returned as a handle and fred (also an OpClass handle) is replaced, OK. But there are now two allocations of OpClass objects on the managed heap.

perhaps the CLR notices that the previously allocated resources pointed to by fred before the overloading function call are now "orphaned" (when fred was replaced by ret) and can mark those resources for deletion?

Thanks,
Coop

PS: Right, traditional C++ requires me to do explicit delete's on my allocated resources.

Jeff Cooper

GeneralRe: Very simple question about gcnew in opreator overloading cases Pin
led mike29-Apr-08 9:20
led mike29-Apr-08 9:20 
GeneralRetrieve A Win32 Process Memory Map Pin
edfgreen28-Apr-08 8:54
edfgreen28-Apr-08 8:54 
QuestionGUID of an interface.. Pin
vayanan28-Apr-08 7:30
vayanan28-Apr-08 7:30 
QuestionXML Pin
jossie28-Apr-08 4:11
jossie28-Apr-08 4:11 
AnswerRe: XML Pin
led mike28-Apr-08 4:22
led mike28-Apr-08 4:22 
QuestionConvert window application to web application Pin
Member 454227227-Apr-08 23:56
Member 454227227-Apr-08 23:56 
GeneralHelp can't remermber how Pin
Cary D. Rutherford26-Apr-08 8:24
Cary D. Rutherford26-Apr-08 8:24 
GeneralRe: Help can't remermber how Pin
Mark Salsbery27-Apr-08 8:19
Mark Salsbery27-Apr-08 8:19 
GeneralRe: Help can't remermber how Pin
Christian Graus27-Apr-08 12:00
protectorChristian Graus27-Apr-08 12:00 
GeneralRe: Help can't remermber how Pin
Cary D. Rutherford27-Apr-08 18:24
Cary D. Rutherford27-Apr-08 18:24 
Generalproject help Pin
johnzfrebbies@24-Apr-08 17:55
johnzfrebbies@24-Apr-08 17:55 
GeneralRe: project help Pin
Mark Salsbery25-Apr-08 6:20
Mark Salsbery25-Apr-08 6:20 
GeneralRe: project help Pin
johnzfrebbies@27-Apr-08 11:50
johnzfrebbies@27-Apr-08 11:50 
GeneralNOTE TO CP MEMBERS Pin
leckey27-Apr-08 14:59
leckey27-Apr-08 14:59 
GeneralRe: NOTE TO CP MEMBERS Pin
johnzfrebbies@27-Apr-08 19:58
johnzfrebbies@27-Apr-08 19:58 
GeneralRe: NOTE TO CP MEMBERS Pin
leckey28-Apr-08 2:48
leckey28-Apr-08 2:48 
GeneralRe: NOTE TO CP MEMBERS Pin
johnzfrebbies@28-Apr-08 15:21
johnzfrebbies@28-Apr-08 15:21 

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.