The point of this chapter was to demystify the garbage collection process. As you have seen, the garbage collector will only run when it is unable to acquire the necessary memory from the m- aged heap (or when a given AppDomain unloads from memory). When a garbage collection does occur, you can rest assured that Microsoft's collection algorithm has been optimized by the use of object generations, secondary threads for the purpose of object finalization, and a managed heap dedicated to host large objects. This chapter also illustrated how to programmatically interact with the garbage collector using the System. GC class type. As mentioned, the only time when you will really need to do so is when you are building finalizable or disposable class types. Recall that finalizable types are classes that have overridden the virtual System. Object. Finalize() method to clean up unmanaged resources (at some time in the future). Disposable objects, on the other hand, are classes (or structures) that implement the IDisposable interface. Using this technique, you expose a public method to the object user that can be called to perform internal cleanup ASAP. Finally, you learned about an of- cial "disposal" pattern that blends both approaches. PART 3 Advanced VB Programming Constructs CHAPTER 9 Working with Interface Types This chapter builds on your current understanding of object-oriented development by examining the topic of interface-based programming.
A wealth of detailed info, presented in an eminently readable narrative form -- what's not to like?
Awesome
Published by Thriftbooks.com User , 15 years ago
Awesome. I'm a VB6 (I mean WAS a VB6) programmer and was thrust into a project that had to be done with dot net. I told the client "No Problem" and promptly dug into this book. Normally, I abhor lenghty technical manuals where the author pads the actual substance (the stuff you want to learn) with personal comments,anecdotes, etc. (the stuff that wastes your time). This is NOT that kind of book. Just the opposite. And the writting style is great. Conversational yet to the point with little wasted space. Happy ending: I completed the application on time and the clent likes it. Only one bug (not unhandled) was found with the Beta test. AND I understand (emphasis) what I'm coding.
Excellent for VB6 programmers
Published by Thriftbooks.com User , 16 years ago
This book does a fantastic job getting you up to speed on Object Oriented Programming (OOP). I'm going through this book now with a team of 3 other veteran VB6 programmers, and they are being introduced to many OOP concepts for the first time. Though the concepts are very abstract, Troelsen manages to relate them in very practical examples. He is also much more thorough than other books I was considering when it came to the details of various .Net items such as the Exception class. The main reason I like this book is because the order of the chapters progress smoothly from the core concepts of OOP and the .Net architecture to the more specific concepts like form/control design or ASP.NET pages.
The reference book all VB.net programmers should have.
Published by Thriftbooks.com User , 16 years ago
I, for one, miss the days of large reference manuals as opposed to help files and Google searches. For me this book is a throwback in terms of its completeness and scope. If you program in VB.net I feel this is a must-have reference. I've given it to 2 of my developer friends already and plan to give it again. Do yourself and your career a favor. God bless.
Wow! This is THE book for VB2008 and/or .NET 3.5!!!
Published by Thriftbooks.com User , 16 years ago
I cannot over-rate this book. I've been developing systems for 40 years, and I've never seen a better book of this type. The author, Andrew Troelsen, really knows his stuff, and knows how to teach it. I only wish I'd had his VB 2005/.NET 2.0 book two years ago when I started trying to learn .NET! There's a lot of advanced material in this book, but it's good for any experienced programmer who wants to really learn .NET and VB 2008. It explains not only the what, but the why and how. If you need a book on this material, this is absolutely the one to get, period.
ThriftBooks sells millions of used books at the lowest everyday prices. We personally assess every book's quality and offer rare, out-of-print treasures. We deliver the joy of reading in recyclable packaging with free standard shipping on US orders over $15. ThriftBooks.com. Read more. Spend less.