having the bomb dropped during entry to Finally block was something that I never seen in other articles (many of which full of half answers), do I am actually quite delighted that I can finally put this question to rest.
I have never seen a system that really needs a Thread.Abort
Curious about that.
A windows service that is supposed to 'stop' will have difficultly actually doing that if normal threads continue to run. So something which doesn't have control over a child thread and which has already attempted to nicely stop the thread can use Abort to force the issue.
It's down to the way you write your threading code. I tend to make a lot of use of Monitors to help with threading - the beauty of a Monitor is that you can pulse all of the monitor objects simultaneously, and let your thread code just check a simple volatile bool to determine whether or not the thread should stop at that point.
I was brought up to respect my elders. I don't respect many people nowadays.
I thought we were talking about if we'd written the code here.
It was the solution I used at the time, so I was wondering if another solution existed.
I also spent quite a bit of time figuring out exactly what happens when a windows service 'exits' as well. Which is why I came to the conclusion that one must explicitly call Environment.Exit() in a service Stop() method (after attempting to nicely stop all the threads.)
hi.. i have dot NET framework software installed on my computer which includes microsoft SQL sever 2008. Do I have to install MS SQL server software again so as to be able to connect or retrieve data from the database? plz help.
No you don't need to install anything else, you can connect via code. What is lacking is the management studio as you only get the express edition with no GUI. This makes setting up/ managing DBs hard-ishbut not impossible as you can always create SQL and execute via a console app or similar. You can download an express (free) version of management studio here[^] to provide a GUI, I don't know how good it is as we've got the full thing at work. I dare say it'll get the basics done.
We are developing a daily planing system, the system will work like a calender planer with multi clients and servers... The questions is which c# middleware should we use for this kind of 'distributed system'????
Middleware is a set of services that perform various functions in a distributed computing environment, across a wide set of server and client systems. In essence, middleware is computer software that connects software components.
great - I dont understand why your teacher thinks a web server, with some ASP.NET programming, and a database back-end, fails to meet that definition - true, the web-server and ASP.Net programming is 'bundling' some of the services, but it does meet the definiton (the protocols and components may be 'limited', but, its there)
Well, then, if you dont want to look at ASP.NET etc, you're going to have to do a fair bit of research, and, start updating your document with possible protocols for each of the different layers/comms
In the commercial world, for example, there's BizTalk, Tibco, which all offer multiple ways of doing things, in addition to 'messaging', like AMQPP, RabbitMQ, MQSeries
I'd start off by looking at what http://www.zeroc.com/[^] offer for example, and see if you can use that to hang a system together
there's no place for a simple asp.net calendaring app to use a message bus of any sort - message bus is for apps like real time trading applications where screen flicks (ie real time client server architecture). In this case, WPF/Winform client fetches updates from message bus, which is in turn fed by combination of market data provider (bloomberg, reuters...etc) and calculation servers in the back (for example doing risk, profit and loss, and other model calculation) - and even in this case, you can simplify things by simply having clients (WPF/Winform) talking directly to database.
i have simple clear cut definitions because i have a corresponding simple mind which prefer spend more thoughts on the beer end of the day - if i am wrnog, someone will offer to correct me i generally don't need to ask for it!