Page 1 of 1

Problem console not closing

Posted: January 22nd, 2008, 7:55 am
by xyanide
Hi, i`ve got a problem with sabnzbd+ (0.3.0).

When i start the program the console window won`t close automatically, it opens the browser window perfectly and it all works fine.
But the window just won`t close.
The sabnzbd.log doesn`t show any strange things.

I`m using Windows XP 32 bit.

Thanks in advance.

Re: Problem console not closing

Posted: January 22nd, 2008, 9:01 am
by switch
I made a version of sabnzbd with more logging around the window closing code to try and debug this issue.

If you private message me your email address I can send it to you.

Re: Problem console not closing

Posted: January 22nd, 2008, 9:07 am
by xyanide
message sent.

Re: Problem console not closing

Posted: January 23rd, 2008, 10:23 am
by vankwish
I too am having this problem  ;D


I am running vista 32bit ult, i used the win32 setup to install sab, i changed the port to 8181, i have firefox as my default browser and sab set to auto open and i have the new nod32 smart security programme running if it is of any help.

Re: Problem console not closing

Posted: January 25th, 2008, 2:38 pm
by jp22382
I'm running Vista 32-bit and was having this problem occasionally.

I set it up to run as a service instead (which is working great in 0.3.0 btw!) and no more problem.

Re: Problem console not closing

Posted: January 29th, 2008, 3:31 pm
by rabhw
Same issue on 0.3.0, Vista 32.

The program starts and works great, the console won't hide itself though. It seems to work occasionally but most of the time it stays open.

Nothing abnormal in the logs that I could see.

Re: Problem console not closing

Posted: January 29th, 2008, 3:40 pm
by switch
What is the name of the console window? __SABnzbd__?

There will likely be a fix for this soon, it just requires a lot of testing.

Re: Problem console not closing

Posted: January 29th, 2008, 4:24 pm
by rabhw
Yeah, when it doesn't close, the name of the console window is __SABnzbd__ .

Re: Problem console not closing

Posted: January 29th, 2008, 4:28 pm
by nzb_leecher
i have it too

Re: Problem console not closing

Posted: January 29th, 2008, 4:33 pm
by switch
May just need a small delay between naming the window __SABnzbd__ and hiding it.

The new hiding implementation was made quite quickly after we discovered the reason why the old one would sometimes fail. Was tested, but works fine on our systems.

We are testing out compiling the exe without the need for a console window at all, still needs to be tested thoroughly.
Sorry for the annoying window, we shall try to get this fix out as soon as it is fully tested.

Re: Problem console not closing

Posted: January 29th, 2008, 4:50 pm
by rabhw
Is there some sort of modification I could do to a batch file for startup that could work in the meantime?

Thanks for the support, looking forward to the next release.

Re: Problem console not closing

Posted: January 29th, 2008, 4:54 pm
by switch
You could use this vbs script I use to hide the sab console when running from source.

Create a text file, copy+paste, change the path on the last line to that of your exe, and save as a .vbs file (make sure it is not .vbs.txt the icon should be a blue script)

Code: Select all

Const HIDDEN_WINDOW = 12

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objStartup = objWMIService.Get("Win32_ProcessStartup")

Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = HIDDEN_WINDOW
Set objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")
errReturn = objProcess.Create("C:\path\to\sabnzbd.exe", null, objConfig, intProcessID)
(Only tested on XP)

Re: Problem console not closing

Posted: January 29th, 2008, 5:04 pm
by rabhw
Awesome, that worked on Vista-32.

Re: Problem console not closing

Posted: January 30th, 2008, 4:04 pm
by daddy_fizz
Sweet, will try this out.

~fizz

Re: Problem console not closing

Posted: February 2nd, 2008, 7:36 pm
by danysuri
Awesome, that worked.