Forgot your password?
typodupeerror

Comment Re:Under the Rug (Score 1) 216

You can "early" dispose them using the dispose() methods we talked about before, but the GC is also smart. It takes into account relative costs of external resources (for GUI only, not for files etc) and will call GC pre-emptively when that cost gets too high.

I'm enjoying! GC is not (yet) smart enough to handle any resources but memory. You should get to know how brushes/pens/other of such stuff management is implemented in .NET. There are separate small resource managers for that.

An even if it is just a non-resource based class, I do new() on a class a few hundred times per program. Trying to find a delete() for each of those (especially if it is not located near the new() or if you have multiple execution paths etc.)

You're obviously not familiar with smart_ptr Boost library or even RAII idiom. Manual new/delete is not a issue in C++.

It amuses me that people not familiar with basic C++ ideology (like Web developers for example) tend to speculate about C++ deficiencies.

Slashdot Top Deals

An authority is a person who can tell you more about something than you really care to know.

Working...