ok, I get your idea.nNow first you need to do the replacement I mentioned in the above. This is to get the thread ID ...nnI am not sure when does you get this error .. is it when initialising? when you start simulation? or just after load?.if it is during simulation, add this line in the function before the if ... just after getting zone id nMessage(selected zone id %d, zone_ID);nMake sure you are getting the right id before proceeding.nn