Sorry for my bad English, I want to place sample and some screenshots to illustrate what about I'm thinking.
First - Run this sample in debugger mode:
Code: Select all
/*
* HMG - Harbour Win32 GUI library
* Copyright 2002-2008 Roberto Lopez <mail.box.hmg@gmail.com>
* http://www.hmgforum.com//
*/
#include "hmg.ch"
Function Main()
set century on
set date ital
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
MAIN;
TITLE 'Test'
@ 30,70 BUTTON Button_1 CAPTION "Run test" WIDTH 200 HEIGHT 50 ACTION CallForm2()
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
*--------------
FUNCTION CallForm2
DEFINE WINDOW Form_2 ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
TITLE 'second window...';
MODAL
@ 10,10 LABEL LABEL_1 VALUE "This is only label..."
@ 30,70 BUTTON Button_1 CAPTION "CALL DEBUGGER ALTD()" WIDTH 200 HEIGHT 50 ACTION TestLabelValue()
END WINDOW
CENTER WINDOW Form_2
ACTIVATE WINDOW Form_2
return
*--------------
function TestLabelValue
altd()
// close form_2 manually before next step!
msgbox(Form_2.Label_1.Value)
return
Call second window and press button to call TestLabelValue() function
This function recalls debugger
( links below contains pictures illustating situations - I can't place these screenshots in another way now...)
https://dysk.onet.pl/link/Vck6R#
Now - close Form_2 window by clicking X
https://dysk.onet.pl/link/K402d
And now - Use GO function in debugger
https://dysk.onet.pl/link/7qP0S
Debugger crashes because manipulating with application forms is allowed...
It's only programmer problem, but, would be fine if such a situation could be disabled