Comment #8 on issue 410 by r...@cyberjunky.nl: 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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to