Hi all, I'm getting error as below
Program received signal:
“EXC_BAD_ACCESS”. warning: check_safe_call: could not restore current frame
warning: Unable to restore previously selected frame. warning: Unable to restore previously selected frame.
my app is to get wifi information
libHandle = dlopen("/System/Library/PrivateFrameworks/ MobileWiFi.framework/MobileWiFi",RTLD_LAZY);
open = dlsym(libHandle, "Apple80211Open");
bind = dlsym(libHandle, "Apple80211BindToInterface");
close = dlsym(libHandle, "Apple80211Close");
scan = dlsym(libHandle, "Apple80211Scan");
open(&airportHandle);
bind(airportHandle, @"en0");
when the code reach open(&airportHandle)
, I received the error but i'm not sure because at this line it stops.
How can I resolve this?
thanks