We did C# before we did C++, so just using whatever.dispose() and allowing the garbage collector to do as it pleased seemed ok. While learning, we read/heard that you can take more control over memory management with finalize and some other functions, but that it was recommended we leave that to the garbage collector, and not screw around with the other stuff. We then migrated to C++ for some projects that we needed to write in that language, and now that we see the difference that the allocation and deallocation of memory makes in the amount of memory the program takes, we want to take more control of the management in C#. Has anyone does this, and if so, would you recommend it?
grrr.. I was so excited to get a responce...darn you... Im gonna put this on easy-tek too I guess. No one will reply...*sigh*
Sorry about that. I just didn't want your post to go totally unanswered. Are you a member of any Prigramming Forums? Cheers.
I don't really do C#, considering I think it just a terrible clone of Java. But fi you want real control over the memory C# isn't the way to do it, C# is too far removed from the hardware to have that type of control. If you want real control over the memory, use C, start loving malloc(). realloc() and free().
Its not that big of a deal. If memory is a huge issue we will write some stuff in C++. The point is, we dont want to. And C# is excellent, very easy to use. Just a lot of memory overhead with the framework, and with garbage collection. But there are some ways to lessen that...Im just wondering if anyone has.
We have learned how to use 4 languages over the past ten months (learned enough for our purposes at least). C# has what we need. The reason Im asking the question is just so we can make it a little better. We have no interest in learning yet another language. Im sure we could, since I heard its very similar to c#, but we are happy with what were currently doing.