Memory leak in VB program that makes use of word 
Author Message
 Memory leak in VB program that makes use of word

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



Sun, 16 May 2004 16:58:15 GMT  
 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



Sun, 16 May 2004 23:40:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB6 app has memory leak after installing IE 6.0 (installation was custom made)

2. Detecting memory leak using VB-DDE

3. Memory leak using WinInet.dll in VB?

4. Making sure VB program leaves memory when done.

5. Making a VB Memory Resident Program?

6. OLE Automation Memory Leaks - VB4 to Word

7. Program Memory Leak !!!

8. Memory Leaks/Resource Leaks

9. Memory leaks using shell from VBA with winAPI kernel32

10. memory leak using VBA6 and file access

11. Possible Memory Leak When Using ADO/DAO with VB6

12. Memory leak using VB4 and Sybase?

 

 
Powered by phpBB® Forum Software