Author Topic: Exception during paring  (Read 12014 times)

Raj

  • Guest
Exception during paring
« 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))

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #1 on: November 04, 2008, 11:39:18 AM »
it may appears because invalid PIN. Use Try/catch to catch the exceptions and check it.

Raj

  • Guest
Re: Exception during paring
« Reply #2 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 ?


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #3 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.

Raj

  • Guest
Re: Exception during paring
« Reply #4 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.



Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #5 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.

Raj

  • Guest
Re: Exception during paring
« Reply #6 on: November 05, 2008, 10:36:15 AM »
thanks for your support, I have resolved the problem.

I am not setting the path correctly :(

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #7 on: November 05, 2008, 11:01:09 AM »
You are welcome!

Raj

  • Guest
Re: Exception during paring
« Reply #8 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #9 on: November 11, 2008, 04:05:33 PM »
May be your application changes current directory and the new one is empty?

Raj

  • Guest
Re: Exception during paring
« Reply #10 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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Exception during paring
« Reply #11 on: November 19, 2008, 03:36:50 PM »
Show your code which works with directories.

 

Sitemap 1 2 3 4 5 6 7