Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Raj on November 04, 2008, 07:34:59 AM

Title: Exception during paring
Post by: Raj on November 04, 2008, 07:34:59 AM
Hi Mike,

During paring through Microsoft Bluetooth driver, I am getting this error.

Please suggest me something.

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Title: Re: Exception during paring
Post by: Mike Petrichenko on November 04, 2008, 11:39:18 AM
it may appears because invalid PIN. Use Try/catch to catch the exceptions and check it.
Title: Re: Exception during paring
Post by: Raj on November 05, 2008, 09:19:16 AM
Hi Mike,

I am calling wclFTPClient.dir() from the wclFTP_DirCompletedEvent()

but the wclOBEXDirCompleteEventArgs is not changing. Please suggest me something.

wclOBEXDirCompleteEventArg returns the same file listing every time. What may be the problem ?

Title: Re: Exception during paring
Post by: Mike Petrichenko on November 05, 2008, 09:23:09 AM
It works completly correct. You are in directory and call Dir method to list files in this directory. After listing done (inside event handler) you call Dir again and get the listing in the same directory again. So it will never change.
Title: Re: Exception during paring
Post by: Raj on November 05, 2008, 09:36:42 AM
Inside event handler I am doing.

1> Set the path.
2> Set a flag.

In the operationcompleted event calling dir again.

according to the flag doing something and as I have set the path previously now dircompleted event handler should return the new list of files and folders.


Title: Re: Exception during paring
Post by: Mike Petrichenko on November 05, 2008, 10:14:08 AM
Yes, if setpath operation completes with WCL_ERROR_SUCCESS then dir will return new list, otherwise the path is not changed.
Title: Re: Exception during paring
Post by: Raj on November 05, 2008, 10:36:15 AM
thanks for your support, I have resolved the problem.

I am not setting the path correctly :(
Title: Re: Exception during paring
Post by: Mike Petrichenko on November 05, 2008, 11:01:09 AM
You are welcome!
Title: Re: Exception during paring
Post by: Raj on November 11, 2008, 03:58:57 PM
Hi Mike,

Why the file count is returned 0 sometimes for an connected device.
However when I restart the application then the file count > 0

Can you suggest me the possible error.
So that I can resolve.
Title: Re: Exception during paring
Post by: Mike Petrichenko on November 11, 2008, 04:05:33 PM
May be your application changes current directory and the new one is empty?
Title: Re: Exception during paring
Post by: Raj on November 19, 2008, 03:23:43 PM
No my application does not changes any directory. I am making the array list of current file path, and the array list is showing me the correct path.
Title: Re: Exception during paring
Post by: Mike Petrichenko on November 19, 2008, 03:36:50 PM
Show your code which works with directories.