Resource Busy (when enabling hardware log)

Supporting Visual Studio on Windows
nm17
Phidgetly
Posts: 15
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Resource Busy (when enabling hardware log)

Postby nm17 » Thu Nov 30, 2017 6:18 am

Hi all

I am getting constantly "Resource Busy" Phidgets Exception (0x9) when trying to set-up hardware logging. This is with Phidget22, it used to run fine with Phidget21.

Any ideas why is this happening (it's right before or after I instantiate phidget classes, I get error regardless)?

This is the offending line if it helps:
Phidget22.Log.Enable(LogLevel, "c:\\folder\\log.txt");

Also, what is the recommended/proper way to check if the device is busy before issuing commands?

Thanks

User avatar
mparadis
Site Admin
Posts: 626
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Resource Busy (when enabling hardware log)

Postby mparadis » Fri Dec 01, 2017 1:02 pm

In this context, the "Busy" error is referring to the log file. It's possible that the file is open in another program. If you don't think you have it open in another program, try logging to an entirely new file just with this one program and see if it still gives the error.


Return to “C#.NET”

Who is online

Users browsing this forum: Google [Bot] and 2 guests