Windows Media Player ActiveX control causes memory leak

I'm writing an application that will load and play *.avi files in an ActiveX control. The user must be able to load multiple files consecutively in the single player mode. However, it seems to be the memory leak every time that a file is loaded, even if it's the same file. For example, even when you load a small file in *.avi 81KO repeatedly, there is a memory leak ~ 6Mo coherent (as observed in the Manager of tasks). The leak memory is greater when I load larger files.

I tried to deny it by adding using a Method Close by using the node invoke. It gets about 3 MB of RAM, but when I load the file again, it leaks ~ 9MB, leaving a net leak of ~ 6Mo once again.

I also used reference close vi (s) to clear the memory ActiveX object, but that did not help either. In other versions of VI, I tried to eliminate the creation of a new IWMPlayer4 object using a shift register, but once again the leak memory persevered...

It's a simple version of the VI, as well as the small video file attached. In my application, I want to be able to load large video files (~ 600 MB) several times without memory leaks. Thank you in advance for your help!

-gpho

Hi jareds.

Thanks again for test it for me. I use Windows 7 and WMP version 12.

As you requested, I tested it on a computer with Windows XP and WMP version 9 (and LabVIEW 8.2.1) and the problem of memory has disappeared. I then installed WMP version 11 on the same computer: still no memory problem.

