Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-22 Thread Ben Kloosterman
. Ben > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Andera > Sent: Wednesday, 22 January 2003 1:41 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading >

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Craig Andera
> Rendering when the screen redrew or was invalidated worked fine ( as a > Dialog) its just when you had a loop to render as fast as > possible that it > would not trigger close events. Sounds like we're in violent agreement. :) So you just added an Application.DoEvents call in the render loop to

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Ben Kloosterman
ECTED]]On Behalf Of Craig Andera > Sent: Tuesday, 21 January 2003 11:06 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading > > > Actually, the rendering happens in OnPaint in the control I wrote. > Presumably this is what you're

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Craig Andera
anuary 20, 2003 11:49 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading > > > Thanks for this , but this part of my code works well as the > only render I > can see is in onpaint , is it in the Web service ? I only get > the proble

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Ben Kloosterman
to:[EMAIL PROTECTED]]On Behalf Of Gary Leighton > Sent: Tuesday, 21 January 2003 6:01 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading > > > I think I understand now. > > Your mainloop doesn't end until (mainWindow.Created) is fal

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Gary Leighton
TED]] Sent: 21 January 2003 05:43 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading Yeah I know its dodgy , which is why im posting it here trying to find an alternative ( one of the threads lock when a resize happens and stops rendering) . I had a read of the Clo

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Ben Kloosterman
to:[EMAIL PROTECTED]]On Behalf Of Craig Andera > Sent: Tuesday, 21 January 2003 12:00 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading > > > D'oh! Forgot the reference to the code: > > http://staff.develop.com/candera/intelarticle.

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-21 Thread Ben Kloosterman
nal Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Gary Leighton > Sent: Monday, 20 January 2003 11:42 PM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Controls / DirectX and threading > > > Application.Run cr

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-20 Thread Ben Kloosterman
out your code tommorow moring. Ben > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Andera > Sent: Tuesday, 21 January 2003 12:00 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Cont

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-20 Thread Craig Andera
D'oh! Forgot the reference to the code: http://staff.develop.com/candera/intelarticle.htm You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-20 Thread Gary Leighton
] Sent: 18 January 2003 06:24 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Controls / DirectX and threading Ok I had a problem when using DirectX 9 to render to a control that the form ( actually a subform created from the mainform) would no longer handle close events, all other events were handle

Re: [ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-20 Thread Craig Andera
for disaster. But it could be I'm missing what you're after. > -Original Message- > From: Ben Kloosterman [mailto:[EMAIL PROTECTED]] > Sent: Saturday, January 18, 2003 1:24 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Controls / DirectX and threa

[ADVANCED-DOTNET] Controls / DirectX and threading

2003-01-19 Thread Ben Kloosterman
Ok I had a problem when using DirectX 9 to render to a control that the form ( actually a subform created from the mainform) would no longer handle close events, all other events were handled properly . Looking at all the managed DirectX samples they started the rendering loop from main() which I s