¡@

Home 

c# Programming Glossary: hostile

What's wrong with using Thread.Abort()

http://stackoverflow.com/questions/1559255/whats-wrong-with-using-thread-abort

are aborting a thread because you believe it to be running hostile code then the hostile code could be resisting its own destruction... because you believe it to be running hostile code then the hostile code could be resisting its own destruction. If you have a long..

Using lock statement within a loop in C#

http://stackoverflow.com/questions/2113261/using-lock-statement-within-a-loop-in-c-sharp

got to ask ourselves is the worker slow by design buggy or hostile In the first scenario the worker is simply doing something that.. only knows what to operating system state. If the code is hostile and is actively resisting being shut down then you have already.. abort it. There is no guarantee whatsoever that aborting a hostile thread actually terminates it the owner of the hostile code..

Common programming mistakes in .Net when handling exceptions? [closed]

http://stackoverflow.com/questions/2883936/common-programming-mistakes-in-net-when-handling-exceptions

code it's about producing exceptions which are handled by hostile code. Funny story. Before .NET 1.0 shipped to customers we found.. Resource leaks can be used as denial of service attacks by hostile partial trust code which deliberately creates exceptions producing.. impacts need to be undone before any code that might be hostile can run. Hostile code can run before finally blocks run See..

Does reflection breaks the idea of private methods, because private methods can be access outside of the class?

http://stackoverflow.com/questions/3300680/does-reflection-breaks-the-idea-of-private-methods-because-private-methods-can

to protect resources of user data from the threat of hostile partially trusted code running on the user's machine . The relationship.. it No . If the code is both trusted by the user and hostile to the user then the user has a big problem . They should not.. a secret in your code from a user who has your code and is hostile to you . The security system protects good users from evil code..

Why are C# structs immutable?

http://stackoverflow.com/questions/3751911/why-are-c-sharp-structs-immutable

return InternalOpenFile filename What if the hostile caller mutates filename after the security check and before..

Why is ValueType.GetHashCode() implemented like it is?

http://stackoverflow.com/questions/3841602/why-is-valuetype-gethashcode-implemented-like-it-is

tables where the contents of the table are chosen by non hostile users. The problems of hash codes for digital signing redundancy..

How can I prevent a user from closing my C# application?

http://stackoverflow.com/questions/4655810/how-can-i-prevent-a-user-from-closing-my-c-sharp-application

it. And this probably falls into the category of user hostile behavior. If I've resorted to using the Task Manager to close..