Click here to Skip to main content
16,007,277 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: GUID generation at run time Pin
[Marc]12-Aug-05 8:14
[Marc]12-Aug-05 8:14 
Questionvb.net Shell() successful? Pin
partt11-Aug-05 7:35
partt11-Aug-05 7:35 
AnswerRe: vb.net Shell() successful? Pin
rwestgraham11-Aug-05 8:08
rwestgraham11-Aug-05 8:08 
GeneralRe: vb.net Shell() successful? RESOLVED Pin
partt11-Aug-05 8:29
partt11-Aug-05 8:29 
QuestionXmlTextReader ignores the 'encoding=...' definition? Pin
Thomas Schittli11-Aug-05 5:16
Thomas Schittli11-Aug-05 5:16 
GeneralActiveX Control - Knowing when it's fully Init()ed Pin
mankeyrabbit10-Aug-05 12:16
mankeyrabbit10-Aug-05 12:16 
GeneralError deploying dll Pin
Ajay L S9-Aug-05 21:50
Ajay L S9-Aug-05 21:50 
GeneralCLR Allocation & De - Allocation Pin
mohsin_m9-Aug-05 21:40
mohsin_m9-Aug-05 21:40 
i have confusion that About CLR Memory Allocation / De-Allocation:

That if an managed class written in VC++.Net:

For e.g:

__gc class Client1
{
public:
Client1()
{

}

~Client1()
{

}


static double Square (double value )
{
value = value * value;
Console::WriteLine("Client1 Returning {0}",__box(value));
return value;
}

};


and i try to allocate it's instance as:

(1): Client1 * cl1 = new Client1();

and do not explictly delete it , then is it posssible that this instance will automatically be deleted by <CLR> of .Net?

-----------------------------------------------------------------------------



(2): An other confusion i have is that if i allocate an array of
<Client1> type objects such as:

Client1 * cl[] = new Client1 * [3];

will this instance will automatically be deleted by CLR or it also have to
explicitly destroyed using syntax < delete []cl; >



-----------------------------------------------------------------------------



(3): I create an delegate in VC++.Net

__delegate double Square(double);


use it in <_tmain> as:

Square * sq1 = new Square(0,&Client1::Square);

sq1->Invoke(3);

will the instance of this <sq1> delegate type object will be
deleted automatically by CLR or not?

























GeneralRe: CLR Allocation &amp; De - Allocation Pin
Ali Sajadian10-Aug-05 1:15
Ali Sajadian10-Aug-05 1:15 
GeneralCalling Search Store Proc have problem Pin
Ali Sajadian9-Aug-05 20:29
Ali Sajadian9-Aug-05 20:29 
GeneralExporting native .Net Data types Pin
mohsin_m8-Aug-05 20:43
mohsin_m8-Aug-05 20:43 
GeneralRe: Exporting native .Net Data types Pin
J4amieC9-Aug-05 1:35
J4amieC9-Aug-05 1:35 
GeneralExporting .Net Data types Pin
mohsin_m8-Aug-05 20:41
mohsin_m8-Aug-05 20:41 
GeneralRe: Exporting .Net Data types Pin
Vasudevan Deepak Kumar8-Aug-05 20:59
Vasudevan Deepak Kumar8-Aug-05 20:59 
GeneralPassing String from DLL to C# Pin
mohsin_m8-Aug-05 20:28
mohsin_m8-Aug-05 20:28 
GeneralRe: Passing String from DLL to C# Pin
Christian Graus11-Aug-05 14:39
protectorChristian Graus11-Aug-05 14:39 
GeneralCalling C++ code from C# Pin
mohsin_m8-Aug-05 20:16
mohsin_m8-Aug-05 20:16 
GeneralRe: Calling C++ code from C# Pin
Mohamad Al Husseiny9-Aug-05 14:00
Mohamad Al Husseiny9-Aug-05 14:00 
GeneralRe: Calling C++ code from C# Pin
Wej Parry15-Aug-05 15:28
Wej Parry15-Aug-05 15:28 
GeneralRe: Calling C++ code from C# Pin
Mohamad Al Husseiny15-Aug-05 16:18
Mohamad Al Husseiny15-Aug-05 16:18 
GeneralRe: Calling C++ code from C# Pin
Wej Parry16-Aug-05 0:09
Wej Parry16-Aug-05 0:09 
Generalcsc problem Pin
Heinz_8-Aug-05 20:11
Heinz_8-Aug-05 20:11 
GeneralRe: csc problem Pin
[Marc]9-Aug-05 0:02
[Marc]9-Aug-05 0:02 
GeneralDatagrid Help!!! Need to make client side method! Pin
dgap8-Aug-05 20:01
dgap8-Aug-05 20:01 
GeneralProject management Pin
8-Aug-05 13:18
suss8-Aug-05 13:18 

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.