![sp_Feed](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_Feed.png)
![sp_TopicIcon](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_TopicIcon.png)
14:43, EET
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/defaults/userdefault.png)
April 13, 2016
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
Hi,
I created OPC server in Builder C++ XE10.1 and I registered it by function Register(). But “Prosys PC Client” hangs when I try to make connection to my server. When I click Connect button my server starts but client hangs.
I used following code to implement server::
OPCProvider = new TPsOPCProvider();
OPCProvider->AutoRun = true; // Default = True
OPCProvider->CLSID = “{A7F15532-1439-46D4-91E4-D50838BC88BE}”;
OPCProvider->ServerName = “ZREMB.TESTOPC1”; // ProgID
OPCProvider->Description = “ZREMB.TESTOPC1”;
OPCProvider->Vendor = “ZREMB”;
OPCProvider->VendorInfo = “ZREMB”;
OPCProvider->AddressSpace->IncludeProps = true;
OPCProvider->ThreadingModel = System::Win::Comobj::tmBoth; // Default = tmBoth
OPCProvider->Initialize();
What could be the reason?
16:40, EET
![Avatar](https://forum.prosysopc.com/wp-content/sp-resources/forum-avatars/defaults/moderatordefault.png)
April 3, 2012
![sp_UserOfflineSmall](https://forum.prosysopc.com/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
HI,
This might be similar problem http://forum.prosysopc.com/for…..-xe2/#p279 does setting the Application.DelayInitialize to True help?
– Bjarne
Most Users Ever Online: 518
Currently Online:
12 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 142
pramanj: 86
Francesco Zambon: 83
rocket science: 82
Ibrahim: 76
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 704
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1482
Posts: 6316
Newest Members:
samui, TommyDab, wross, Jeremyknock, Pedromon, DonaldEdism, Miguelplese, Scotanine, katesalas95, PetertumModerators: Jouni Aro: 1015, Pyry: 1, Petri: 0, Bjarne Boström: 994, Jimmy Ni: 26, Matti Siponen: 330, Lusetti: 0
Administrators: admin: 1