Click here to Skip to main content
15,887,294 members
Home / Discussions / C#
   

C#

 
AnswerRe: Function Key assignment in a Form C# .Net Pin
Christian Graus26-Oct-09 15:54
protectorChristian Graus26-Oct-09 15:54 
GeneralRe: Function Key assignment in a Form C# .Net Pin
Zar Ni26-Oct-09 16:03
Zar Ni26-Oct-09 16:03 
GeneralRe: Function Key assignment in a Form C# .Net Pin
Christian Graus26-Oct-09 16:09
protectorChristian Graus26-Oct-09 16:09 
GeneralRe: Function Key assignment in a Form C# .Net Pin
Zar Ni26-Oct-09 16:07
Zar Ni26-Oct-09 16:07 
QuestionNested pinning? Pin
DaveyM6926-Oct-09 11:56
professionalDaveyM6926-Oct-09 11:56 
AnswerRe: Nested pinning? Pin
Luc Pattyn26-Oct-09 12:17
sitebuilderLuc Pattyn26-Oct-09 12:17 
GeneralRe: Nested pinning? Pin
DaveyM6926-Oct-09 13:18
professionalDaveyM6926-Oct-09 13:18 
GeneralRe: Nested pinning? Pin
Luc Pattyn26-Oct-09 13:31
sitebuilderLuc Pattyn26-Oct-09 13:31 
Copying is against my religion, I always pin (unless it is an array smashed in a struct), with GCHandle most often. I would never copy 64KB if I don't have to, it takes cycles and bytes, and it trashes the caches.

DaveyM69 wrote:
I have already padded as the API says it must be word aligned


Confused | :confused: I would find it very hard to get an object that isn't word aligned. AFAIK every value type (with a size of at least 4B) and every object (an array is an object!) is aligned to at least 4B, probably 8 or more. Same is true on all C systems I've encountered (e.g. using malloc). And the only way you could accidentally loose alignment is by prefixing something smaller inside a struct.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: Nested pinning? Pin
DaveyM6926-Oct-09 13:41
professionalDaveyM6926-Oct-09 13:41 
GeneralRe: Nested pinning? Pin
Luc Pattyn26-Oct-09 13:52
sitebuilderLuc Pattyn26-Oct-09 13:52 
GeneralRe: Nested pinning? Pin
DaveyM6926-Oct-09 13:57
professionalDaveyM6926-Oct-09 13:57 
GeneralRe: Nested pinning? Pin
Luc Pattyn26-Oct-09 13:59
sitebuilderLuc Pattyn26-Oct-09 13:59 
GeneralRe: Nested pinning? Pin
DaveyM6926-Oct-09 22:22
professionalDaveyM6926-Oct-09 22:22 
GeneralRe: Nested pinning? Pin
Luc Pattyn27-Oct-09 3:21
sitebuilderLuc Pattyn27-Oct-09 3:21 
QuestionWeb Reference in VS incorrectly reads array parameter Pin
Vengeance26-Oct-09 11:20
Vengeance26-Oct-09 11:20 
QuestionMultiple Components In One Solution Accessing Data Pin
Kevin Marois26-Oct-09 10:46
professionalKevin Marois26-Oct-09 10:46 
AnswerRe: Multiple Components In One Solution Accessing Data Pin
Not Active26-Oct-09 11:32
mentorNot Active26-Oct-09 11:32 
GeneralRe: Multiple Components In One Solution Accessing Data Pin
Kevin Marois26-Oct-09 12:29
professionalKevin Marois26-Oct-09 12:29 
GeneralRe: Multiple Components In One Solution Accessing Data Pin
Not Active26-Oct-09 12:43
mentorNot Active26-Oct-09 12:43 
QuestionDetailsView returns null values on postback?? Pin
je198026-Oct-09 10:41
je198026-Oct-09 10:41 
AnswerRe: DetailsView returns null values on postback?? Pin
Not Active26-Oct-09 11:15
mentorNot Active26-Oct-09 11:15 
QuestionODBC Type mismatch error Pin
TheJudeDude26-Oct-09 9:25
TheJudeDude26-Oct-09 9:25 
AnswerRe: ODBC Type mismatch error Pin
Abhishek Sur26-Oct-09 10:01
professionalAbhishek Sur26-Oct-09 10:01 
GeneralRe: ODBC Type mismatch error Pin
TheJudeDude26-Oct-09 11:46
TheJudeDude26-Oct-09 11:46 
AnswerRe: ODBC Type mismatch error Pin
OriginalGriff26-Oct-09 10:02
mveOriginalGriff26-Oct-09 10:02 

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.