Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. AudioVideoPlayback: Video as texture. Unable to Dispose()

AudioVideoPlayback: Video as texture. Unable to Dispose()

Scheduled Pinned Locked Moved C#
helptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pixinger77
    wrote on last edited by
    #1

    Hi, During the last days i strugled around with a strange problem. I need to play an video on a 3D-Object. That doesnt sound that hard. I created an device as common, added some data to the vertex buffer and activated the texture support of the Video Class: video.TextureReadyToRender += new TextureRenderEventHandler(video_TextureReadyToRender); video.RenderToTexture(device); Immediatly after the RenderToTexture call, the TextureReadyToRender Event was fired and I was able to render my desired scene. So far so goo, no problems at all. It works absolut perfectly :-D But when I want to close my application I'm not able to clean up. Everytime when me (or the framework) wants to call the Dispose() method, an NullReferenceException is throwed. I googled around a lot but couldn't find an answer. Does someone know perhaps an easy example? I tried to work with the Example from MDX-SDK(Summer2004), but because of the complicated framework structure I wasn't able to figure out too much. Does anyone have the same problem? :doh:

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups