I've used WMPlayer.OCX to play MP4 file on Windows10. The memory leak after play 10 times from 1xx to 7xx MB. Then the vdo doesn't play anymore.
The code is below. How do I release memory used?
Thank you in advance for any idea or help.
The code is below. How do I release memory used?
Thank you in advance for any idea or help.
...
ACTIVATE DIALOG oDlg CENTER ;
ON INIT (BuildMPlayer2( oDlg, MEMVAR->cGifPath+"idcard.Mp4", 110+MEMVAR->nTopDlg, 151+nPlus2, 720, 406 ),
*--------------------------------------------------------------------------*
function BuildMPlayer2( oDlg, cFile, nTop, nLeft, nWidth, nHeight )
Memory( -1 )
oActiveX1 = TActiveX():New( oDlg, "WMPlayer.OCX", nTop, nLeft, nWidth, nHeight )
oActiveX1:Hide()
oActiveX1:url = cFile
oActiveX1:uiMode('none')
oActiveX1:Settings:Volume = 0
oActiveX1:Settings:AutoStart = .T.
oActiveX1:StretchToFit = .T.
oActiveX1:EnableContextMenu()
oActiveX1:Settings:setMode("loop",.T.)
return nilRegards,
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
Dutch
FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)