Re: [ADVANCED-DOTNET] Synchronization question

2003-10-20 Thread Jonathan Perret
Actually (last I checked, at least), Mono installs and runs quite smoothly on Windows, without hurting your .net installation at all (it is self-contained). So you shouldn't need a Linux machine to test your code (for basic tests at least). Cheers, --Jonathan - Original Message - From: "J

Re: [ADVANCED-DOTNET] Synchronization question

2003-10-17 Thread Jonathan Perret
> The code in question is pretty detailed, but the synchronization scheme boils down to this: I have > two overlapping (avoiding the word "interlocked") synchronized regions, where I start, the first, > start the second, exit the first, then exit the second, like this: > > object monitor1 = new obj

Re: [ADVANCED-DOTNET] QueryInterface() failed problem

2003-10-06 Thread Jonathan Perret
I think you are on the right track with apartments. But just running your code in _an_ STA will not make it run in _the_ STA in which the MMC interface pointer is valid. Cross-apartment calls (between the MTA and an STA, but also between STAs) need proxying (except for free-threaded objects, etc.).

Re: [ADVANCED-DOTNET] The timeout period elapsed prior to obtaini ng a connection from t he pool.

2003-09-30 Thread Jonathan Perret
Indeed, for local variables, even setting them to Nothing on the next line after their last usage is counter-productive. Consider this : Sub f() Dim o as New MyClass o.DoSomething() ' ... more code not referencing 'o' End Sub In release builds, the 'o' local variable stops preventing the GC from