[Mono-dev] SafeFileHandle & FileStream

gpz22 sonny.alves-dias at numeri4d.com
Wed Feb 24 05:16:49 EST 2010


Hi

I have some trouble to use a library into my project. The library is
WiimoteLib, and it uses a SafeFileHandle to generate a FileStream to get and
send data to the wiimote. But like I saw on this article : 
http://www.mono-project.com/SafeHandles
There is an issue with FileStream when you create it with a SafeFileHandle.

So I am looking for a solution to remediate to this. Is there a way to use
another type of Stream to manipulate connection with a device ? 
In the article, it is written to use a wrapper, what does it mean ? 

You can see the code of connection of the wiimote on their website : 
http://blogs.msdn.com/coding4fun/archive/2007/03/14/1879033.aspx
At the paragraph : The Exciting World of HID and P/Invoke

Thanks
Greetings
-- 
View this message in context: http://n4.nabble.com/SafeFileHandle-FileStream-tp1567248p1567248.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list