pointers to Volatile in C#
apply in this case. I really need a pointer to volatile ushort, as the memory is
a 16 bit device. The code I attempted was inside a method-
void someMethod() {
int temp;
unsafe {
volatile ushort* ptr = comRch.GetSomeAddr(); // won't compile with volatile
*ptr = expression; // want fast assignemnt
temp = *ptr;
}
}
Compiler just doesn't like volatile modifiers on pointers, but my reading
of the language spec says it should. Further, I think I need it ! I'm trying
to avoid the time hit of a COM interop call.
bill mccandless

