Stefan, > pText = HB_FUN_WIDETOANSI (pAdapterInfo->Description); on runtime I get Unrecoverable error 9023: hb_xgrab requested to allocate zero bytes > That means that pAdapterInfo->Description contains a zero length string, thats why hb_xgrab() fails when it is requested to allocate ...