Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
OTRcv -> -3179; OTLook -> 4 LOOP! Damn :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OTRcv -> -3179; OTLook -> 4 LOOP! Damn :(



Good day.
Please HELP!
All is going well in my OT notifier routine: all but the T_DATA code. The
machine just sticks in it, sometimes, and here's what i logged:

cont: 96417072, code: 4 - T_DATA, rslt: 0, cook: 96326324 state 5 - T_DATAXFER
OTRcv: -3179
OTLook: 4
OTRcv: -3179
OTLook: 4
OTRcv: -3179
OTLook: 4
...
(i think you got it)

the code is as follows:

case T_DATA:
while ((osStatus = OTRcv(ncPtr->ep,
&ncPtr->buffer[cnt = strlen(ncPtr->buffer)],
1024-strlen(ncPtr->buffer),
&otFlags)) != kOTNoDataErr) {

DGBLog("OTRcv: %i", osStatus);
if (osStatus >= 0) {
cnt += osStatus;
ncPtr->buffer[cnt] = 0;
// DATA HANDLING CUT! - ncPtr->buffer gets free
} else {
if (osStatus == kOTLookErr) {
osStatus = OTLook(ncPtr->ep);
DGBLog("OTLook: %i", osStatus);
break;
} if (osStatus == kOTBadSyncErr) {
osStatus = OTLook(ncPtr->ep);
DGBLog("OTLook: %i", osStatus);
}
}
} break;

How can i debug this?
Thanks in advance!
Bon ` vous. AV




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.