471,353 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

About .NET Timer and COM object problem...

Hello, recently I came across a strange problem with my app. I utilities
interop to
make DirectShow into .NET. When I use it in single thread, it works fine.
But when
I use System.Threading.Timer to trigger some actions with DirectShow, there
will
occur some InvalidCastExceptions at QueryInterface(). However, I change
timer to
System.Windows.Form.Timer, this problem disappears. Anyone got this problem
before? And anyone who knows why it happens?Thanks~~
Jul 21 '05 #1
0 819

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kris Palmer | last post: by
4 posts views Thread by Liverpool fan | last post: by
4 posts views Thread by Daniel | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.