问题描述
我了解托管代码提供的基础知识,如果您允许使用非托管代码,则可以自行打开安全问题。我们已经有了相当数量的VB6代码来包含COM DLL。如果我们把一些包裹在我们的代码周围,或留下一些asis。是什么让我们现有的生产代码''邪恶'只是因为它现在被认为是''非管理''?
它看起来像一个简单的niave问题,但是来自MS的托管
和非托管代码的定义没有提供足够的细节来解释为什么
非托管代码本身就是坏或坏。
我理解我们现有的一组程序员可能会变得邪恶,一旦我们安装了
..Net并开始转换为托管代码,但现在决定是
在我们所有代码转换之前最后一次是邪恶的他们在非托管部分做了一些
恶意事件...
我也理解任何不良行为可能仍然是不良行为,如果它们没有被改写为.Net兼容的工具 - 比如可能的内存泄漏
或者其他什么,事情如此罕见或良性,甚至没有排队等待研究/修复
- 仍将是il l-behaved。
但是非托管代码的恶意是什么......?公司正逐步淘汰
非托管代码,因为它不受管理。然而,在.Net之前这个相同的代码
很棒。
问候,
doug
I understand the basics of what managed code offers and that you open
yourself up to security issues if you allow unmanaged code. We already have
a decent amount of VB6 code to include COM DLLs. If we put wrappers around
some of our code or leave some "asis" what makes our existing production
code ''evil'' just because it is now considered ''unmanaged''?
It may seem like a simple niave question, but the definitions for managed
and unmanaged code from MS don''t provide enough detail to explain why
unmanaged code, in and of itself is bad or evil.
I understand our existing group of programmers might become evil once we get
..Net installed and begin converting to managed code, but decide now is the
last time to be evil before all our code is converted and they do some
malicious things in the unmanaged portions...
I also understand any ill-behaved programs might still be ill-behaved if
they aren''t rewritten in .Net compliant tools - like possible memory leaks
or whatever, things so infrequent or benign as to not even be on queue to be
researched/fixed - will still be ill-behaved.
But what is evil about unmanaged code....? Companies are phasing out
unmanaged code because it is unmanaged. Yet, prior to .Net this same code
was wonderfull.
regards,
doug
推荐答案
谁说它是邪恶的? MSFT投入了大量时间和精力将旧的
与新的混合。似乎有人带领你走近死胡同...
对于MSFT的观点,你可能想要坚持下去:
http://msdn.microsoft.com/theshow/Ep...44/default .asp
HTH
LFS
Who said it was evil? MSFT has invested time and effort in mixing the old
with the new. It seems someone has lead you down a blind alley way...
For the MSFT perspective, you might want to sit through this:
http://msdn.microsoft.com/theshow/Ep...44/default.asp
HTH
LFS
谁说它是邪恶的? MSFT投入了大量时间和精力将旧的
与新的混合。似乎有人带领你走近死胡同...
对于MSFT的观点,你可能想要坚持下去:
HTH
LFS
Who said it was evil? MSFT has invested time and effort in mixing the old
with the new. It seems someone has lead you down a blind alley way...
For the MSFT perspective, you might want to sit through this:
http://msdn.microsoft.com/theshow/Ep...44/default.asp
HTH
LFS
这篇关于托管与非托管问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!