Sharing violation in IDE

May 20, 2008
11,288
95
Syracuse, NY, USA
Try this.

TOUCH /C test.bat
BDEBUGGER test.bat

In the IDE,

add the line ECHO foo
press the "start" button
press the "stop" button
edit the line (say, ECHO bar)
press the "start" button

---------------------------
IDE 11.0
---------------------------
Encountered a sharing violation while accessing v:\test.bat.
---------------------------
OK
---------------------------
 
May 20, 2008
11,288
95
Syracuse, NY, USA
There has been no response so let me try again.

Open any .BAT file with BDEBUGGGER. Click "Start", click "Stop", click "Save" ... sharing violation. The same applies to the sequence Start, Stop, Edit, Start. That makes it pretty hard to edit and debug BAT files.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
vefatica wrote:
| There has been no response so let me try again.
|
| Open any .BAT file with BDEBUGGGER. Click "Start", click "Stop",
| click "Save" ... sharing violation. The same applies to the
| sequence Start, Stop, Edit, Start. That makes it pretty hard to
| edit and debug BAT files.

I have only .BTM files, no .BAT files. I tried the first sequence (without
Edit) above, both without actually executing any commands and also by
executing the first command before I clicked "Stop debugging" (which I am
sure is what you meant by Stop"). No violations. Maybe it is particular to
.BAT files, which must be executed by reading each line from disk to
execute, as .BAT files are permitted to modify themselves, and which may
force the IDE to read and close the file once for displaying and editing,
and separately for execution, and have it already open to read the next line
at the time you select "Save", resulting in the sharing violation. However,
all this is just speculation on my part. Have you tried .BTM files?
--
Steve
 
May 20, 2008
11,288
95
Syracuse, NY, USA
On Sat, 02 Jan 2010 13:59:15 -0600, Steve Fábián <> wrote:

|vefatica wrote:
|| There has been no response so let me try again.
||
|| Open any .BAT file with BDEBUGGGER. Click "Start", click "Stop",
|| click "Save" ... sharing violation. The same applies to the
|| sequence Start, Stop, Edit, Start. That makes it pretty hard to
|| edit and debug BAT files.
|
|I have only .BTM files, no .BAT files. I tried the first sequence (without
|Edit) above, both without actually executing any commands and also by
|executing the first command before I clicked "Stop debugging" (which I am
|sure is what you meant by Stop"). No violations. Maybe it is particular to
|.BAT files, which must be executed by reading each line from disk to
|execute, as .BAT files are permitted to modify themselves, and which may
|force the IDE to read and close the file once for displaying and editing,
|and separately for execution, and have it already open to read the next line
|at the time you select "Save", resulting in the sharing violation. However,
|all this is just speculation on my part. Have you tried .BTM files?

It doesn't happen with BTM files. I usually use "BAT". In any case, "Stop
debugging" should leave the file editable.
--
- Vince
 
Jun 2, 2008
350
3
Try this.

TOUCH /C test.bat
BDEBUGGER test.bat

In the IDE,

add the line ECHO foo
press the "start" button
press the "stop" button
edit the line (say, ECHO bar)
press the "start" button

---------------------------
IDE 11.0
---------------------------
Encountered a sharing violation while accessing v:\test.bat.
---------------------------
OK
---------------------------

There has been no response so let me try again.

Open any .BAT file with BDEBUGGGER. Click "Start", click "Stop", click "Save" ... sharing violation. The same applies to the sequence Start, Stop, Edit, Start. That makes it pretty hard to edit and debug BAT files.

Same here on XP SP2.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
TCC 11.00.37 Windows XP [Version 5.1.2600]

Tried your test with both a .BTM and a .BAT file. The sharing violation is
unique to the .BAT file. The same actions are OK with a .BTM file!

My earlier post postulated that the problem may be unique to .BAT files.
Alas, my test shows that the problem also exists for .CMD files. The same
explanation, of course, applies to .CMD files as well.

For my test I used a single file, using hard links, so it could be tested as
.BTM, .BAT, and .CMD.

Vince, why do you still use .BAT files? I have none!

Rex, when I edited the file in BDEBUGGER / IDE, the edited file was saved as
a new file with the old name. The hard links were not preserved. Why did
this occur? Note that I have no editor linked to the IDE, it uses the
default editor.

Good luck migrating the webserver!
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
T Lua sharing data with batch files Support 2
C sharing global histories between different TCMD versions? Support 5
vefatica TPIPE access violation again Support 1
vefatica TPIPE: Access violation Support 5
T Access violation upon TC startup Support 2
Kachupp IDE watch references Support 4
T Thanks for the assistance with IDE vs Bdebugger Support 3
vefatica IDE external command syntax color? Support 1
K_Meinhard Small problem in german IDE 26 Support 3
vefatica IDE - when breakpoint is on a blank line? Support 3
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
Peter Murschall IDE: Ctrl-W is a Harakiri Command ! Support 23
Kachupp ide/bdebugger Support 17
rps IDE/BDEBUGGER ? Support 1
vefatica IDE.EXE's command line? Support 19
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
vefatica IDE stuck on "Insert tabs as spaces" Support 0
Peter Murschall IDE/BDEBUUGER in TCC 22 didn't run Support 7
T Fixed Problem with use of Batch parameters in the IDE Support 1
T Fixed IDE locks up if edit window for running batch is closed Support 6
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
C BDEBUGGER/IDE crashing Support 1
vefatica Monospace font in IDE? Support 3
vefatica IDE crashes every time Support 6
R TCC IDE Tabs - inactive tabs hard to see Support 14
vefatica IDE crashing Support 11
vefatica Why doesn't "IDE %_ININAME" work? Support 4
vefatica IDE's dynamic help ... Support 0
vefatica Contuing IDE gripes Support 11
vefatica WAD IDE, output window to foreground Support 3
vefatica Fixed IDE weirdness Support 3
vefatica IDE double-click select? Support 29
vefatica Doesn't IDE auto-indent? Support 3
T bdebugger / ide usage confusion Support 14
vefatica Fixed Font corruption in IDE Support 3
vefatica IDE status bar row/column? Support 0
vefatica An IDE anomaly Support 2
T Associating BTM files with IDE results in DOS box Support 33
S WAD IDE /C does not accept truename of future file Support 13
S How to? Is it possible for the IDE to start without plugins? Support 3
S Documentation "HELP IDE" - missing reference Support 0
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
jwiede ide.exe not launching? Support 13
F No ide.exe or tcmd.exe files - Win7 64bit Support 5
T Syntax highlighting in the IDE Support 8
Frank watch an array variable in ide/bdebugger Support 2
Peter Murschall Is IDE forbidden in TCSTART.BTM ? Support 4
rfaquino TCMD 14.0 IDE Crash Support 7
epement differences in IDE/debugger between v12 and v14 Support 1

Similar threads