Click here to Skip to main content
15,904,416 members

Comments by nanomass (Top 13 by date)

nanomass 9-Jul-12 11:59am View    
When I tried to use your example, VS says that the expression is already fixed, does this means that this space of memory wont be overwritten by the program?

Thanks in advance.
nanomass 6-Jul-12 10:35am View    
So, by using the fixed keyword I prevent the program from overwriting where my pointer is pointing to. Is there a way to cleat that memory when I am not using it?
nanomass 8-Jun-12 9:33am View    
I just tried using LPStr and I am getting an exception as the following"Attempted to read or write protected memory" I tried to marshal it to a character array and the only index that was used was index = 0. using the marshalas.byValArray.
nanomass 7-Jun-12 17:52pm View    
Hi, Sorry, but according to the documentation provided by you the marshal as is corect in the c++ structure Name is a fixed size char array, I tried this marshal provided and it did not work LPStr is only 1 byte in length. but thanks for the help, this link is very helpful.
nanomass 30-May-12 16:55pm View    
Thanks for your post Ranft. this info is very helpful!