API Support Forum
OEC API > API Support > OEC Example Code - Advanced and Basic - Disconnects
Author Topic: OEC Example Code - Advanced and Basic - Disconnects
(4 messages, Page 1 of 1)
Moderators: VPfau
JJon38
Posts: 3
Joined: Aug 26, 2010


Posted: Aug 22, 2012 @ 02:37 PM             Msg. 1 of 4
In the Basic version, is simply Disconnects. In the Advanced, I get this Halt (Unexpected disconnection occurs).

This occurs in Debug mode with the Source code, or in Advanced mode with the Exe.

I have the latest DLL's installed and the current examples. My Name and Password work when I call Support and worked with Chris.

When in DeBug mode and I step thru the code, all works and then after 3-4 seconds, the error trips.

Using VB 2005 and 2008 as needed.

Thanks

Jon ...
SHowes
Posts: 8
Joined: Jun 12, 2012


Posted: Aug 23, 2012 @ 08:26 AM             Msg. 2 of 4
Hello

When using the following code, I get disconnected, then after trying again, get connected with no problemss for the rest of the session.

oec.UUID = "9e61a8bc-0a31-4542-ad85-33ebab0e4e86";
oec.Connect("api.openecry.com", 9200, @"UID", @"PWD", true);
UpdateStatus("OEC Server found");

Regards

Sherry Howes
JJon38
Posts: 3
Joined: Aug 26, 2010


Posted: Aug 23, 2012 @ 08:33 AM             Msg. 3 of 4
Tried your solution, still I get bounced

Thanks

Jon ...
JJon38
Posts: 3
Joined: Aug 26, 2010


Posted: Aug 23, 2012 @ 04:03 PM             Msg. 4 of 4
So far, I think I have a somewhat solution. Meaning, I got my rudimentary "COnnect" program to work and will try this on the Basic and Advanced versions supplied by OEC.

The three DLL's, API - CommLib - ProtoShop.Core as supplied with the downloads, are dated 7/23/2012 and v3.5.0.0, In my DTPro Library, the API.Dll version was 3.5.0.0 but dated 8/10/2012. I copied those three Dll's into my Project and now it Connects.

Suggestion

It appears something has changed. Change something in the Version Nbr to indicate that.

Jon ...