Fixed BDEBUGGER died on invalid watch request

May 20, 2008
3,515
4
Elkridge, MD, USA
I attempted to specify an array element past the array size as a variable to watch. Repeatable pop-up: "Visual C++ RTL" - Program: IDE.EXE - "The application requested the runtime to terminate in an unusual way. Please contact the application's support team for more information." Originally the array was already defined and filled with data, but I did not remember its size, and the message pooped up when I specified one element too many. The second time I specified the same string "cum[12]" BEFORE the command "SETARRAY cum[12]" was executed, as a deliberate test to see the failure message. It was accepted as a variable specifiation, and displayed [12] as its value. Singlestepping worked fine until I executed the SETARRAY command, which caused the same error message pop-up, followed by the usual "notify MS" pop-up. When the pop-ups were closed, the IDE/BDEBUGGER window disappeared, and TCC went to a new prompt.
TCC 13.02.35 in stand-alone WinXP home SP3 window.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Can you post a batch snippet that demonstrates the problem?

This siimple program below shows the problem. Load it ni the debugger, highlight "x[1]" in the second line and make it a "watch variable" (alt-D a). "Run to breakpoint" or single stepping alike show the problem.
on error quit
setarray x[1]
quit
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
The reason I couldn't reproduce it originally is that the crash doesn't have anything to do with arrays or SETARRAY, and is only partially due to watching a variable. The actual problem is with ON ERROR throwing an exception while the debugger is trying to update the watch list (not when the error would normally be detected & displayed in the batch file itself). Which ends up with a stack unwinding problem, because ON ERROR is jumping to the wrong place.

I'll have a fix in build 36.
 
Similar threads
Thread starter Title Forum Replies Date
R bug _ypixels in BDEBUGGER Support 6
T Thanks for the assistance with IDE vs Bdebugger Support 3
cgunhouse SETLOCAL not working in BDEBUGGER Support 9
Peter Murschall V26-Issues in the BDEBUGGER ! Support 11
R Documentation Help Nit > bdebugger View Menu Support 0
Peter Murschall BDEBUGGER "Run to Cursor" - where is it ? Support 1
R Changes to BDEBUGGER menu item keyboard shortcuts in v25 Support 2
Kachupp ide/bdebugger Support 17
rps IDE/BDEBUGGER ? Support 1
Kachupp bdebugger Support 5
Kachupp bdebugger Support 17
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
Joe Caverly BDEBUGGER and CMDebug Support 2
Joe Caverly Modified Variables in CMDebug/BDebugger Support 1
C BDEBUGGER/IDE crashing Support 1
C BDEBUGGER queryies Support 5
A bdebugger: why it doesnt go inside the "if" statement ? Support 3
MickeyF BDebugger crashes Support 2
jbanaszczyk Bdebugger and breakpoint Support 5
jbanaszczyk bdebugger issues Support 4
cgunhouse Fixed bdebugger with not exist batch file causes a crash Support 2
S BDEBUGGER issue Support 9
samintz Hotkeys for copy/paste do not work in BDEBUGGER Support 4
thedave BDEBUGGER vs not inconsistency Support 15
T bdebugger / ide usage confusion Support 14
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
Frank How to? bdebugger / breakpoints Support 4
Frank watch an array variable in ide/bdebugger Support 2
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
E Ctrl-V does not always work in BDEBUGGER Support 4
B Bdebugger doesn't recognize breakpoint after batch file returns Support 2
JohnQSmith IDE / BDEBUGGER Crash Support 0
JohnQSmith IDE / BDEBUGGER Font Support 4
B Bdebugger / IDE editor doesn't display called batch file Support 1
samintz bdebugger issues Support 55
Peter Bratton BDEBUGGER observations Support 4
S BDEBUGGER - minor issue Support 2
O Is the bdebugger supposed to debug? Support 1
vefatica BDEBUGGER and Spy++ Support 2
mikea Using BDEBUGGER (and BREAKPOINT) Support 1
mikea BDEBUGGER/IDE questions Support 16
Y BDEBUGGER does not launch Support 8
P BDEBUGGER/IDE does not honour VariableExclude Support 2
P bdebugger / ide issues Support 1
Peter Bratton v10 IDE / bdebugger Support 10
B Keys in debug menu not working in bdebugger Support 1
B bdebugger doesn't load btm-file in window Support 1
B Bdebugger displays an error when typing right square bracket Support 2
S BDEBUGGER problem Support 0
Joe Caverly @SMWRITE invalid handle Support 8

Similar threads