#1 Burning Software

It is currently Thu Mar 28, 2024 2:21 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 9:53 am 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
Hi,

when installing VirtualDrive Pro http://www.farstone.com/software/virtualdrive-pro.php (tested on a WinXP machine), initialisation of StarBurnX works fine, but it hangs at the following piece of code:

Code:
for (int i = 0; i < BurningEngine.StarBurnEngine.Drives.Count; i++)
{
    try
    {
        Drive drive = BurningEngine.StarBurnEngine.Drives[i];
        ****bool supportsWrite = drive.DriveInfo.SupportedMediaWrite > 0;****
        ...
    }
}


The highlighted line never (waited for a few minutes) finishes.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 2:50 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Use SPTD to bypass broken filters they install. That's what SPTD was designed for.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 2:58 pm 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
Well...I am not going to use SPTD by default, since I don't want to add further dependencies unless necessary. I still don't trust SPTD, it can (and did in the past) also add issues instead of solving them.

So: If you say that with VirtualDrive Pro installed, StarBurn simply cannot be used in SPTI mode, that is fine with me and I can always tell the user to use SPTD instead, *but* my application needs a way to figure out that something is wrong. Hanging is not good. So is it possible that StarBurn, instead of not responding, can emit an exception? Or is it reasonable for my app to have a timeout for this property access?


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 7:50 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
No it's not what I say. It could be something inside StarBurn so it's a good idea to try STPD and if your user would continue having the same issue we'll be happy to take a look. Ether locally or with remote session.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 8:11 pm 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
anton (staff) wrote:
No it's not what I say. It could be something inside StarBurn so it's a good idea to try STPD and if your user would continue having the same issue we'll be happy to take a look. Ether locally or with remote session.


Nah, that's not my point ;)

Even assuming that it works fine for my user with SPTD (which is not necessary to check, because he already uninstalled VirtualDrive Pro), every other user with this software installed will also suffer from the issue. So in my app I need a reliable way to determine whether or not a conflicting app is installed and then advise to either use SPTD or uninstall other applications. So whether or not SPTD works fine with StarBurn, the SPTI access needs to be fixed in a way so that I either get an exception or a more or less valid response.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 8:19 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
If I'd write a filter driver just spinning some command forever would you suggest another app developer whose command we're spinning "fix" their application? How? And that's basically what you're suggesting us to do... SPTI is unreliable way to access hardware and that's why no serious commercial app uses it entirely. You may use it or not but telling us we need to "fix SPTI either way" is a little bit confusing.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 9:02 pm 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
Now you are confusing me:

I said:
Quote:
If you say that with VirtualDrive Pro installed, StarBurn simply cannot be used in SPTI mode


Then you said:
Quote:
No it's not what I say


Now you say
anton (staff) wrote:
If I'd write a filter driver just spinning some command forever would you suggest another app developer whose command we're spinning "fix" their application? How?


Sooo...is there a way to make StarBurn work properly with SPTI under the given conditions or is there not? As I said, if it cannot be fixed because VirtualDrive Pro messes up the system, I can live with it, but if it's possible to add a workaround for such cases, I'd like to have it.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 9:45 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) I cannot guarantee it's StarBurn or VDP issue. If it's StarBurn issue (the same things happen with "safe" SPTD layer) we'll fix it. It's not StarBurn issue - we cannot fix it. Right now SPTD is only the way to check.

2) We cannot workaround every broken software. We'll have a MESS inside our code. That's what SPTD is going to help with. Bypassing broken filters.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 10:04 pm 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
anton (staff) wrote:
1) I cannot guarantee it's StarBurn or VDP issue. If it's StarBurn issue (the same things happen with "safe" SPTD layer) we'll fix it. ... Right now SPTD is only the way to check.


OK, got it. Result: SPTD *does* work.

Quote:
It's not StarBurn issue - we cannot fix it.


Hm, I noticed that the older NMS SDK does not hang up though. Only StarBurn does. Don't get me wrong, I don't want you to write messy code, but if there is a non-messy fix, please consider it.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sat Nov 05, 2011 10:13 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Excellent! Could you please ship both versions (STPI Vs. SPTD) logs initially and we'll try to find out what we could do here.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Sun Nov 06, 2011 7:41 am 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
There you are.


Attachments:
StarBurn-SPTI-Hangs.zip [5.04 KiB]
Downloaded 1287 times
StarBurn-SPTD-Works.zip [5.31 KiB]
Downloaded 1319 times
Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Mon Nov 07, 2011 8:41 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
According to the log StarBurn does not hang. It's just trying to get virtual device properties and emulator completes command with I/O device error (Windows code 1117). So we're trying again and again as this command is not supposed to fail until it does not reach maximum limit (5000 iterations). Unfortunately there's no way to turn off this is control number of retries (we don't have such an API as these values are hardcoded) so we'll take a closer look later - I think we can fix this some way.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Mon Nov 07, 2011 8:47 am 
Offline

Joined: Sun Jun 14, 2009 6:00 pm
Posts: 542
Great, thanks. 5000 tries might indeed not "hang forever", but long enough to assume the application needs to be closed using the task manager.


Top
 Profile  
 
 Post subject: Re: Incompatibility with VirtualDrive Pro
PostPosted: Mon Nov 07, 2011 9:08 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Nope... It's VERY fast in normal conditions (less then 1 second) it's just VDP who also delayes every command for quite a time.

flöle wrote:
Great, thanks. 5000 tries might indeed not "hang forever", but long enough to assume the application needs to be closed using the task manager.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group