Hi Everyone,
Sorry about the duel post, my pop up blocker was not letting me put questions up but let me do comments.... I stopped my pop up blocker !!!!
I was wondering if anyone can help me....
I have multiple Windows Media Player Objects on a Windows
form that I control at run-time by commands pulled via
HTTP in a loop.
My Problem is that when I try to move a stream at run-
time I get the error at the bottom of the posting. Just
below is a code snippet. Basically I have a Stream object
that I created which has a reference to a Window Media
Player object (that i dragged onto the form using
VS.NET). The Stream Object has all the settings like the
X and y locations.... and so on...
Whenever a HTTP messages is received that tells this code
to run Line 3 throws the below exception.
However if I manually make the code run by hiding the
Window Form and Showing it again, the code runs fine.
I have a feeling it has something to do with Threading
because I have set the code that does the messaging to
STA thread... but my knowledge in how it the COM interop
works is quite limited.
If anyone can give me some help it would be MUCH
appreciated!
Regards,
Mark
<CODESNIPPET>
1 stream.stream_media_player.Ctlcontrols.stop();
2 stream.stream_media_player.Visible=false;
3 stream.stream_media_player.Left=stream.x;
4 stream.stream_media_player.Top=stream.y;
5 stream.stream_media_player.Width=stream.w;
6 stream.stream_media_player.Height=stream.h;
7 stream.stream_media_player.Visible=true;
8 stream.stream_media_player.URL = settingValue;
9 stream.stream_media_player.settings.volume =
stream.volume;
<\CODESNIPPET>
An outgoing call cannot be made since the application is
dispatching an input-synchronous call. at
System.Windows.Forms.IOleInPlaceObject.SetObjectRects
(COMRECT lprcPosRect, COMRECT lprcClipRect)
at System.Windows.Forms.AxHost.SetObjectRects(Rectangle
bounds)
at System.Windows.Forms.AxHost.SetBoundsCore(Int32 x,
Int32 y, Int32 width, Int32 height, BoundsSpecified
specified)
at System.Windows.Forms.Control.SetBounds(Int32 x,
Int32 y, Int32 width, Int32 height, BoundsSpecified
specified)
at System.Windows.Forms.Control.set_Left(Int32 value)
DotNetJunkies User - 15 Oct 2004 01:20 GMT
Hey Mark,
Could you post the code you used to correct this problem. also you know why this would happen ..
thanks in advance
Thajeer
---