Calling webspeedscript from VB6

rdekker

New Member
I try to execute a webspeedscript from VB6 but everytime I run my project Visual Basic crashed.

This is what I did:
Registered wsasp.dll
Included the Progress Webspeed WSASP messenger
Run the following piece of code:

Dim objAgent As New WSASPLib.CWSAgent
objAgent.ServiceName = "SERVICENAME"
objAgent.QueryString = "tpnummer=" & Tpnummer
objAgent.RunScript "webspeedbestand.htm"
MsgBox objAgent.Output
Set objAgent = Nothing

From ASP everything works fine. Even On Error Resume Next doesn't stop VB from crashing. Visual Basic is installed on my own computer and the agents are running on another machine. But when I make an exe of the project and run this exe on the machine with the agents the exe crashes. Can anyone tell me what causes this? And more importantly: what can be done about it?
 
Top