
Memory leak in VB program that makes use of word
Sam--
The installation of VS is probably the general cause but not the immediate
cause of the memory leak. The presence or absence of VS in and of itself
shouldn't cause a memory leak, but a specific issue in your code might,
depending on whether VS is installed. For example, if you use CreateObject
to instantiate an object from a component that's not installed on the non-VS
machine, and your errorhandling takes for granted that the object creation
won't fail, you might be in trouble. The package and deployment wizard could
easily leave out a component if there is no direct, compiler-visible
reference to it (as might happen when using CreateObject). API calls into a
DLL that's only installed with VS might also be a problem issue for the P&D
wizard, I'm not sure.
I hope some of that is helpful.
--Jon
Quote:
> Hello,
> I' m creating a program to create documentation out of an XML schema.
This
> program is written in Visual Basic and it creates a Word Document and an
> Excel Document.
> When I create a setup package with the Pack. and Depl. wizard, all works
> fine on PC's that have Visual Studio installed.
> But when I want to install the package on a PC that hasn't VS installed, I
> don't get errors during the installation, but when the program starts and
> the user presses the button, then I get a hell of a memory leak. The
> program has to be killed and nothing works :-(
> I make use of a custom control (ocx), MSXML4, Word and Excel.
> thanx in advance.
> Sam Vanhoutte