locked
legacy code creates error when it tries to write to console RRS feed

  • Question

  • I have some legacy code that is compiled into a dll.  

    It has some code that writes to the console.  This is creating an error in Windows 7, though it ran just fine in XP.  The code is not available (what we have is far from the latest version) so it cannot be rewritten.  Any ideas on how to get this to run without an error?

    Thursday, February 10, 2011 11:22 PM

Answers

  • Let's see. You have "legacy code" in a DLL, but we cannot see it. Can you quote the error message?

    Given the lack of access you describe, all I can suggest is installing the calling app in XP-compatibility mode.

     

    • Proposed as answer by Niki Han Monday, February 14, 2011 8:28 AM
    • Marked as answer by Vivian Xing Friday, February 18, 2011 9:35 AM
    Friday, February 11, 2011 11:16 PM