DNA wrote:
Please don't top post.
Put your reply beneath the text you are replying to and snip
what you no longer need in the reply.
[color=blue]
>
> Why does microsoft clutter minds of programmers by allowing automatic
> release of allocated memory on process heap?[/color]
What are you talking about?
It's quite common for an operating system, to simply free the
allocated memory after a program has exited. It is a sort of
defense strategy against programming errors.
[color=blue]
>
> Why do they encourage programmers to not to be careful with memory
> allocations?[/color]
Because it is very simple to miss a few deallocations. From the point
of view of the operating system, this is unacceptable. Thus it does
the simplest strategy available: If a program terminates, release all
resources allocated to that program (if possible).
[color=blue]
>
> Why did they provide FreeSysString function for AllocSysString?[/color]
To properly release the resource :-)
[color=blue]
> Anyway
> it is getting released once the process exits.[/color]
Exactly.
--
Karl Heinz Buchegger
kbuchegg@gascad.at