I don't think they point to a common issue. Also, note that STAF itself is multi-threaded application and its services that submit STAF service requests are multi-threaded. So, we have no problems using STAF in a multi-threaded way.
As I showed you in my previous example, I have no problem saving a STAFString into a STAFString that is in a struct. So, my guess is you are doing something wrong. But, without your code, I can't say what. You can get RC 5 (Handle Does Not Exist) with error message "HandleManager::updateTimestamp() failed to update handle <Handle#> when trying to submit a STAF service request using a STAF handle that does not exist on the machine that is submitting the STAF service request. In the example below , I created a static STAF handle on my local machine and then I can then successfully submit a STAF service request with it. However, if this STAF handle is deleted and then I try to submit a STAF service request using it, it will fail with RC 5 (Handle Does Not Exist). C:\>STAF local HANDLE CREATE HANDLE NAME MyHandle Response -------- 19 C:\>set STAF_STATIC_HANDLE=19 C:\>STAF local PING PING Response -------- PONG C:\>STAF local HANDLE DELETE HANDLE 19 Response -------- C:\>STAF local PING PING Error submitting request, RC: 5 Additional info --------------- HandleManager::updateTimestamp() failed to update handle 19 C:\>set STAF_STATIC_HANDLE= C:\>STAF local PING PING Response -------- PONG So, my guess is that you're not using a valid existing STAF handle when you get this error. -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 From: "Dedhia, Hardik" <hardik.ded...@netapp.com> To: <staf-users@lists.sourceforge.net>, Sharon Lucas/Austin/IBM@IBMUS, Date: 08/10/2011 09:57 AM Subject: [staf-users] Regarding HandleManager::updateTimestamp() failed to update handle Hi, I am trying to start multiple threads to listen for messages for separate handles. I am facing the following issues: · I’m not able to save STAFString into a strcut – I get a seg fault in STAFStringConstructCopy() · I’m getting a HandleManager::updateTimestamp() failed to update handle xxxx when I run the listening thread Do both of these point to a common issue? Is multithreading in STAF advised? What is a good design for the same if allowed? Thanks, Hardik. ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<image/gif>>
------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users