|
Post by bbt32465 on Apr 6, 2008 0:27:46 GMT -5
i don't know if this qualifys as a bug.
earlyer yesterday i was working on a program to run RB as a service. and when ever the service would execute the command "c:\rbp.exe c:\rbp\rb.im" the server would start but the settings would be set to default (port, user name, password, etc) but when RB is started normally everything is normal. so i ran a couple of tests and found out the service was calling RB with the ShellExecute command. I found a way around this by using cmd commands(cmd /c cd c:\rbp && start rbp.exe rb.im). so i guess RB wont start unless it is being called from its dictionary.
|
|
|
Post by StefanPendl on Apr 6, 2008 7:38:32 GMT -5
If you set up a service, you will have to define the working folder too, as you do when you create a shortcut on the desktop.
|
|
|
Post by bbt32465 on Apr 7, 2008 2:04:15 GMT -5
I did not create the service program as i would of foreseen this problem. I used a program called srvany witch allows you to run programs as services. This is a handy little tool offered with widows server. support.microsoft.com/kb/137890What i was saying is that when RB is called with ShellExecute using this path "c:\rbp.exe c:\rbp\rb.im" or "c:\rbp.exe" "c:\rbp\rb.im" the settings reset. When RB is called from the run box in the start menu using that string every thing is normal. I just don't see a reason for that to happen for instince if i where to call LB this way "D:\Program Files\Liberty BASIC v4.03\run403.exe" D:\Program Files\Liberty BASIC v4.03\Freeform303.tkn" everything would be normal.
|
|