[Gambas-user] Issue 410 in gambas: Signal 11 in gb.net.curl

gambas at ...2524... gambas at ...2524...
Fri Mar 15 19:11:38 CET 2013


Comment #8 on issue 410 by r... at ...1740...: Signal 11 in gb.net.curl
http://code.google.com/p/gambas/issues/detail?id=410

And the Gambas code triggering the crash in http client r5542 is this:

When sValue = "" it crashes...
Any other value is ok.
It crashes on cRpc.Call() (which does http client stuff in gb.xmlrpc  
component)

'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' set global var
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Function SetGlobalVar(sVar As String, sValue As String)

   Dim fRpc As RpcFunction
   Dim cRpc As RpcClient
   Dim vVar As New Variant[]
   Dim bOk As Boolean

   fRpc = New RpcFunction("globalvar.set", [XmlRpc.xString, XmlRpc.xString],  
XmlRpc.xBoolean)
   cRpc = New RpcClient(fRpc)
   cRpc.URL = "http://" & Main.sXMLRPCHost & ":" & Main.iXMLRPCPort
   vVar.Add(sVar)
   vVar.Add(sValue)

   Try bOk = cRpc.Call(vVar)
   If Error Then Main.WriteLog(("Error: ") & ERROR.Text & (" when posting to  
URL 'http://") & Main.sXMLRPCHost & ":" & Main.iXMLRPCPort & "'")
   If bOk Then
     Main.WriteLog(("Successfully set '") & sVar & ("' to '") & sValue  
& "'.")
   Else
     Main.WriteLog(("Error: There was a problem setting '") & sVar & ("'  
to '") & sValue & "'.")
   Endif

End

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list