Użytkownik Fabian Schmied <[EMAIL PROTECTED]> napisał: >> http://www.gotdotnet.com/team/fxcop/Docs/Rules/SecurityRules/IntptrAndFinalize.html >> >> I struggle to comprehend the above FxCop rule. Does it make a lick of >> sense to anyone? > >Just want to point you to this [1] blog by Chris Brumme, where he >discusses the same problem. He also suggests a solution which is a bit >cleaner than GC.KeepAlive: HandleRef (which seems to be replaced/extended >by SafeHandle in Whidbey). > >Fabian > >[1] http://blogs.msdn.com/cbrumme/archive/2003/04/19/51365.aspx >
While it does not add to the discussion, the official MS doc seems to be unaware of the problem or, perhaps, Managed C++ has some special defense (?): http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_accessingcodefromframeworkobjects.asp Marek =================================== This list is hosted by DevelopMentorŽ http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
