COM example DSLINES fails...

COM example DSLINES fails...

I built DSLINES.EXE in DEVstudio and ran it from the command line using

dslines.exe testfile.for $ DEBUG

MSDEV opened, with testfile.for opened in a window, cursor at the start of the first line. Nothing else happened.

The DOSBOX message, after a while, was

Unable to get ITextSelection object; Aborting; OLE error status = 0x80029C4A; A
borting

MSDEV was left opened after the DOS box closed.
(I had to freeze the box by inserting a 'pause' in the exit routine code in order to save the text)

What's happening?

The testfile.for consists of

$DEBUG
PROGRAM TESTSOMETHING
C
SOME CODE
SOME CODE
SOME CODE
SOME CODE
$DEBUG
SOME CODE
END

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.