Menu

#244 debugger enabled build and msys

open
nobody
None
5
2012-09-07
2011-04-15
etillite
No

Debugger enabled build exits immediately if launched from msys using rxvt or console.

This is because AllocConsole() doesn't initialize standard handles for the console. PDCurses needs standard handles to the console but doesn't check for them. It uses invalid handles and causes DOSBox to exit.

Attached patch seems to solve the problem.

Discussion

  • etillite

    etillite - 2011-04-15
     
  • rcblanke

    rcblanke - 2011-05-03

    Hi etillite,

    Do you know if this is (also) the cause for the error message "LINES value must be >= 2 and <= 2: got 1. initscr(): LINES=1 COLS=1: too small." ?

    regards,
    Ronald

     
  • etillite

    etillite - 2011-05-10

    Hi Ronald,

    As far as I know, the error message was probably caused by:

    incorrect values of environment variables LINES and COLS

    or

    invalid handle, handle returned by GetStdHandle(STD_OUTPUT_HANDLE) is not a handle to console screen buffer and/or has not necessary access rights

    regards,
    Laszlo

     

Log in to post a comment.