Sunday, 23 May 2010

Customer getting "Problem Connecting to Server"


i got email customer complaining they're unable use app because time click on status item icon, error pops telling them "there problem connecting server 'rms'." customer says error pops once hour , when click on icon, when code i've posted below runs:

code:
- (void)updatemenu  {      nslog(@"updating.");            if (updatetimer && [updatetimer isvalid])      {          [updatetimer invalidate];      }            [statusmenu removeallitems];            updatetimer = [nstimer scheduledtimerwithtimeinterval:3600 target:self selector:@selector(updatemenu) userinfo:nil repeats:no];            //get list of devices attached.      mach_port_t     masterport;      kern_return_t   kr;      io_iterator_t   ite;      io_object_t     obj = 0;      cfmutabledictionaryref  properties;            kr = iomasterport(bootstrap_port, &masterport);      if (kr != kern_success)          printf("iomasterport() failed: %x\n", kr);            kr = ioregistrycreateiterator(masterport,                                    kioserviceplane,                                    true,              /*recursive */                                    &ite);            while ((obj = ioiteratornext(ite)))      {          kr = ioregistryentrycreatecfproperties(obj,                                                 &properties,                                                 kcfallocatordefault,                                                 kniloptions);                    if ((kr != kern_success) || !properties)          {              printf("ioregistryentrycreatecfproperties error %x\n", kr);          }                    else          {              cfnumberref percent = (cfnumberref) cfdictionarygetvalue(properties, cfstr("batterypercent"));              if (percent)              {                  //a lot of code don't think relevant omitted.              }                            else              {                  //the device being checked didn't have "batterypercent" property.              }          }      }      //a lot more code don't think relevant omitted... creates , adds nsmenuitems.  }  
i suspected "kioserviceplane" might have been issue, replaced "kiopowerplane", made special build user, told them delete version have , install special build in place, error continues occur.

suggestions causing problem? there way can update app still access battery information without causing error window show up? if not, suggestions how handle customer? should tell them i'm sorry, there's no way me fix issue, , should seek refund through apple?
 

it sounds local problem on computer. googled "there problem connecting server" , it's general os x error connecting server, because app still holding reference server.

"rms"? ask them if know is.

https://discussions.apple.com/thread/3712265 suggests it's related anti-virus.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment