Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
Questionusing ZedGraph + *.txt file Pin
housepl27-Dec-11 7:42
housepl27-Dec-11 7:42 
AnswerRe: using ZedGraph + *.txt file Pin
OriginalGriff27-Dec-11 8:19
mveOriginalGriff27-Dec-11 8:19 
GeneralRe: using ZedGraph + *.txt file Pin
housepl27-Dec-11 8:28
housepl27-Dec-11 8:28 
GeneralRe: using ZedGraph + *.txt file Pin
OriginalGriff27-Dec-11 8:30
mveOriginalGriff27-Dec-11 8:30 
QuestionUnsafe code safety question Pin
Lutosław27-Dec-11 4:47
Lutosław27-Dec-11 4:47 
AnswerRe: Unsafe code safety question Pin
harold aptroot27-Dec-11 5:01
harold aptroot27-Dec-11 5:01 
GeneralRe: Unsafe code safety question Pin
Lutosław27-Dec-11 5:40
Lutosław27-Dec-11 5:40 
GeneralRe: Unsafe code safety question Pin
harold aptroot27-Dec-11 6:04
harold aptroot27-Dec-11 6:04 
I don't know, I'm not 100% sure of this, but it looks to be fixing the strings temporarily and not long enough.
Jacek Gajek wrote:
but I couldn't use a fixed statement when outside a loop
Why is this? I've written plenty of loops spanned by a fixed.
Not that many, granted, but I would say that usually when I use fixed, there is P/Invoke or a loop inside it.

edit: I would only use the GCHandle way to pin if something has to remain pinned for a long time or the pinning must survive returning from the function that pins it in a way that can not be refactored in a sane way (typically these things happen at the same time). Or in the rare case that a GCHandle is required anyway.

modified 27-Dec-11 12:49pm.

GeneralRe: Unsafe code safety question Pin
Lutosław27-Dec-11 6:55
Lutosław27-Dec-11 6:55 
GeneralRe: Unsafe code safety question Pin
harold aptroot27-Dec-11 7:08
harold aptroot27-Dec-11 7:08 
GeneralRe: Unsafe code safety question Pin
Lutosław27-Dec-11 7:16
Lutosław27-Dec-11 7:16 
GeneralRe: Unsafe code safety question Pin
Lutosław27-Dec-11 8:43
Lutosław27-Dec-11 8:43 
GeneralRe: Unsafe code safety question Pin
harold aptroot27-Dec-11 9:06
harold aptroot27-Dec-11 9:06 
GeneralRe: Unsafe code safety question Pin
PIEBALDconsult27-Dec-11 6:06
mvePIEBALDconsult27-Dec-11 6:06 
AnswerRe: Unsafe code safety question Pin
PIEBALDconsult27-Dec-11 5:01
mvePIEBALDconsult27-Dec-11 5:01 
GeneralRe: Unsafe code safety question Pin
Lutosław27-Dec-11 5:26
Lutosław27-Dec-11 5:26 
GeneralRe: Unsafe code safety question Pin
PIEBALDconsult27-Dec-11 5:28
mvePIEBALDconsult27-Dec-11 5:28 
AnswerRe: Unsafe code safety question Pin
jschell27-Dec-11 10:18
jschell27-Dec-11 10:18 
QuestionResizing Controls According to Forms' Size Pin
AmbiguousName27-Dec-11 2:15
AmbiguousName27-Dec-11 2:15 
AnswerRe: Resizing Controls According to Forms' Size Pin
PIEBALDconsult27-Dec-11 2:29
mvePIEBALDconsult27-Dec-11 2:29 
AnswerRe: Resizing Controls According to Forms' Size Pin
David C# Hobbyist.27-Dec-11 2:34
professionalDavid C# Hobbyist.27-Dec-11 2:34 
AnswerRe: Resizing Controls According to Forms' Size Pin
Shameel27-Dec-11 4:08
professionalShameel27-Dec-11 4:08 
AnswerRe: Resizing Controls According to Forms' Size Pin
BillWoodruff27-Dec-11 4:38
professionalBillWoodruff27-Dec-11 4:38 
GeneralRe: Resizing Controls According to Forms' Size Pin
Roger Wright27-Dec-11 20:58
professionalRoger Wright27-Dec-11 20:58 
GeneralRe: Resizing Controls According to Forms' Size Pin
BillWoodruff29-Dec-11 2:31
professionalBillWoodruff29-Dec-11 2:31 

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.