labelled common (None Specified)
At 01 OCT 1999 08:28:03PM David Pittard wrote:
My system crashes immediately that the debugger is called when a program has more than eleven labelled common statements in it. My Program has the following (either as an inset or in the program itself):
common /file/ openvar, f.var
common /file1/ openvar1,f.var1
…..
……
common /file10/ openvar10, f.var10
and works fine but as soon as I add another common statement any call to the debugger halts the system with the error:
oengine
An error has occurred…
and then the windows message:
oengine.This program has performed an illegal operation…
I then have to restart my computer.
NB I can add other common variables onto any of these lines without a problem it is the adding of a further common statement that causes the problem.
Is this a known problem? and is there a way around it? Also the program works fine as long as the debugger is not called.
At 03 OCT 1999 03:20PM [email protected] - [url=http://www.sprezzatura.com]Sprezzatura Group[/url] wrote:
Yeah, this is a known problem. Basically, you get one 'fake' GPF for each labelled common. Keep clicking ignore 11 times and you'll be fine through the debugger. Just don't try and look at one and you can keep running.
At 06 OCT 1999 01:48AM David Pittard wrote:
Thanks for the tip Aaron. It does work to a certain extent, however I get more than one error for each common so clicking 'Ignore' is fine so long as you only have 12-15 common staements. However any more than this and I couldn't seem to continue (after circa 100 ignores I gave up !). So I thought I'd put lots of common variables in one common statement but I then experienced both compile time and run time problems.
1.If you are allowed up to 255 variables in one common statement does it work? and
2.how do you do it ?
3.Is there a line continuation character that the compiler recognises so that the common statement can be spread over more than one line?
or 4.is this another known problem ?