Menu

Strange behavior

danielp
2007-07-03
2013-04-18
  • danielp

    danielp - 2007-07-03

    Hi,

    I have created using a webcam (and virtualdub) a short uncompressed avi in the yuy2 format. With VC# Express, it won't play if I use F5 to run it (ie Start Debugging) but it plays correctly if I use Ctrl-F5 (or Start Without Debugging).

    It would be easier to test if you could upload your yuy12.avi in a testdata dir in svn.

    -daniel

     
    • Gabest

      Gabest - 2007-07-03

      That's the better case, since you can break into the debugger to see why it is not playing ^_^

      These uncompressed files are quite large, maybe after I ported huffyuv.

      Btw I'm making my avis with ffdshow in virtualdub, it can output all kinds of uncompressed formats.

       
    • danielp

      danielp - 2007-07-04

      Maybe we should call this a feature ;-)

      More seriously, since this is multithreaded code that I ain't familiar with yet, the error message I get is:

      System.InvalidOperationException: Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on.
         at System.Windows.Forms.Control.get_Handle()
         at System.Windows.Forms.Control.RectangleToScreen(Rectangle r)
         at TestApp.TestAppForm.Repaint() in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 289
         at TestApp.TestAppForm.TestAppForm_PaintEvent(IDirectDraw7RendererFilter sender, Surface surface, Int32 arx, Int32 ary) in C:\my_doc\dowitchers\TestApp\TestAppForm.cs:line 202
         at Dowitchers.Filters.DirectDraw7RendererFilter.Render(IMediaSample sample, Nullable`1 start, Nullable`1 stop, Int64 delay) in C:\my_doc\dowitchers\Dowitchers\Filters\DirectDraw7RendererFilter.cs:line 201

       
    • Gabest

      Gabest - 2007-07-04

      ah, controls can be accessed from the thread which created them, strange that it didn't throw this exception always

       
    • Gabest

      Gabest - 2007-07-04

      testapp just got a face lift

       
    • danielp

      danielp - 2007-07-04

      Looks good from here.

      -daniel

       

Log in to post a comment.