I kind of guessed that maybe the user might need more Windows privileges or
something.
"Bob Powell [MVP]" <bob@spamkillerbobpowell.net> wrote in message
news:86BFEC24-D182-4D58-B608-59525B41696C@microsoft.com...
> In my opinion, the only possible downside to unsafe code is that the
> requirement to understand the physical layout in memory of an object or
> data structure is still of paramount importance whereas safe code takes
> that responsibility away from the programmer and lightens the load.
>
> For an old C++ programmer like me it's a useful and fast tool.
>
> --
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Ramuseco Limited .NET consulting
>
http://www.ramuseco.com >
> Find great Windows Forms articles in Windows Forms Tips and Tricks
>
http://www.bobpowell.net/tipstricks.htm >
> Answer those GDI+ questions with the GDI+ FAQ
>
http://www.bobpowell.net/faqmain.htm >
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
> "Academia" <academiaNOSPAM@a-znet.com> wrote in message
> news:er$DCBDNIHA.5988@TK2MSFTNGP02.phx.gbl...
>>I got it.
>>
>> What's the down side of unsafe code for a Windows application?
>>
>> Thanks
>>
>> "Bob Powell [MVP]" <bob@spamkillerbobpowell.net> wrote in message
>> news:77397E75-A709-4E8F-A8FC-E991B38AD858@microsoft.com...
>>> The article has been moved or deleted from MSDN. I wish those guys would
>>> learn to keep reference links constant!
>>>
>>> Here is another article on the same subject:
>>>
http://msdn2.microsoft.com/en-us/library/aa479306.aspx >>>
>>> The reason for using unsafe code in any graphics application is of
>>> course speed. Direct access to memory via a pointer is guaranteed to be
>>> faster than any other method and optimization of graphics processing is
>>> important.
>>>
>>>
>>> --
>>> --
>>> Bob Powell [MVP]
>>> Visual C#, System.Drawing
>>>
>>> Ramuseco Limited .NET consulting
>>>
http://www.ramuseco.com >>>
>>> Find great Windows Forms articles in Windows Forms Tips and Tricks
>>>
http://www.bobpowell.net/tipstricks.htm >>>
>>> Answer those GDI+ questions with the GDI+ FAQ
>>>
http://www.bobpowell.net/faqmain.htm >>>
>>> All new articles provide code in C# and VB.NET.
>>> Subscribe to the RSS feeds provided and never miss a new article.
>>>
>>>
>>> "Academia" <academiaNOSPAM@a-znet.com> wrote in message
>>> news:OsmuQ07MIHA.5720@TK2MSFTNGP04.phx.gbl...
>>>> Once I saw an implementation of OctreeQuantizer that did not require
>>>> the Unsafe keyword.
>>>>
>>>> Now that I want it I can't find it.
>>>>
>>>> Do you know how to find that site?
>>>>
>>>> Also do you have a comment about reasons for using the "safe" or the
>>>> "unsafe" OctreeQuantizer code.
>>>>
>>>>
>>>>
>>>> What site contains the code you'd recommend?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>