B4J Question B4J and process(620) error

Mvula

Member
Licensed User
Longtime User
Hi, has anybody found this error and manged to fix it?
Running b4j v 1.5, my programme runs fine, but when I want close B4J, I get this error as in Error620.jpg

The only way I can close B4J is through Windows Task Manager
Thanks
Mvula
 

Attachments

  • Error620.jpg
    Error620.jpg
    17.5 KB · Views: 180

Mvula

Member
Licensed User
Longtime User
Hi Erel
I made a file RunRlc.bat as under

rem windows 7 location
"C:\Program Files (x86)\Java\jdk1.7.0_13\bin\java.exe" -Xmx256m -cp .;libs\*;jdbc_driver\* anywheresoftware.b4a.remotedatabase.RemoteServer
pause


using the example shown in

http://www.b4x.com/android/forum/threads/b4j-dos-shell.36515/#post-214567
'shl.Initialize("shl", "cmd.exe", Array As String(cRunRLCPath,cRunRLC))

and changing the above line to

shl.Initialize("shl", "RunRLC.bat", Array As String("/c", "start"))
shl.Run(-1)

both it and the B4J program run perfect except that possibly because it is running as a shell, the only way to close my B4J programme is to use windows task manager.
The shell still runs in the back ground as is invisible.
What I then did was to re open my B4J programme and comment out
'shl.Initialize("shl", "RunRLC.bat", Array As String("/c", "start"))
'shl.Run(-1)

and everything is OK.

Maybe the best way is for me not to run RunRLC.bat from the B4J programme, but to run it in
Windows - Startup, in which case RunRlc.bat is only started once when the computer initially starts.
This method also works fine,
except would it be possible to hide / make invisible the command prompt as appearing in RunRLC.jpg?

Thanks
Mvula
 

Attachments

  • RunRLC.jpg
    RunRLC.jpg
    123.1 KB · Views: 183
Upvote 0

Mvula

Member
Licensed User
Longtime User
Thanks Erel
All works fine.
I will just have to manually minimise RunRLC.bat after the computers initial start up
Mvula
 
Upvote 0
Top