Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Check if cpDevice is valid
30-01-2015, 08:15 PM (This post was last modified: 30-01-2015 08:28 PM by ChriD.)
Post: #1
[Solved] Check if cpDevice is valid
Hi,

Ive got some Problem checking if the cpDevice is valid.
Assume i found some upnp devices. Then the UPNP devices are going offline without saying "byebye". The CPDevice wont be "removed" because "onDeviceLost" is not triggered.

How do i check if this device/service is valid? If i do actions on this device of course i get exceptions! (dont no what kind of, it ist says "abort()")
Or how can i catch this "iError" exceptions?

EDIT: Okay exceptions are OpenHome::Exceptions

Code:
void SyncProxyAction::Wait()
{
    iSem.Wait();
    if ((Error::ELevel)iError.Level() != Error::eNone) {
        throw(iError);
    }
}

Thanks for Info Blush

Okay... i do not really need this validation if i can catch the exceptions!
Find all posts by this user


Forum Jump: