strange behaviour or expected?

Started by braxtonrivers, July 27, 2018, 11:31:34

Previous topic - Next topic

braxtonrivers

Hi,

The following small sample results in the following message being displayed in the output window
'Process terminated'

However if you remove the comments from the 'Framework and 'Graphics lines it then runs as expected.

It also runs as expected with the While and Wend loop lines commented, is there something I am missing or should I file a report?

I am using the latest bcc 0.96 and bmk 3.25 from Brucey's git repository it occurs in x86 and x64 on windows in both release and debug mode.

Thanks in advance
Braxton

'-- sample.bmx --
SuperStrict

'Framework brl.glmax2d
Import brl.standardio
Import brl.polledinput
Import brl.systemdefault

'Graphics 800,600

Print "starting..."
While Not KeyHit(KEY_ESCAPE)
Wend
Print "ended successfully"
End

col

I'd expect to see that when developing.

The editor output window will still have the keyboard focus when you omit the Graphics command. The editor will pick up the escape key and terminate the application early.

Technically its a 'corner case issue' in the editor itself and I wouldn't worry about it.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

braxtonrivers

Hi col,

thank you very much, that makes sense.

Thanks
Braxton