Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 8, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Simultaneous Debug for Server and Calling Application

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

Each time you call that class, the calling application will try to create another instance (process) of that server. The server is running in design mode, and VB will not start another copy of itself and load the server app again. The solution is to temporarily set the instancing of the class modules to Creatable MultiUse for testing purposes. Don't forget to set the instancing back to SingleUse before compiling the OLE server.

L.J. Johnson
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date