Folks,I have an application that I'm supporting and it has a memory leak 
involving Win32::OLE.    The only thing that clears up the memory leak is 
stopping the Perl application and restarting it.  But, there has got to be a 
way to clean up the process at run-time if stopping the Perl process cleans it 
up. right? Is there possibly a way to unload Win32::OLE and then re-load it?  
This is the high level process but for some reason the DLL is not cleaning up 
on object destruction like it should.  Has anyone worked with this kind of 
thing before?
Simplified code...
my $report   = Win32::OLE->new($class) or die(sprintf("Error: %s. Cannot create 
object for class %s.", Win32::OLE->LastError, $class));
$rpt->Export($ext, $filename); #Method from dll

$report = undef; #code in DLL is supposed to clean up itself when it goes out 
of scope

Thanks,
Mike
CPAN: mrdvt
_______________________________________________
Houston mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/houston
Website: http://houston.pm.org/

Reply via email to