Simultaneous Debug for Server and Calling Application

VB4 not only allows you to create OLE Automation servers, butto debug the server and the calling application simultaneously.If you want to create a remote OLE server, set the Instancingproperty of the class modules to Creatable SingleUse. This willmake debugging more interesting.

Each time you call that class, the calling application will tryto create another instance (process) of that server. The serveris running in design mode, and VB will not start another copyof itself and load the server app again. The solution is to temporarilyset the instancing of the class modules to Creatable MultiUsefor testing purposes. Don’t forget to set the instancing backto SingleUse before compiling the OLE server.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: