Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Bug in 225b4 ADO.NET Driver?
Tue, Apr 25 2017 12:17 PMPermanent Link

Hedley Muscroft

Hi - I just updated my C# Visual Studio project from EDB 224b3 to 225b4.

None of my code has changed (apart from this update) and as soon as I launch the application, I get the following error message :-

EDB Error : Thread is running or terminated; it cannot restart.

Here's the stack trace :-

=======================================
Server stack trace:
at System.Threading.Thread.StartupSetApartmentStateInternal()
at System.Threading.Thread.Start(StackCrawlMark& stackMark)
at System.Threading.Thread.Start()
at Elevate.ElevateDB.Data.Engine.TEDBThread.Start()
at Elevate.ElevateDB.Data.Engine.TEDBThreadTimer.UpdateTimer()
at Elevate.ElevateDB.Data.Engine.TEDBRemoteSessionManager.StartPinging()
at Elevate.ElevateDB.Data.Engine.TEDBRemoteSessionManager.Login(String UserName, String Password)
at Elevate.ElevateDB.Data.Engine.TEDBConnectionManager.Connect()
at Elevate.ElevateDB.Data.EDBConnection.Open()
at ClinicOffice.cEDBHelper.GetDatabasesAndPaths(String ConnectionStr)
=======================================

My code which triggers this is the first point at which my app opens a connection to the EDB Server, as follows :-

=======================================
   static public Dictionary<string, string> GetDatabasesAndPaths(string ConnectionStr)
   {
     Dictionary<string, string> dic = new Dictionary<string, string>();
     using (EDBConnection con = new EDBConnection(ConnectionStr))
     {
       DataTable tbl = new DataTable();
       con.Open();
       using (EDBDataAdapter adap = new EDBDataAdapter("select * from databases order by name", con))
       {
         adap.Fill(tbl);
       }

       foreach (DataRow row in tbl.Rows)
         dic.Add(row["Name"].ToString(), row["Path"].ToString());
     }
     return dic;
   }
=======================================

Presumably something has changed in 225?

Please let me know if this can be fixed, or if I'm doing something wrong.

Many thanks,

Hedley
Tue, Apr 25 2017 1:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hedley,

<< None of my code has changed (apart from this update) and as soon as I launch the application, I get the following error message :- >>

Hmm, yeah, the threading changed so that it doesn't pause/resume threads anymore (which is deprecated in .NET), and there's something wrong with the timing of the start calls.

I'll have a fix for this shortly.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Apr 26 2017 4:00 AMPermanent Link

Hedley Muscroft

<< I'll have a fix for this shortly. >>

Thanks Tim - any update at all please? I'm hoping to roll out an update to my app today, but I'm not sure whether to hold fire for this to be fixed, or to go back to 224b3 - thanks.
Thu, Apr 27 2017 9:04 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hedley,

<< Thanks Tim - any update at all please? I'm hoping to roll out an update to my app today, but I'm not sure whether to hold fire for this to be fixed, or to go back to 224b3 - thanks. >>

Per email:

Please be patient.  It takes about a day to a day and a half to prepare a new EDB build.  The builds are going up right now, and you should get an email notification soon.

Tim Young
Elevate Software
www.elevatesoft.com
Image