>When I run the following method through the Object Test Bench, it generates a System.NullReferenceException error in Mere Mortals Framework 2005.dll.
>
>The offending line appears to be in the mmAppBase class @ this line _databaseMgr = Factory.CreateDatabaseManager();
>
>I am using basically the same call in another business object and that method works fine.
Check out the MM .NET Dev Guide topic "Testing Business Objects in the Object Test Bench". It states that you need to instantiate an instance of AAppTest before instantiating your business object in order to set up the runtime environment.
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com