when i create a graphic window then have some kinda loop afterwards running, as long as the program flow is directed to the end of the code the program exits correctly. but if i click on the close button or click on the top left icon then close the graphic window goes away and the taskbar entry goes away like its supposed to but if i hit control alt delete and launch task manager and look at running processes the executable still is running in memory. but like i said if the code runs to the end then this doesnt happen, it only doesnt work when i click on close button.
the code snippet below shows problem. as long as you hit the escape key and exit the do loop the program exits correctly. but if you click on the close button at top right of window it doesnt clear itself from memory
i hope they fix that soon. thats a big bug....
code snipet:
FUNCTION PBMAIN () AS LONG
GLOBAL system AS system_type
LOCAL temp AS STRING
system.id_textbox=100
GRAPHIC WINDOW "Box", 50, 50, 300, 300 TO system.hWin
GRAPHIC ATTACH system.hWin, 0
GRAPHIC BOX (10, 10) - (200, 200), 0, %BLUE
DO
GRAPHIC INKEY$ TO temp
SELECT CASE temp
CASE CHR$(27)
EXIT DO
CASE " " TO "~"
GRAPHIC PRINT temp;
CASE CHR$(13)
GRAPHIC PRINT
END SELECT
LOOP
GRAPHIC WINDOW END
END FUNCTION
the code snippet below shows problem. as long as you hit the escape key and exit the do loop the program exits correctly. but if you click on the close button at top right of window it doesnt clear itself from memory
i hope they fix that soon. thats a big bug....
code snipet:
FUNCTION PBMAIN () AS LONG
GLOBAL system AS system_type
LOCAL temp AS STRING
system.id_textbox=100
GRAPHIC WINDOW "Box", 50, 50, 300, 300 TO system.hWin
GRAPHIC ATTACH system.hWin, 0
GRAPHIC BOX (10, 10) - (200, 200), 0, %BLUE
DO
GRAPHIC INKEY$ TO temp
SELECT CASE temp
CASE CHR$(27)
EXIT DO
CASE " " TO "~"
GRAPHIC PRINT temp;
CASE CHR$(13)
GRAPHIC PRINT
END SELECT
LOOP
GRAPHIC WINDOW END
END FUNCTION
Comment