First of all this is an excellent site. Now my problem. When I compile my app for debug mode it works great. When I compile it for Release mode and run the program it bombs at the CString.Mid() method.

Now I changed the C++ code generation in the use run-time library from "Multithreaded" to "Debug Multithreaded" and it seems to be working great.

Does anyone have any suggestions why this would work. Is this a permanent fix.

Thanks
-LHoffman