.NET DLL

The place where software developers meet

Moderator: marcus

Re: .NET DLL

Postby lagommette » Tue 22. Feb 2011, 22:53

I think I spoke to fast because the last Dll does not respond properly.

Let me explain.

If I run the example program it works. If I run HCS, it does not work.

Looking at each dll I notice that the .net example uses a 2.12.3.0 version whereas I know use the 4.0.18.26026 version

There is a difference between the constructor method in these two releases.

In the old release, the constructor had two methods (1 overloaded):
IRTransServer (string server)
IRTransServer (string server, int port)

Whereas the last release has three methods:
new()
IRTransServer (string server)
IRTransServer (string server, int port)

unfortunately, the method IRTransServer (string server) does not work anymore. I have swaped in the example the old dll with the new one and the example crashes :(

Can you help me ?

Thanks !

Regards,

lagommette
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: .NET DLL

Postby IRTrans » Wed 23. Feb 2011, 08:22

Hi,
there have not been any changes in the intial call. What error message do you get?

You might also try to use the GUIClient object instead of IRServer:

Dim irt As GUIClient

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
irt = New GUIClient("localhost") 'Connect to irserver running on localhost (=same PC)
End Sub

All the other calls are the same.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: .NET DLL

Postby lagommette » Wed 23. Feb 2011, 08:51

Hi,

Changes must have been made since the number of constructor methods is not the same between the two releases of the dll.

The source example is given with the old dll. If you swap it with the new one you'll notice that the example does not work anymore. Try and you'll see. The internal error is something like "Could not connect to IRTrans server".

In fact, only the IRTransServer(), that is with no parameters, works correctly. But once instanciated, it is not possible to set its IP address.

I will try to use the GUIClient but I am pretty sure that there is a problem with the last dll.

I'll let you know.

regards,

lagommette
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: .NET DLL

Postby lagommette » Wed 23. Feb 2011, 14:04

Hi,

have you tried to swap DLLs in your example ?

What is the origin of the crash ?

lagommette
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: .NET DLL

Postby IRTrans » Wed 23. Feb 2011, 16:16

Hi,
I have the example programm running here on my PC with the current DLL and it works.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: .NET DLL

Postby IRTrans » Wed 23. Feb 2011, 16:17

One additional note: The older DLLs where based on .NET 1.x while the current one uses .NET 2.x.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: .NET DLL

Postby lagommette » Wed 23. Feb 2011, 19:50

Hi,

I am working with Visual Studio 2010. Target Framework is .NET 4.

The example does not run with current DLL (Runtime version = v2.0.50727, version = 4.0.18.26026).

I get the following error:

A first chance exception of type 'IRTrans.NET.IRTransConnectionException' occurred in IRTrans.NET.dll

"Cannot connect to IRTrans Server at localhost. Likely the irserver has not been started."

ErrorCode = 10061
SocketErrorCode = System.Net.Sockets.SocketError.ConnectionRefused


When using older DLL (Runtime version v1.1.4322, version 2.7.2.0) I don't get any error.

Do you have an idea ?

Thanks for your help,

Regards,

lagommette
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: .NET DLL

Postby lagommette » Wed 23. Feb 2011, 19:55

Hi,

I have changed "localhost" into "127.0.0.1" and now it works.

Very strange...
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: .NET DLL

Postby IRTrans » Wed 23. Feb 2011, 20:43

Hmm, I will try that out. Maybe it has to do with IP v6 being installed.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Previous

Return to APIs

Who is online

Users browsing this forum: No registered users and 10 guests

cron