Just BASIC Programming
Using Just BASIC >> Distributing your Just BASIC applications >> VVMT31W.DLL and VVM31W.DLL still open
http://justbasic.conforums.com/index.cgi?board=distribution&action=display&num=1436142976

VVMT31W.DLL and VVM31W.DLL still open
Post by Snewburn on Jul 5th, 2015, 7:36pm

Created a distribution package to test on another computer. Everything works great. But when I tried to delete the program files everything would delete except for VVMT31.DLL and VVM31W.DLL and the renamed Jbrun.exe.

the tkn file, the image files I used and everything else I could delete.

but the error message said that these files were still open.
and once I rebooted the computer I could delete those files.

is there something wrong with my programing?
do I need to close these files with a command?

cheers
Re: VVMT31W.DLL and VVM31W.DLL still open
Post by tsh73 on Jul 6th, 2015, 01:28am

did your program ectually ended with END in a trapclose statement or did you just close all windows (with a mouse), actually leaving it running?

EDIT
with TRAPCLOSE
says "on closing window, go [quit]. There, close window and END the program"
Code:
nomainwin
open "test" for window as #main
#main "trapclose [quit]"

wait

[quit]
    close #main
    end
 

Without trapclose - your close window but EXE stil running (so you cannot delete it until kill it with task manager)

Code:
nomainwin
open "test" for window as #main

wait
 

Re: VVMT31W.DLL and VVM31W.DLL still open
Post by Snewburn on Jul 6th, 2015, 7:18pm

That was it

thanks