MantisBT
Mantis Bug Tracker Workflow

occt: master 9b4243f9 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
abv bugmaster master 2018-11-18 16:53:10 master 0939d4cf
Affected Issues 0030377: DRAW, Windows - command executed via option -c fails on puts
Changeset 0030377: DRAW, Windows - command executed via option -c fails on puts

When DRAW on Windows is launched with option -c, the command is now properly transferred to Tcl thread (separate thread that runs Tcl interpretor on Windows except when DRAW is run in batch mode) for execution, instead of being evaluated in the main thread.

Execution of DRAW in batch mode (option -b) is fixed by enabling proper initialization of the Tcl interpretor and replacement of backslashes in path to startup script by straight slashes on Windows in that mode.

Declaration of global variables used for communication of console command between threads is moved to Draw_Window.hxx to ensure consistency.
Function wscpy_s is used instead of memcpy to avoid possible buffer overrun.
mod - src/Draw/CommandWindow.cxx Diff ] File ]
mod - src/Draw/Draw.cxx Diff ] File ]
mod - src/Draw/Draw_Window.cxx Diff ] File ]
mod - src/Draw/Draw_Window.hxx Diff ] File ]


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker