Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
QuestionHow can i allow only Integer value to be entered Pin
netJP12L4-Nov-08 8:24
netJP12L4-Nov-08 8:24 
AnswerRe: How can i allow only Integer value to be entered Pin
Pedram Behroozi4-Nov-08 9:04
Pedram Behroozi4-Nov-08 9:04 
GeneralRe: How can i allow only Integer value to be entered Pin
netJP12L5-Nov-08 9:58
netJP12L5-Nov-08 9:58 
GeneralRe: How can i allow only Integer value to be entered Pin
Pedram Behroozi6-Nov-08 0:17
Pedram Behroozi6-Nov-08 0:17 
QuestionFor all you C# geeks: Knock yourselves out [modified] Pin
Bulky Fellow4-Nov-08 8:04
Bulky Fellow4-Nov-08 8:04 
AnswerRe: For all you C# geeks: Knock yourselves out Pin
Guffa4-Nov-08 11:09
Guffa4-Nov-08 11:09 
AnswerRe: For all you C# geeks: Knock yourselves out Pin
Mark Churchill4-Nov-08 13:24
Mark Churchill4-Nov-08 13:24 
QuestionMulti-pass Data Overwrite Questions Pin
BugsSister4-Nov-08 7:59
BugsSister4-Nov-08 7:59 
I am relatively new to programming in the C family of languages, and I am currently writing a program that I need some help on. Using C#, I am going to create some byte arrays and some int arrays, but I am unclear on how the data is store. I know that arrays are reference types which are created on the heap, but ints and bytes are data types which are kept on the stack. What I don't know is whether the data contained in a byte or int array is stored on the stack or the heap.

I need to be able to make sure that the data is totally destroyed after use, so if it is on the heap, I'm planning on a multi-pas data overwrite. To make sure that there is no recoverable bit of the data,I believe I need to pin the data in memory so that it is not moved by the garbage collector, and I'm planning on using pointers for access. I am aware that I can do this using the "fixed" keyword within an "unsafe" block. However, I'll be working with multiple arrays at the same time and I don't know if the fixed() method is overloaded to accept multiple pointers or if I have to use the "fixed keyword nested for each array separately. I also wonder if I can create the pointers outside of the "fixed" block and pass them in or if they must or should only be created as part of the arguments of the fixed() method.

Could someone please respond to these concerns and/or maybe recommend a book that covers this and other intermediate/advanced topics? I'm also looking for a good magazine on programming with C++ and/or C#.

Thanks!
AnswerRe: Multi-pass Data Overwrite Questions Pin
led mike4-Nov-08 9:36
led mike4-Nov-08 9:36 
GeneralRe: Multi-pass Data Overwrite Questions Pin
BugsSister5-Nov-08 7:33
BugsSister5-Nov-08 7:33 
QuestionGUI for a DOS program 2 questions ??? Pin
Questioneer4-Nov-08 7:33
Questioneer4-Nov-08 7:33 
AnswerRe: GUI for a DOS program 2 questions ??? Pin
Questioneer5-Nov-08 20:18
Questioneer5-Nov-08 20:18 
QuestionHow to highlight first row in the listview control when it is populated? [modified] Pin
phungquang4-Nov-08 6:00
phungquang4-Nov-08 6:00 
AnswerRe: How to highlight first row in the listview control when it is populated? Pin
Pedram Behroozi4-Nov-08 6:17
Pedram Behroozi4-Nov-08 6:17 
GeneralRe: How to highlight first row in the listview control when it is populated? Pin
Ennis Ray Lynch, Jr.4-Nov-08 6:32
Ennis Ray Lynch, Jr.4-Nov-08 6:32 
GeneralRe: How to highlight first row in the listview control when it is populated? Pin
Pedram Behroozi4-Nov-08 6:42
Pedram Behroozi4-Nov-08 6:42 
Questionprevent created file from deleting Pin
KioskKenn4-Nov-08 5:19
KioskKenn4-Nov-08 5:19 
AnswerRe: prevent created file from deleting Pin
Ennis Ray Lynch, Jr.4-Nov-08 5:29
Ennis Ray Lynch, Jr.4-Nov-08 5:29 
GeneralRe: prevent created file from deleting Pin
Meer Osman Ali4-Nov-08 5:44
Meer Osman Ali4-Nov-08 5:44 
GeneralRe: prevent created file from deleting Pin
Ennis Ray Lynch, Jr.4-Nov-08 5:48
Ennis Ray Lynch, Jr.4-Nov-08 5:48 
GeneralRe: prevent created file from deleting Pin
Meer Osman Ali4-Nov-08 5:52
Meer Osman Ali4-Nov-08 5:52 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:07
KioskKenn4-Nov-08 6:07 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:17
KioskKenn4-Nov-08 6:17 
GeneralRe: prevent created file from deleting Pin
KioskKenn4-Nov-08 6:57
KioskKenn4-Nov-08 6:57 
GeneralRe: prevent created file from deleting Pin
Pete O'Hanlon4-Nov-08 9:23
mvePete O'Hanlon4-Nov-08 9:23 

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.