Fixed Closing TCMD while IDE + Help Open = Crash

May 9, 2013
40
0
#1
Steps:
  1. Start TCMD
  2. Launch IDE (e.g. IDE myfile.btm)
  3. In IDE, press F1 (opens help)
  4. Click on TCMD
  5. Press the close button
  6. BOOM...
NOTE: running Windows 7 & 8 x64 on both
 
#2
Steps:
  1. Start TCMD
  2. Launch IDE (e.g. IDE myfile.btm)
  3. In IDE, press F1 (opens help)
  4. Click on TCMD
  5. Press the close button
  6. BOOM...
Just as he says!
Code:
TCC  15.01.42
Module=C:\Windows\system32\KERNELBASE.dll
Address=7523D36F
Exception=E06D7363
EAX=0A01F7C4  EBX=609B9EA4  ECX=00000003  EDX=00000000
ESI=037F54E8  EDI=00000000  EBP=0A01F814  ESP=0A01F7C4
CS=0000001B  DS=00000023  ES=00000023  SS=00000023
Flags=00000212
 
Stack:
1 : KERNELBASE.dll 0001:0000c36f
2 : MSVCR110.dll 0001:00018863
3 : mfc110u.dll 0001:00206375
4 : mfc110u.dll 0001:0008a0f0
5 : mfc110u.dll 0001:0015d9ad
6 : mfc110u.dll 0001:0016c3df
7 : mfc110u.dll 0001:0016c4d7
8 : mfc110u.dll 0001:0015d91d
Another oddity ... if I issue "IDE" and then (in IDE) press F1, I get the "Overview" page of the help. If I issue "IDE existing.BTM" and press F1 (in IDE) I get (in the help) "This program cannto display the web page". Ditto for the BDEBUGGER command. If the specified file does not exist (IDE or BDEBUGGER) F1 opens the "Overview" page.
 

rconn

Administrator
Staff member
May 14, 2008
10,614
97
#3
Steps:
  1. Start TCMD
  2. Launch IDE (e.g. IDE myfile.btm)
  3. In IDE, press F1 (opens help)
  4. Click on TCMD
  5. Press the close button
  6. BOOM...
NOTE: running Windows 7 & 8 x64 on both

Not reproducible here (Windows 7 x64 and Windows 8 x64, with both the 32-bit and 64-bit versions of TCMD). IDE.EXE is running in a separate process, and doesn't care if TCMD is running.

The help is actually Microsoft's and part of IE -- what version of IE are you running?
 

rconn

Administrator
Staff member
May 14, 2008
10,614
97
#4
Another oddity ... if I issue "IDE" and then (in IDE) press F1, I get the "Overview" page of the help. If I issue "IDE existing.BTM" and press F1 (in IDE) I get (in the help) "This program cannto display the web page". Ditto for the BDEBUGGER command. If the specified file does not exist (IDE or BDEBUGGER) F1 opens the "Overview" page.
WAD -- F1 in the debugger displays help for the command on the current line. If there isn't anything (blank line or empty file) it will display the overview. If you have an unknown command (i.e., something not in the help file), it displays "cannot display the web page".

The help in the debugger has always behaved this way.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,650
46
Albuquerque, NM
prospero.unm.edu
#5
WAD -- F1 in the debugger displays help for the command on the current line. If there isn't anything (blank line or empty file) it will display the overview. If you have an unknown command (i.e., something not in the help file), it displays "cannot display the web page".
Couldn't you could add a redirect for IDE, as MKDIR redirects to MD, or ERASE to DEL?
 
#6
Couldn't you could add a redirect for IDE, as MKDIR redirects to MD, or ERASE to DEL?
I don't think it's that simple. Rex said it looked for help on the first line no doubt because the first line is the current line when you first start IDE. It's good that F1 give help for the current line. In my test, the first line of the file was a ":: comment" line. Even if it ignored the "::" it wouldn't have found anything "help-worthy".
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,650
46
Albuquerque, NM
prospero.unm.edu
#7
I don't think it's that simple. Rex said it looked for help on the first line no doubt because the first line is the current line when you first start IDE. It's good that F1 give help for the current line. In my test, the first line of the file was a ":: comment" line. Even if it ignored the "::" it wouldn't have found anything "help-worthy".
Sorry; I didn't read that closely enough.

Still, I do think it would be nice if HELP IDE would open the page for BDEBUGGER.
 

rconn

Administrator
Staff member
May 14, 2008
10,614
97
#8
After some more experimentation I was able to reproduce the problem on one system. However, it doesn't have anything to do with HELP or F1, it's an issue with the IDE throwing an error when the TCMD parent process exits.

Not sure if I can do anything about it (it's in the VC++ RTL code), but I'll poke around a bit and see what I can find.