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, EEST
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, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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

December 12, 2012
8:07, EEST
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, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
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, EEST
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, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
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, EEST
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, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
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, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 853
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: 267

Currently Online:
11 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1118

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1034

Posts: 4352

Newest Members:

aldayr, Python techie, emanuel45q, Patrick, sammycontrols, hellema, linoy, subranna, ray, richN9177

Moderators: Jouni Aro: 853, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 559, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 21, Markus Johansson: 24, Matti Siponen: 64, Lusetti: 0

Administrators: admin: 1