Troubleshooting
- Remember to check the version number of a model when you stream it in from persistent storage. A good way to do this is to use ReadVersion, which automatically throws an exception if you have retrieved a version that you don't know how to use.
- If you haven't created a user interface yet, you can use the well-behaved object test in the Test Framework to check that you are getting and setting data in the model properly.
- From outside your model class, always use a TModelPointerTo<your model class> to access instances of your model class (see the sidebar "TModelPointerTo: safe access to a model's data").
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker