Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 6:10
the_grip23-Jan-03 6:10 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 6:23
leppie23-Jan-03 6:23 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 8:56
the_grip23-Jan-03 8:56 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 9:32
leppie23-Jan-03 9:32 
GeneralRelease mode Vs Debug mode Pin
BigAndy23-Jan-03 2:21
BigAndy23-Jan-03 2:21 
GeneralRe: Release mode Vs Debug mode Pin
TigerNinja_23-Jan-03 3:23
TigerNinja_23-Jan-03 3:23 
GeneralRe: Release mode Vs Debug mode Pin
Heath Stewart23-Jan-03 18:24
protectorHeath Stewart23-Jan-03 18:24 
GeneralStruct and pointers Pin
PeterJensen23-Jan-03 1:14
PeterJensen23-Jan-03 1: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 2:49
Philip Fitzsimons23-Jan-03 2:49 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 3:00
PeterJensen23-Jan-03 3:00 
GeneralRe: Struct and pointers Pin
Philip Fitzsimons23-Jan-03 3:23
Philip Fitzsimons23-Jan-03 3:23 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 6:31
PeterJensen23-Jan-03 6:31 
GeneralRe: Struct and pointers Pin
leppie23-Jan-03 7:05
leppie23-Jan-03 7:05 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 7:17
PeterJensen23-Jan-03 7:17 
GeneralRe: Struct and pointers Pin
leppie23-Jan-03 8:10
leppie23-Jan-03 8:10 
GeneralRe: Struct and pointers Pin
PeterJensen23-Jan-03 8:39
PeterJensen23-Jan-03 8:39 
Generalturning on console... Pin
jtmtv1823-Jan-03 0:05
jtmtv1823-Jan-03 0:05 
GeneralRe: turning on console... Pin
Philip Fitzsimons23-Jan-03 2:51
Philip Fitzsimons23-Jan-03 2:51 
GeneralRe: turning on console... Pin
jtmtv1823-Jan-03 6:26
jtmtv1823-Jan-03 6:26 
GeneralParsing Word document in C# Pin
Vin Kamat22-Jan-03 23:45
Vin Kamat22-Jan-03 23:45 
GeneralRe: Parsing Word document in C# Pin
Stephane Rodriguez.23-Jan-03 2:35
Stephane Rodriguez.23-Jan-03 2:35 
GeneralC# integration with FLEX Pin
anjana22-Jan-03 22:53
anjana22-Jan-03 22:53 
Generaldifference between Web and win form controls Pin
Member 58691322-Jan-03 21:58
Member 58691322-Jan-03 21:58 
GeneralRe: difference between Web and win form controls Pin
Stephane Rodriguez.23-Jan-03 2:01
Stephane Rodriguez.23-Jan-03 2:01 
GeneralRe: difference between Web and win form controls Pin
TigerNinja_23-Jan-03 7:20
TigerNinja_23-Jan-03 7: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.