Quote Originally Posted by wdolson View Post
When I move the code to load data into m_CfgData to the app class, or the document class, setting filename works properly with no problems.
I will emphasize what VictorN has stated.

If it is determined that the issue is not an MFC architecture related issue (for example, there is an MFC reason why the code doesn't work, and not because of bugs), then you don't move any code.

By moving code, all you did was move the potential bug to another location in your program, and now the bug is probably hidden. Then you deploy the code on a customer's machine, and the code crashes -- that's how these things happen.

I emphasize to never finagle with the code by moving it around if you see a bug. Take the buggy code and fix it. If you do move the code, then the problem gets more difficult, if not impossible to fix.

Regards,

Paul McKenzie