Hello there,

I have a vb .dll file developed in version 6.0, I need it to run like a windows service, the vb .dll file access a mail box and intimates the user on reciving a mail and transfers the mail attachment to a predefined location, i have used COD 1.2.1.

now when i use cominterop and import this in a simple vb.net windows application it just works fine, but when i make it a windows service it just hangs.

I tried it even with the smallest peice of code which just adds text to a text file in a vb6 .dll filebut it works for 5-10 iterations but then hangs....

has anybody used vb6 sucessfully as services using the interop
functunality:


'''' Code -------

Open "C:\EmailsFromSpecimens\Errordoc.txt" For Output As #2

Write #2, "Sucess"

Close #2

Thanks,
Srikanth Pai.