Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
"DAX Error"
December 12, 2012
7:32, EET
Avatar
Rainer Versteeg
Member
Members
Forum Posts: 32
Member Since:
March 21, 2012
sp_UserOfflineSmall Offline

Hello !

In my OPC Server application sometimes a window appears with the header “DAX Error” and the message “Server shut down”.

Does anyone known the meaning of the message ? Confused

Br,
Rainer

December 12, 2012
8:05, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Do you have a client connection to another server as well?

December 12, 2012
8:07, EET
Avatar
Rainer Versteeg
Member
Members
Forum Posts: 32
Member Since:
March 21, 2012
sp_UserOfflineSmall Offline

Yes I have !

That the OPC Server generates the window ?

December 12, 2012
8:53, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

It sounds like the client connection generates an exception, when the server sends a shutdown notification. I am not sure why this happens. It might be related to the use of threads. Do you have an event handler in TPsOPCServer.OnShutDown?

December 12, 2012
9:43, EET
Avatar
Rainer Versteeg
Member
Members
Forum Posts: 32
Member Since:
March 21, 2012
sp_UserOfflineSmall Offline

Hello Jouni !

The error appears on the server side !

How can i generate an Onshutdown Event on the OPC Server side ?

Br, Rainer

December 12, 2012
10:48, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Sorry, I think I misunderstood and did not ask very clearly. I meant to ask if your server application is also a client application to another server. So this is not the case?

December 12, 2012
10:54, EET
Avatar
Rainer Versteeg
Member
Members
Forum Posts: 32
Member Since:
March 21, 2012
sp_UserOfflineSmall Offline

No !

I have an OPC Server application and a OPC Client Application.
The OPC sever application gernerates sometimes the error !.

Sometimes the client application crash down and do not correctly disconnect the connection to the OPC Server.

December 12, 2012
12:05, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK, I think I’ve got it.

If the server is shutdown, it will not accept client connections any more. But if a client still tries to connect, the server will raise an internal EAbort exception. Apparently, the exception causes the message box to display, instead of returning the error to the client.

I don’t know why this happens when the client tries to disconnect, since the error comes from TPsOPCProviderClientFactory.CreateComObject, which should be called when the client tries to open the connection.

I will try to figure out why it fails and how the method should be written. Do you have the source or would you need an updated download?

December 12, 2012
12:55, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I think I have found out how the server code should be fixed. Please, send an email to sentrol-support at prosysopc.com, so I can provide you an update.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
47 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1