Resource Busy (when enabling hardware log)

Supporting Visual Studio on Windows
Post Reply
nm17
Phidgeteer!
Posts: 53
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Resource Busy (when enabling hardware log)

Post by nm17 »

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: 660
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Resource Busy (when enabling hardware log)

Post by mparadis »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests