Przemek >>> Why don't you want to store such unique ID in WA structure and then simply use it? <<<
I intend to keep the generated number from ( ThreadID() * MAX_WA_NUM + nWA ) in MY_WADATAINIT() structure. My questions was how I am generating this number is ok or not. OR I can have a RDD wide static s_nWA and increase it whenever new table is opened, of cource guarded with mutexes, and store it in MY_WADATAINIT()[ MY_NWA ]. <<< You are introducing solutions which at beginning creates limitations. Have you thought what will happen when WA will be accessed by other thread? What about hb_dbDeatach()/hb_dbRequest()? >>> I was aware of this fact and now it is spretty much easier to simulate the unique wa without compromizing the natural functionality. Thanks for guidelines. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/MT---WorkAreas---A-Feature-Request-tp20268713p20309266.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour