Menu

#373 DOSBox won't run Turbo C++ compiled programs on Mac

closed
Qbix
None
5
2012-09-07
2012-01-22
Tron Thomas
No

If someone tries to build even a simple Hello World executable using Borland Turbo C++ 3.0 for DOSBox running on the Macintosh, DOSBox will crash when executing the program from a shell lauched in the Turbo C++ IDE.

Steps:

  1. Install Turbo C++ 3.0 on DOSBox for the Macintosh
  2. Create and build a simple Hello World application in the Turbo C++ IDE
  3. In the Turbo C++ IDE select "DOS shell" from the File menu
  4. Attempt to execute the application that was built in the IDE from the shell

Expected:
The application will execute successfully

Actual:
DOSBox crashes.

Note:
The program runs fine when executed outside of the Turbo C++ IDE environment, i.e. if someone where to lauch DOSBox and run the program directly everything works fine.
This problem is not an issue on Fedora Linux 16, even when running the program for a Turbo C++ DOS shell.

Discussion

  • Qbix

    Qbix - 2012-01-25

    Can you attach a sample program/executable that doesn't run ?
    (Ideally the classic the hello world program)

     
  • Tron Thomas

    Tron Thomas - 2012-01-26

    Actually, someone does not need to run a program compiled Turbo C++. Someone can try to execute any program. I shelled to a DOS prompt from the IDE and tried to run mem.com and DOSBox crashed.

     
  • Qbix

    Qbix - 2012-01-27

    Managed to confirm it. At first glance it seems to crash in the close process function. It's a bit tricky to debug though.

     
  • Qbix

    Qbix - 2012-01-27

    Fixed it.
    TC leaves the memory slightly corrupted and we use that data to update the contents of the titlebar (displayed at the top of the screen). Mac OS X doesn't like having weird characters in there.

    Thanks fpr the report.

     

Log in to post a comment.