Put a Quicktime ActiveX Control and a Timer on a form in VB.NET or C# or VB6 and the following program leaks memory – it increases by about 10K an hour until it dies. My Timer interval is set to 4 seconds (4000).
I have also tried using System.Timers.Timer and there is no difference.
I’m just using this small test program below as an example to illustrate the problem; but this test program replicates the “idea” of my program minus a lot of glue logic to choose the image file that needs to be shown.
Does anyone have any ideas how it might be fixed? I have posted this question on the quicktime-api support email forum but can't seem to get any direct response from apple or others that resolves the problem.
I’m using windows XP system, Visual Studio 2008, .NET framework 3.5 SP1
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick AxQTControl1.URL = "" AxQTControl1.URL = "C:\playlist\calotto.jpg" End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Enabled = True End Sub