Click here to Skip to main content
15,510,678 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 7:10
the_grip23-Jan-03 7:10 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 7:23
leppie23-Jan-03 7:23 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 9:56
the_grip23-Jan-03 9:56 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 10:32
leppie23-Jan-03 10:32 
GeneralRelease mode Vs Debug mode Pin
BigAndy23-Jan-03 3:21
BigAndy23-Jan-03 3:21 
GeneralRe: Release mode Vs Debug mode Pin
Soliant23-Jan-03 4:23
Soliant23-Jan-03 4:23 
GeneralRe: Release mode Vs Debug mode Pin
Heath Stewart23-Jan-03 19:24
protectorHeath Stewart23-Jan-03 19:24 
GeneralStruct and pointers Pin
PeterJensen23-Jan-03 2:14
PeterJensen23-Jan-03 2:14 
Hi,
Im still quite new i the c# world.
My question is how to have a struct containing a pointer.
eg.:
For example. if I have a unsafe class containing

public struct Node
{
public int Value;
public Node* Left;
public Node* Right;
}

And add a node
public void add(int val)
{
Node n2 = new Node();
n.Right = &n2;
n2.Value = val;
n2.Right = null;
n2.Left= null;
}

And at last get it eg:

public void get()
Node l = *n.Right;
System.Windows.Forms.MessageBox.Show(l.Value.ToString());


How can I "pin" it so the garbege collector isn't moving it?

regards
GeneralRe: Struct and pointers Pin
Philip Fitzsimons23-Jan-03 3:49
Philip Fitzsimons23-Jan-03 3:49 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 4:00
PeterJensen23-Jan-03 4:00 
GeneralRe: Struct and pointers Pin
Philip Fitzsimons23-Jan-03 4:23
Philip Fitzsimons23-Jan-03 4:23 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 7:31
PeterJensen23-Jan-03 7:31 
GeneralRe: Struct and pointers Pin
leppie23-Jan-03 8:05
leppie23-Jan-03 8:05 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 8:17
PeterJensen23-Jan-03 8:17 
GeneralRe: Struct and pointers Pin
leppie23-Jan-03 9:10
leppie23-Jan-03 9:10 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 9:39
PeterJensen23-Jan-03 9:39 
Generalturning on console... Pin
jtmtv1823-Jan-03 1:05
jtmtv1823-Jan-03 1:05 
GeneralRe: turning on console... Pin
Philip Fitzsimons23-Jan-03 3:51
Philip Fitzsimons23-Jan-03 3:51 
GeneralRe: turning on console... Pin
jtmtv1823-Jan-03 7:26
jtmtv1823-Jan-03 7:26 
GeneralParsing Word document in C# Pin
Vin Kamat23-Jan-03 0:45
Vin Kamat23-Jan-03 0:45 
GeneralRe: Parsing Word document in C# Pin
Stephane Rodriguez.23-Jan-03 3:35
Stephane Rodriguez.23-Jan-03 3:35 
GeneralC# integration with FLEX Pin
anjana22-Jan-03 23:53
anjana22-Jan-03 23:53 
Generaldifference between Web and win form controls Pin
Member 58691322-Jan-03 22:58
Member 58691322-Jan-03 22:58 
GeneralRe: difference between Web and win form controls Pin
Stephane Rodriguez.23-Jan-03 3:01
Stephane Rodriguez.23-Jan-03 3:01 
GeneralRe: difference between Web and win form controls Pin
Soliant23-Jan-03 8:20
Soliant23-Jan-03 8:20 

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.