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: 1009
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: 1009
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: 1009
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: 1009
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: 1009
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: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 75

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 709

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1