I'm having one problem.
Code: Select all
- (void)RFIDTag:(unsigned char *)tag
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *myTag = [NSString stringWithFormat:@"%02x%02x%02x%02x%02x\n",tag,tag,tag,tag,tag];
When I try to setText with myTag I get a memory leak and a crash reported from the phidgets logging.
There error I get is:
2011-06-26 12:26:58.123 FPBAdmin[1888:6603] bool _WebTryThreadLock(bool), 0x64059b0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
It's working fine as long as I only use NSLog.
I assume the problem is a memory leak when converting between the unsigned char and NSString. In the MacOS version setWithMemnonic was used which isn't available in iOS. Can anyone point me in the right direction? Thanks in advance.