Click here to Skip to main content
15,890,882 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionNeed Detailed Port Name/Info Pin
rpourzia7-Jun-06 19:59
rpourzia7-Jun-06 19:59 
QuestionDeleting lines from a text file without resorting to a temporary file. Pin
analytiks7-Jun-06 18:07
analytiks7-Jun-06 18:07 
AnswerRe: Deleting lines from a text file without resorting to a temporary file. Pin
Josh Smith8-Jun-06 8:36
Josh Smith8-Jun-06 8:36 
GeneralRe: Deleting lines from a text file without resorting to a temporary file. Pin
analytiks9-Jun-06 2:11
analytiks9-Jun-06 2:11 
GeneralRe: Deleting lines from a text file without resorting to a temporary file. [modified] Pin
Malcolm Smart9-Jun-06 5:28
Malcolm Smart9-Jun-06 5:28 
Questionconstants Pin
jgajarao7-Jun-06 14:26
jgajarao7-Jun-06 14:26 
AnswerRe: constants Pin
Josh Smith8-Jun-06 4:13
Josh Smith8-Jun-06 4:13 
AnswerRe: constants Pin
Jun Du8-Jun-06 4:20
Jun Du8-Jun-06 4:20 
I couldn't find a link at hand, but I think I can offer some hints. Please do check if there is another source of information.

All constants are allocated on the stack. Actually, .NET only has two types of objects, value type and class type. .NET heap only stores class type objects (including arrays), which are garbage collectable. All value types are allocated on the stack. Even pointers. This might sound strange, but it isn't. Lets see this example:

String^ str = gcnew String(L"ABCD");

What actually happens is that str^ handle is allocated on the stack, but the object is allocated on the .NET heap. A handle is still of a value type. It would be clearer if I rewrite it this way:

String^ str;
str = gcnew String(L"ABCD");

Also, constant string L"ABCD" is allocated on the stack:

String^ str = L"ABCD";

Hope this helps.



- It's easier to make than to correct a mistake.
GeneralRe: constants Pin
Josh Smith8-Jun-06 4:39
Josh Smith8-Jun-06 4:39 
GeneralRe: constants Pin
Jun Du8-Jun-06 5:43
Jun Du8-Jun-06 5:43 
QuestionMSMQ - symantec intrusion detection issue Pin
Vidhya Narasimhan7-Jun-06 10:46
Vidhya Narasimhan7-Jun-06 10:46 
GeneralRe: MSMQ - symantec intrusion detection issue Pin
Resolver188-Jun-06 3:48
Resolver188-Jun-06 3:48 
Question.NET 2.0, FTP, proxy >> error ! Pin
cutkemist7-Jun-06 1:34
cutkemist7-Jun-06 1:34 
QuestionMake own ListView-like Control [modified] Pin
Syntaxx.ch7-Jun-06 1:05
Syntaxx.ch7-Jun-06 1:05 
AnswerRe: Make own ListView-like Control [modified] Pin
Josh Smith7-Jun-06 3:52
Josh Smith7-Jun-06 3:52 
Questionuse Windows Dll in mobile project with framework 2.0 [modified] Pin
Ammar Ben Hadj Amor6-Jun-06 23:10
professionalAmmar Ben Hadj Amor6-Jun-06 23:10 
AnswerRe: use Windows Dll in mobile project with framework 2.0 [modified] Pin
Super Lloyd6-Jun-06 23:20
Super Lloyd6-Jun-06 23:20 
GeneralRe: use Windows Dll in mobile project with framework 2.0 [modified] Pin
Ammar Ben Hadj Amor6-Jun-06 23:37
professionalAmmar Ben Hadj Amor6-Jun-06 23:37 
Questionhow can we get encrypted file size of an NTFS encrypted file Pin
Zzeeshan Arif6-Jun-06 20:22
Zzeeshan Arif6-Jun-06 20:22 
QuestionMigrating to .NET 2.0 Pin
Vlad Gabovich6-Jun-06 5:00
Vlad Gabovich6-Jun-06 5:00 
AnswerRe: Migrating to .NET 2.0 Pin
Josh Smith6-Jun-06 9:33
Josh Smith6-Jun-06 9:33 
AnswerRe: Migrating to .NET 2.0 Pin
Kevin McFarlane6-Jun-06 10:20
Kevin McFarlane6-Jun-06 10:20 
AnswerRe: Migrating to .NET 2.0 Pin
Guffa6-Jun-06 13:11
Guffa6-Jun-06 13:11 
QuestionUser settings... Pin
Super Lloyd5-Jun-06 20:22
Super Lloyd5-Jun-06 20:22 
AnswerRe: User settings... Pin
CWIZO6-Jun-06 22:34
CWIZO6-Jun-06 22:34 

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.