I have written a resource dispenser for MTS. I have a client object which connects to the resource manager, calls a method on the resource that it dispenses and then releases the resource.

All works perfectly except when I examine the Nt4.0 Event log I get the following error messages.

Unexpected object reference count. The object still had references after the run-time environment released its last reference. Unbind (Package: ResourceDispensers) (ProgId: MSJRDisp.RDisp.1) (CLSID: {191C3263-DA07-11D1-8CD0-006008D12346}) (Interface: IUnknown) (IID: {00000000-0000-0000-C000-000000000046}) (Method: 2) (Microsoft Transaction Server Internals Information: File: d:\viper\src\runtime\context\ccontext.cpp, Line: 2744)

The message ID is 4098.

Is this a bug with MTS 2.0