Hi, What is the difference between locking on a container and locking on the container’s SyncRoot property. I have read the text in the docs until I am blue...
... I've heard that it's to avoid deadlocks, but I'm not sure how it helps. Could it be to avoid problems in case you have a reference to some sort of proxy..?...
Technically no difference. Conceptually, yes, the synchronized versions of the containers are using the SyncRoot underneath to acquire synchronized access. It...
... From the docs for Array.SyncRoot: "Note that some implementations of SyncRoot might return the Array itself." I'd guess and say that would be the typical...
I'm using the objects from the System.Management namespace to access remote machine's WMI info. I'm doing this from a corporate network, so things are getting...
Hi John, Ryan, Thank you for your thoughts. I think I understand it a bit better now. Google brought up this [1] reference to Brad Abram's blog. It seems...
... It's just the language specification[1]. The base class, if you have one, must appear before an in the inheritance list before any interfaces. HTH, Drew ...
It's the rules for C#. The base class must be first. Let's see if I can find the actual spot in the spec... Yep, section 10.1.2. The definition for the...
... Are you asking where this requirement (i.e. base class must be listed before interfaces) is documented? If so, here's one place [1]. If you think it's...
Hello again. ... Chris, I've seen it. what i'd like to know is if there's any special reason for this...maybe it's as you say: it's the way the grammar defines...
... If I had to speculate as to the motivations of Anders and Scott Wiltamuth, I would guess that it's just a practical way of simplifying the declaration...
Rob, If you compile with /EHa (to enable asynchronous exceptions) rather than the default /EHs (standard C++ exceptions), you can catch WIN32 structured...
You'd have to ask Anders for the reasoning. I would guess that since there's only one base class, they put it first so it's easier to find it. There's nothing...
Gurus I am trying to create a COM component that stubbornly refuses to be created on any thread that has not entered the STA. I spawned a new thread, made it...
This is just a guess, but how about System.Windows.Forms.Application.Run( ) or some variant thereof? An STA has to run a windows message pump. -Chris ... From:...
Now why the heck didn't I think of that? Thanks Chris -- I will try this out. This will probably involve referencing System.windows.forms.dll -- any chance I...
Well, you could always use P/Invoke to call down to GetMessage, but I suspect referencing System.Windows.Forms.dll is a lot easier. No clue on the WaitHandle...
See Chris Brumme's interesting post for a discussion of pumping and waiting... (maybe that helps?) Seems like handle.WaitOne should pump COM calls... ...
Do u guys know availability of any TDS server (just like SQL server), that would be easy to modify? I need a tool to mock as SQL server for some stored procs...
I dont think I can change MSDE to reply with different rowsets. MS does not offer its source code. ... server), ... provide ... fledged ... table, ... ...
... Could you elaborate on what you mean by this? It's possible to have a single stored procedure return an unknown number of rows and columns. It just...
Or maybe this will help. http://www.cs.washington.edu/lab/sw/everywhere.html freetds.org is an open-source tds compliant database. But there is also...
Hi, Because other people on the list provided you with lots of links re ... Yes, just buy[1] (if you haven't already) John Robbins' "Debugging Applications"...
Hello Stuart. ... yes, i've already seen that. what i really wanted to know is why does it have to be that way. thanks again -- Regards, Luis Abreu email:...
Plz correct me if I am wrong, but I think DBUnit does not provide network level support...for instance, u just can't replace an original DB server with a mock...