entaroadun
Programmer
I'm using the 7.2.2 IServer API in a VB project and I can't figure out how to disconnect from the project and server (3-tier).
I connect by instantiating a DSSDataSourceEnumerator for the project sources, then getting a reference to the DSSDataSource for the server. I init the server. I then get a DSSDataSourceEnumerator for the projects and a DSSDataSource for the project I want. I init the project.
I create an IDSSSession from the project.
I run reports and what not. I try to disconnect.
I set all my lower level object references to nothing (everything I created from my IDSSSession). I explicitly close the IDSSSession, and then release it and the project(s) and project source(s) (5 objects in all).
At this point, all my object references are released. However, when I look at the connection monitor on the IServer, my connections to the project and project source are still active.
I've been over my code several times. I'm certain that I am releasing everything.
I've been at this for hours. I can't find a TN on this and the SDK manual only goes over connecting to a project source and project, not disconnecting.
Thanks to anyone who can help.
I connect by instantiating a DSSDataSourceEnumerator for the project sources, then getting a reference to the DSSDataSource for the server. I init the server. I then get a DSSDataSourceEnumerator for the projects and a DSSDataSource for the project I want. I init the project.
I create an IDSSSession from the project.
I run reports and what not. I try to disconnect.
I set all my lower level object references to nothing (everything I created from my IDSSSession). I explicitly close the IDSSSession, and then release it and the project(s) and project source(s) (5 objects in all).
At this point, all my object references are released. However, when I look at the connection monitor on the IServer, my connections to the project and project source are still active.
I've been over my code several times. I'm certain that I am releasing everything.
I've been at this for hours. I can't find a TN on this and the SDK manual only goes over connecting to a project source and project, not disconnecting.
Thanks to anyone who can help.