| Cuyler 2005-10-11, 7:00 pm |
| Hello,
SAFEARRAY is an array datatype used in C++ which keeps track of and
limits it's access bounds. In unmanaged C languages arrays are not
"safe". If you create an array of 5 elements and then assign a 6th
element nothing in the language will stop you, however you will get
some potentially serious overflow errors. SAFEARRAY fixes this
problem.
Threadsafe: This is a pretty complex topic, however it boils down to
this: An application (or object) is thread safe if it is able to
execute correctly when running simultaneously on multiple threads. A
great example is the idea of a "Pure Function" in C: The function only
uses arguments passed in, only uses variables that are allocated on the
stack, only calls other functions with similar properties and is
reentrant.
Hope that helps some.
Cheers,
Cuyler
|