Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help on LINQ Pin
belzer11-Mar-08 9:17
belzer11-Mar-08 9:17 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 9:40
professionalScott Dorman11-Mar-08 9:40 
Questionconvert byte[] to short[] Pin
eyalbi00711-Mar-08 7:44
eyalbi00711-Mar-08 7:44 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 7:54
m@u11-Mar-08 7:54 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 8:01
eyalbi00711-Mar-08 8:01 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 8:08
m@u11-Mar-08 8:08 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 21:48
eyalbi00711-Mar-08 21:48 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 22:52
m@u11-Mar-08 22:52 
Hi
I think it has something to do with the Memory Management in .Net (which includes the garbage collector). As far as i understand it, object are not located fix in Memory. this means an Array of byte can "move" inside the memory.
That's why you get an exception when you try to get the Memory Address of an Item of the Array.
but you can force .Net to keep an Array at the same Location for a limited time. for this there's the fixedbr mode="hold" />i'm not quite sure about this, but i think fixing is only for reading addresses.. so i don't think it's possible to set the first entry of a short array to the address of the first item of a Byte Array.

but maybe google knows more if you ask it about fixed unsafe array manipulation or something Smile | :)

greets
m@u
GeneralC# ncurses Pin
marwooj11-Mar-08 7:36
marwooj11-Mar-08 7:36 
Questionbutton click event for more than 1 button Pin
steve_rm11-Mar-08 7:32
steve_rm11-Mar-08 7:32 
GeneralRe: button click event for more than 1 button Pin
m@u11-Mar-08 7:38
m@u11-Mar-08 7:38 
Generalwebbrowser and layout changing of current page Pin
eswes11-Mar-08 5:29
eswes11-Mar-08 5:29 
GeneralRe: webbrowser and layout changing of current page Pin
led mike11-Mar-08 5:49
led mike11-Mar-08 5:49 
GeneralRe: webbrowser and layout changing of current page Pin
eswes11-Mar-08 7:54
eswes11-Mar-08 7:54 
GeneralRe: webbrowser and layout changing of current page Pin
led mike11-Mar-08 8:02
led mike11-Mar-08 8:02 
GeneralRe: webbrowser and layout changing of current page Pin
eswes11-Mar-08 11:23
eswes11-Mar-08 11:23 
GeneralRe: webbrowser and layout changing of current page Pin
Mike Dimmick11-Mar-08 6:34
Mike Dimmick11-Mar-08 6:34 
QuestionReflection Question Pin
Paw Jershauge11-Mar-08 3:58
Paw Jershauge11-Mar-08 3:58 
AnswerRe: Reflection Question Pin
Martin#11-Mar-08 4:46
Martin#11-Mar-08 4:46 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 4:49
led mike11-Mar-08 4:49 
GeneralRe: Reflection Question [modified] Pin
Martin#11-Mar-08 5:13
Martin#11-Mar-08 5:13 
GeneralRe: Reflection Question Pin
Paw Jershauge11-Mar-08 5:27
Paw Jershauge11-Mar-08 5:27 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 5:34
led mike11-Mar-08 5:34 
GeneralRe: Reflection Question Pin
Martin#11-Mar-08 5:39
Martin#11-Mar-08 5:39 
GeneralRe: Reflection Question Pin
led mike11-Mar-08 5:44
led mike11-Mar-08 5:44 

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.