No project of this size can be completely without errors and this is no exception. It's sort of like writing a 300,000 word Visual Basic program without the benefit of a compiler to check your spelling and grammar. This page describes some improvements to the example programs and the mistakes found so far.
If you find other errors, please let me know.
- 23 January, 2008
- Julian noticed a mistake on page 591, paragraph 2, line 4. The text:
... releases only its managed resources.
... releases only its unmanaged resources.
- 26 February, 2007
- Tom Anderson noticed a mistake in the author's note near the bottom of page 72. The last sentence in the note says, "I usually use classes, at least partly because they can have constructors." As Tom pointed out, structures can also have constructors.
What I meant to say was that structures cannot have default constructors that take no parameters. I suspect the reason these constructors are not allowed in structures is because you could easily do something like this:
Dim People(9999) As Person
When the code hit this statement, it would merrily fire the default constructor 10,000 times. If you do something similar with classes, you only get references to the objects not the objects themselves so any default constructors wouldn't fire until you initialize each object with your own code.
If you sign up for one of my VB Helper newsletters, you will be notified when there are updates to this book.