0 Replies Latest reply on Apr 9, 2008 8:28 AM by Rick

    ReleaseComObject does not work

    Rick
      I have a DLL a client of mine uses. We are finding that since upgrading to Windows 2003 we are having CF crashes twice a day and the crashes trace back to a COM object that is used about 400 to 500 times a day. THe error we are getting is Unable to open native thread.

      What we have discovered is that in CF (in this case CF7) we are unable to set the instantiated object to Nothing as we would do in ASP or ASP.net when finished using that object. As a result, even though CF kills the connection to that object the thread stays active and Garbarge collection doesn't clear it out. We eventually have so many active threads that CF Application Service crashes.

      There has got to be some way to close the com object and the thread it created when the object was instantiated.

      HELP!!!