Announcement

Collapse
No announcement yet.

Solution to NEWCOM issue not returning from a call

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Solution to NEWCOM issue not returning from a call

    In the thread "Problem with COM and a service" I was having a problem creating a COM object within an NT SERVICE Thread. This issue was driving me bonkers and support was no help at all, they asked me to try things I had already tried.

    I have found a solution. The solution is to add a key item in the registry under
    \\HKCR\CLSID\<GUID>\InprocServer32

    call it ThreadingModel

    assign it a value specific to your threading model
    either
    Apartment
    Free
    Both

    Once this is done it can be used in a service in a thread.

    Thanks
    Sr. Software Development Engineer and Sr. Information Security Analyst,
    CEH, Digital Forensic Examiner
Working...
X