Re: [ADVANCED-DOTNET] MSMQ and the missing messages

2002-06-14 Thread Cavnar-Johnson, John
The missing messages are in the queue. The MMC snap-in doesn't show all the messages in the queue after the number of messages reaches a certain point (and that point was about 1000 on Windows 2000, haven't tried it on Windows XP). Because you are altering the priority of the messages randomly,

[ADVANCED-DOTNET] Another Threading

2002-06-14 Thread Alois Reisinger
Look at this: I can“t find any docs about this exception. Alois -> An unhandled exception of type 'System.Threading.ThreadStateException' occurred in mscorlib.dll Additional information: Thread is not user-suspended; it can not be resumed. <- The code is like this: if (c.t.ThreadState ==

Re: [ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Saurabh Nandu
I am not sure if an exception will be thrown, but as far as the documentation states if the earlier condition is not satisfied the operation will be short-circuited. And the second parameters won't be checked. Hence MS best practice guidelines clear ask you to avoid such situations. Always if you

Re: [ADVANCED-DOTNET] SqlDataReader

2002-06-14 Thread Saurabh Nandu
In my view I would recommend using a DataSet!! I agree that DataReader is faster, but since you want to create an XML output, anyways you will have to loop through the DataReader and construct a XML document.. its similar to how a DataSet is constructed, so why not use a DataSet in the first place

[ADVANCED-DOTNET] SqlDataReader

2002-06-14 Thread Jeff Hughes
Here is my dilemma. I want to be able to create an XML document using the SqlDataReader in place of a DataSet. I know you have to have the connection open the whole time while reading through the reader. The DataSet uses a reader to populate itself. I know the DataSet is much more expensive to use

[ADVANCED-DOTNET] MSMQ and the missing messages

2002-06-14 Thread wagner
Win XP, Pentium IV, C# SP1 I have the following console program which sends messages to a local private queue: class Class1 { private static int m_nMsgLimit = 2000; static void Main(string[] args) { // get/create the private queue

[ADVANCED-DOTNET] Extending XSD generated classes ...

2002-06-14 Thread Howard Hoffman
Is it possible to extend XSD generated classes with methods and properties? I have a schema with around 200 complexTypes. I'd like to provide methods for many of them. My first approach was use XSD.exe to generate classes for the complexTypes (in the 'commonNamespace' namespace), to derive a ne

[ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Stefan Holdermans
I really like the way C# handles boolean expressions like: a && b and c || d. If a is false, b is not evaluated, since the expression cannot be satisfied anyway; if c is true, d is not evaluated. But -- is this just a Microsoft-specific implementation of the && and || operators? Or do

Re: [ADVANCED-DOTNET] Threading is blocking itself or ?

2002-06-14 Thread Ben Kloosterman
Managed and Unmanaged Threading in Microsoft Windows Note An operating-system ThreadId has no fixed relationship to a managed thread, because an unmanaged host can control the relationship between managed and unmanaged threads. Specifically, a sophisticated host can use the fiber API to schedu

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-14 Thread Frank Hileman
Hello, I got it from the latest MSDN library CD. I imagine that behavior is in the current spec, worded differently. Regards, Frank - Original Message - From: "Keith Hill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 12, 2002 10:45 PM Subject: Re: [ADVANCED-DOTNET] S

Re: [ADVANCED-DOTNET] Fibres in the CLR (WAS: Threading is blocking itself or ?)

2002-06-14 Thread Craig Andera
> This may be a bit off topic, but your statement aroused my interest: > > Under what circumstances, if any, does the CLR use fibres? > None that I'm aware of BUT it's likely that when SQL Server hosts the CLR that it'll use fibres to implement CLR threads, rather than OS threads. SQL Server alre

Re: [ADVANCED-DOTNET] Data Access API

2002-06-14 Thread Syed.Alam
Can anyone tell me how to convert ms-help://MS.MSDNQTR.2002APR.1033/dndotnet/html/dotnetperftips.htm to http://? Thanks -Original Message- From: Simon E.P. Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:07 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Data