I got a simplier way for you to understand
Borland = Dos or windows <-- Dos uses very bad memory or at least a simpler memory management
gcc = linux / unix <-- More structured way of memory management
Your not having a code issue but more of a memory management issue.
This information is based directly on the other posts here and not my personal knowlege they are just trying to show you where the error is.
Your trying to make the compiler worry about memory management instead of directly dealing with it in effect each compiler is doing it the way IT WANTS TO
so in effect seg fault one place and not in another.
|