Skip navigation.
 
mlQTMovieLayer with QTMovie leaking memory
FROM : Freddie Tilley
DATE : Wed Mar 26 09:07:59 2008

Hi I'm creating a qt movie player that will play movies in a 
QTMovieLayer from a simple playlist

When running the application with Instruments using the Leaks 
template, it appears the function
[QTMovie idleAllMovies] is leaking memory. This is the stacktrace from 
Instruments

  0 CoreFoundation __CFDictionaryGrow
  1 CoreFoundation CFDictionaryCreateMutableCopy
  2 QuickTime ICMDecompressionSessionCreateForVisualContext
  3  0x9475a2d7
  4  0x94765533
  5  0x947667c4
  6  0x947672da
  7  0x947684b7
  8  0x9476a0df
  9 CarbonCore CallComponentFunctionCommon
10  0x94758fd5
11 CarbonCore CallComponentDispatch
12 QuickTime MediaMoviesTask
13 QuickTime TaskMovie_priv
14  0x9481ae78
15  0x948294dc
16  0x9481acf7
17  0x948162b1
18 CarbonCore CallComponentDispatch
19 QuickTime MCIdle
20 QuickTime QTOMovieObject::SendCommand(unsigned long, void const*)
21 QuickTime DispatchQTMsg(void const*, unsigned long, unsigned long, 
unsigned long, QTOGenericObject*)
22 QuickTime QTObjectTokenPriv::SendMessageToObject(QTMessagePriv*, 
unsigned long)
23 QuickTime QTObjectTokenPriv::DispatchMessage(QTMessagePriv*, void 
const*, __CFAllocator const*, unsigned long, unsigned long, 
ComponentMsgParam*, unsigned long, unsigned long)
24 QuickTime QTSendToObject
25 QTKit QTObjectTokenExecuteCommand
26 QTKit -[QTMovie idle]
27 CoreFoundation CFSetApplyFunction
28 QTKit +[QTMovie idleAllMovies:]
29 Foundation __NSFireTimer
30 CoreFoundation CFRunLoopRunSpecific
31 CoreFoundation CFRunLoopRunInMode
32 HIToolbox RunCurrentEventLoopInMode
33 HIToolbox ReceiveNextEventCommon
34 HIToolbox BlockUntilNextEventMatchingListInMode
35 AppKit _DPSNextEvent
36 AppKit -[NSApplication 
nextEventMatchingMask:untilDate:inMode:dequeue:]
37 AppKit -[NSApplication run]
38 AppKit NSApplicationMain

And this leaks 64 bytes of memory. Is there something I'm not doing 
correctly.
I'm only using the QTKit framework for loading the movies and placing 
them in the movielayer
directly, so no under the hood Carbon calls. Is there some missing 
function to call after the
movie has finished playing?


Freddie Tilley

Related mailsAuthorDate
No related mails found.