On the Windows 7 computer, I went back to version 11 using the instructions found on this link, and the problem of memory has disappeared. It seems that memory leak is due to a problem with WMP version 12 (although degraded version 11 on windows 7 has some bugs - and you can't go back to v12).

Thanks again for the help!

-gpho

Tags: NI Software

Similar Questions

  • Several Media Player ActiveX controls

    I have a system that displays video files 'live' and those historical at the request of the user. To do this, I use the Windows Media Player ActiveX controls.

    The 'live' (not really streaming, just a new video file all few seconds) display is part of my main façade, while the historical files play in a pop-up (also a VI) when the user requests them.

    Control 'live' works very well until a historic video is required and the pop-up appears. As soon as the second WMP ActiveX control appears on the screen, two of them ceases to display the video!

    They try - when either one of them has to play a file, "playing...". "appears in the status bar and reading progressive count time - but there is no video.

    The problem persists even after the closure of the pop-up window.

    No idea how to solve this problem?

    I push the files for the ActiveX control by first calling "newMedia" in an Invoke node, then put the reference that in the property 'currentMedia' of a property node. What is the right way to do it?

    (LabVIEW 8.2, WMP 10, WinXP SP2)

    Thank you!

    Hi Ian,

    I had a glance on this issue and I am unable to reproduce your problem.

    It is possible that the problem is due to a codec problem, what format are the video files? They use standard codecs?

    I built a program example runs a video the main vi and appears a second video when you press a button.

    If you change constants for path of file for videos that you use and test them using the sample program this will eliminate video formats as a problem.

    I structured the ActiveX interface slightly differantly to how you described, nor your problem however re-created method.

    Have a play with the sample program and let me know what happens.

    Best regards

    John Porter

    Technical sales engineer
    National Instruments UK

  • Windows Media Player ActiveX plays do not image, but the stand alone WMP application. Why?

    I use my Windows Media Player v11 with extra codec to play mp4 files (mp4 are not supported by default with WMP 11, so I had to install a codec). It works very well in the stand-alone application, but when I use the ActiveX control in the regulation, it does not use the codec and I get only sound... no picture. I thought that the ActiveX was merely an interface to the same application of base used by OR and the stand alone media player. And if it's the same kernel, it must use the same codec. What Miss me?

    I have a tip for you. If you download Quicktime 7 (QT), you can select the QT activex player (see picture). It plays mp4 and seems better. QT is free, so there shouldn't be any problem. Try and see if it make you good

  • Windows Media Player volume control does not work during DVD playback.

    When I play a DVD in Windows Media Player or Windows Media Center I can't adjust the volume with the volume control of the program or main Windows volume control.  Simply sound 100% flight.  It's on a HTPC connected to an A / V recevier, so the only way to adjust the sound with the volume of the receiver control.  When I play any other type of multimedia (avi, mp3, etc.) in the two WMP or WMC in the program volume control is working properly.  The interesting part is, when I play a DVD using VLC Player or Cyberlink Power DVD the volume setting in the program as well as the main Windows volume control works correctly.  This leads me to believe it's a software is not a hardware problem.  I think that WMP and WMC using the same "engine" so the same problem knocking them both.

    Other info:

    Windows 7 64-bit.

    Windows Media Player 12 version

    Audio is routed to the receiver via the digital coaxial

    For what it's worth, this same problem occurred with the same exact material when I'm running Vista 32 bit.

    All other software is the latest version with all updates installed.

    Any ideas are welcomed and appreciated.  Thank you in advance.

    -Michael P.

    Hello

    Reinstall the WMP and WMC application and see if it works very well.

    1. open the Control Panel -> programs and features.

    2. click on Windows to enable or disable features in the left pane.

    3 expand the multimedia features, disable Windows Media Player. Click Yes to continue, and then click OK to exit. Then restart.

    Note: If you turn off your WMP, Windows Media Center will be off either. You may need to reconfigure the settings for Windows Media Center after her reactivation.

    4. open or turn off Windows features turn on again. Functionality in Windows Media Player and Windows Media Center. Turn it back on.

    5. launch Windows Media Player, initialize the program.

    PS: If you turn off your WMP, Windows Media Center will be off either. This does not happen when we choose to turn off MCE.

    $C

    God will not look you over for medals, but for scars. Each winner has scars; I do this either on the same heart

  • ActiveX: Open a separate window of Windows Media Player 9 and control playback

    Hey all,.

    I'm trying to open a video in WMP4 automatically in Labview and control. There is an existing ActiveX container, but it remains on the front panel. I can control its playback, but can not pause and resume.

    I can also open the video in a window outside of LabView through Labview WMP9, but I was not able to control. Simply run it and then watch until it ends. It is the preferred operation, I need to understand.

    LabView version: 8.6

    ActiveX application: Windows Media Player 4

    OS: Windows XP

    My questions are:

    (a) how to pause and resume a video file, if you use the ActiveX with LabView container ensures

    (b) how could I access an instance outside WMP open through LabView playback controls (because I want to automate reading based on acquired signals)

    Note that the ActiveX refnum is WMP4 while the version on XP is WMP9.

    Thanks in advance for your help,

    Hasan

    I had trouble with your application. I don't know if it's
    my version of LabVIEW or something else. He will not play for me.

    I would like to direct you to the following thread:

    Windows Media Player ActiveX plays do not image, but the stand alone WMP application. Why?

    If all goes well
    This will help enough to do what you want. I was not able to get
    whether at work, but it seems that it is much discussed on the
    forums. Everyone has tried to do the same thing as you?

  • Why Windows Media Player Encoder auxiliary continue to use more memory, almost crashing my computer, and how to fix it?

    Whenever I use the Windows Media Player on my computer, the Windows Media Player Encoder auxiliary uses memory more and more every second I have Windows Media Player, no matter what I use Media Player to open.
    in any case, she continues to use more memory the computer almost to the point of freezing, trolling, and I do not know how to fix it.
    The reason why I know this has to do with the memory usage is that when I open the Task Manager, it usually gets above the point of using 300 000 k memory usage before I can put an end to the task.
    If someone can help me with this problem, or it can know the solution, please let me know. Thank you

    Hi Xario1,

    ·         Did you do changes on the computer before the show?

    I suggest you ensure that all updates are installed. For more information, see the article mentioned:

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    You can also see the following articles for more information:

    Solve problems in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

     

    Using memory in your storage device to speed up your computer

    http://Windows.Microsoft.com/en-us/Windows-Vista/using-memory-in-your-storage-device-to-speed-up-your-computer

    I hope this helps.

  • read media player activex files

    Dear friends;

    I can load the playlist with Windows media player activex in LabVIEW 2009, but I don't know how to play.

    Thank me for help.

    Forgive me, I think my reading list had bad files path (I don't know why), in any case thsnk for your answer

  • Error with Windows Media player, Modname:sonichddemuxer.dlll signature

    Windows XP Home Edition, Windows MediA Player 11, trying to play a melody in the library.

    First error msg: WMP encountered a problem and needs to close. We are sorry for the inconvenience.  For more information about this error, click here.

    'Click here' reveals the ERROR SIGNATURE:

    AppName: wmplayer.exe AppVer: 11.0.5721.5145 ModName:sonichddemuxer.dll

    ModVer: 5.0.0.157 Offset: 0000656a

    Then 1 more error screen with all the tech data.

    H E L P!     And thank you very much.

    Windows XP Home Edition, Windows MediA Player 11,

    An incorrect version of the Wmpui.dll file is saved on your computer. This can occur when you install some third-party programs.

    Service pack for xp you are using
    Here the system requirements
    http://Windows.Microsoft.com/en-us/Windows-XP/products/Windows-Media-Player/11/Readme

    If your system meets the system requirements, you can follow the step to fix

    To resolve this problem, save the correct Wmpui.dll file again:

    1. Click Startand then click run.
    2. In the Open box, type the following command, and then click OK:
      regsvr32 %SystemRoot%\system32\wmpui.dll

      You receive a message similar to:

      DllRegisterServer in C:\WINNT\system32\wmpui.dll successful.
    3. Click OK, and then restart Windows Media Player.


    Causes of Sonichddemuxer.dll errors

    These are often critical Windows errors, usually caused by a corrupt registry entry. To curb corruption to other hardware and applications on your PC, it should be immediately fix this error. Risks that may result from not repair this error include system hangs, blue screens, and hardware failure

  • Sync on Windows Media Player

    I'm trying to sync in Windows Media Player using an SD memory card and also I tried to use the storage Flash Drive (USB).  I clicked the sync up, but there is no recognition of the other.  I've refreshed but without success.  I've wound up Media Player and open again with success.  How can I synchronize to these storage units?

    Hi jchannah,

    1 what the flash card or SD card has been recognized by Windows?

    2 have you tried sync with these devices?

    First of all, you need to configure the device to sync in windows media player.

    For more information see:http://www.microsoft.com/windows/windowsmedia/knowledgecenter/howto/mp11/sync.aspx

    If you can not sync in Media player then try the manual synchronization.

    Sync manually in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows7/sync-manually-in-Windows-Media-Player

     

    Windows Media Player sync: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Media-Player-sync-frequently-asked-questions

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • About 5% of the cultures my Windows Media Player completely round images

    My Windows Media Player of the cultures of the images on all four sides by about 5%.   I noticied first on a newly created slide show photos.  The slideshow is well on other computers and on a VLC Media Player.  Windows 7 computer is three weeks old and came with Windows Media Player.  I tried to turn off Windows Media Player via Control Panel, restarting and then turn it back on, but the problem remains.

    Any ideas?

    Tom haki

    Make sure that your graphics card driver is an update. You to visit the manufacturer's Web site to download and install the latest graphics driver.

    Check the following settings: -.

    In the menu WMP:View, video size, video made the player when resizing

    View menu, video, good player to the video size

    Open WMP > tools > Options > Player tab > uncheck "allow the screensaver during playback.

    Eventually, you may need to reset the WMP 12

  • windows media player control in labview

    Hello

    I'm having trouble controlling a WMP in LabVIEW using ActiveX controls is... What I have to do is to have a control to go from image to image. I did something, but when I slide the crontroller, it suddenly crashes?

    Also: when I play the video in windows media player from mij, it opens normally, but when I open it in the labview activex control, the screen remains black? I have a compressed H.264 AVI file and I have installed the latest codec pack k - lite.

    I use a Node (activeX) property to adjust orders "IWMPPlayer4"-online "orders"-> IWMPControls-online 'common position '.

    Anyone have experience with this?

    Best regards

    Thijs Boeree


  • Close programs to prevent the loss of information. Your computer is low on memory. You save files and close programs. Java (TM) Platform SE binary Windows Media Player

    Hello

    I keep getting the following error message, and leterally having my computer off over and over again, even if I added 1 GB of RAM (now 3 total RAM) mor and also added a 8 GB SD card as more power:

    Close programs to prevent the loss of information.  Your computer is low on memory.  You save files and close programs.  Java (TM) Platform SE binary Windows Media Player

    I did research on the various search engines to know that many face the same problem, with a variety of possible solutions, but so far, none work.  We suggest that I go to Regedit and change the permissions of the user and then delete the old files, after I import them.

    Needless to say, I am just a user and have just a bit of technical knowledge.  The local PC repair shop in my town has no idea what to do.  For anyone who has a solution to this problem, help will be greatly appreciated!

    Randy Kline

    First of all, unless you know EXACTLY what you do and WHY you do it. I personally recommend never do anything in regedit. I consider myself a moderate to advanced computer user and a moderate user of windows. And I always stay away from regedit, if I can, because you can seriously screw things if you don't know what you're doing... Although, to be honest most of the settings will not have a devastating drama.

    It seems to me that this is a memory leak in the program, you will get this error message to make sure that your computer will just crash, because if she is running out of RAM... Well it will crash.

    If you have a 2 and a 1 GB for a total of 3 GB, I recommend the upgrade once more and just round up to a nice 4 (this is the most of memory a 32-bit system can handle in total)

    Works of memory in a way that you see really only a few performance jump with memory dual channel, the only way to have that is really striking the rods of same in each slot.

    There isn't really a reason that this happens every time, except that simply your computer is low on MEMORY, when your computer says this means RAM, not disk memory storage area.

    If you clean your computer of the programs you never use and stop using windows media player (itunes is better in my opinion, even if you don't have an ipod), you can see an improvement, but to really isolate the problem, I recommend simply opening your task manager as soon as you start your computer (ctrl + alt + delete usually gives you the option or it opens directly) otherwise you can do start-> RUN taskmgr.exe , OR type taskmgr.exe in the search box and press on enter.

    Then, look at the column of memory as I said it sounds like a program has a leak, and you will see that is because memory will begin at low/normal and then numbers just keep climbing...

    Also, make sure that your computer recognizes all 3 GB or RAM. in Task Manager if you have access to the performance tab, under physical memory must be a thing called Total, 3 GB = 3074. If this is not an option in your reason, you can go under Accessories/System Tools system information (on the start menu). (may take a while to load) but on the home page, you should see something that indicates the amount of TOTAL PHYSICAL MEMORY. You want to read this / 3GB or 3074 MB.

    Hope this helps some!

    I recommend to remove all programs, you are ready to, especially those that you never use. Do a complete uninstall. Then start installing windows clean (download google) just to make sure that the program has been removed. then go start--> run msconfig OR just type msconfig in the search and click on go (I don't know if you're running XP or Vista/7)

    In the msconfig dialog, you should see a section that says startup. Don't forget to remove programs that you do not first. Disable startup programs, you use every DAY. Don't go turn off all if windows needs some process to run, and some processes don't effect anything. But if you're curious, you should be able to google all of startup items and see what it's related to and why you do or that you don't need.

    Good luck! Sorry, I'm everywhere with this response.

  • Control windows media player on PC via Bluetooth through my phone.

    Control windows media player on PC via Bluetooth through my phone. Is this possible?. Basically, I want to listen to my songs on my laptop using WMP12. I just want to get to the play and pause control through cell phone... Any application that has a same function d is also welcome...

    Hi ujjwal_light,

    1. What is the model number of the mobile phone?
    2. What operating system is installed on the mobile phone?

    There is no option to control the Player Windows media via phone using Bluetooth.

    Use your favorite search engine to find a such third-party application that supports the feature.

    Important: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows Media Player will not play error of MTS files that your computer works at low memory. Quit other programs, and then try again

    I am running Windows 7, 64 bit, home premium on a Dell Studio 1558 with an ATI Mobility Radeon HD4500-5100 graphics card and an Intel Core i3. It has 4 GB of RAM.

    When I try to read files MTS using Windows Media Player I get the error message "your computer is low on memory. Quit other programs, and then try again,"even with no other programs running. Windows Media Player will play other types of video files without difficulty.

    Any suggestions as to what can be the cause of the problem and how to fix?

    TBH I'm not sure.

    All I can say is on my desk, I have not loaded a pack of codecs only support of any kind and WMP12 plays my MTS files very well. Supported by this statement in Windows Media Player 12 is also capable of playing AVCHD formats (. ) M2ts et . MTS ). [13]" from - http://en.Wikipedia.org/wiki/Windows_Media_Player and the fact that in WMP12 - "Media files (all types)" MTS has listed as an acceptable format.

    My office has an AMD/ATI HD5670, and like I said seems to play.

    1. Have you tried to run a full anti-recent virus scan? If this isn't the case, update your antivirus program and run a scan full to see if it finds problems.
    2. Then try a sfc/scannow scan to see if it detects and fixes something.
    3. Just checked, you have installed WMP12? (it should be, but just a double check).

    This type of problem (or similar) has developed before items such as http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/Windows-Media-Player-and-low-memory-issues/bb4bf226-8bd0-41A5-9eed-9be08e6d3bdb and  http://www.TomsHardware.co.UK/answers/ID-1699934/computer-running-low-memory-Windows-Media-Player.html and some people said re-register the DLL of WMP files helped. Personally, I've never needed to test or try this kind cannot confirm.

  • I keep getting out of memory errors when you use Windows Media Player.

    original title: of memory error

    Hi, I have a Windows 7 PC brand new with 12 GB of RAM, but I get low on errors of memory, especially when you use Windows Media Player. I tried:

    -Execution of the antivirus scans

    -Cleaning things out of the startup folder

    -Increase in the size of paging file

    I can't understand what the devil is the cause of this error - as I said, it's a new machine, and is not practically nothing on it yet.

    Any help is appreciated.

    Hello

    Follow these steps and check.

    (a) open 'command prompt' as an administrator (programs, accessories, right-click "command, prompt" run as administrator).

    (b) type the following without the quotes and press ENTER.

    "for %a in (% systemroot%\system32\wm*.dll) do regsvr32 /s %a.

Maybe you are looking for

  • How to open a new window with a blank page?

    More specifically, when I open a new window (CTRL-N), I want a new browser with a blank window and the cursor in the address bar (so I can just start to type the new URL - like Firefox 3.0.3 allowed me to do). In 3.0.3 I was able to set my 'homepage'

  • Presario CQ57: need Pwd Reset code Bios admin for CQ57

    I get the screen to lock for admin password or password system. Disable the system code lock is 53328333. I tried to do a hard reset, but that no longer works. Maybe I did wrong not sure. I believe that it is 32-bit but not sure. Help, please...

  • Lack of drop

    For the record, I had tried to get a parachute on the desktop, so I dragged parachuting app/extension on the finder favorite and he disappeared. How to retrieve it? PLEASE HELP

  • V Cast Media Manager to load in the browser when connected usb

    When I connect my Droid 3 to my computer via usb, it automatically opens a tab in my browser, V Cast Media Manager from Verizon. How to disable this option? Thanks in advance for your help.

  • Undo system restore option is failed upwards in the system restore menu.

    Original title: Undo system restore? My sound doesn't work on my windows XPS, I did a system restore, but not to the point of restoration before the sounds stopped working because it didn't go that far back. but now, I want to cancel the system resto