|
You probably found answer by now, but:
1. Threads are automatically recycled when they finish performing work assigned to them (exit outside method)
2. Not as far as I know - you can't say from outside: "Hey, turn off Thread #23". But inside method you can look for certain switches/flags (class bool parameter for example) and have some condition like:
if (flag)
return;
|
|
|
|
|
Thanks, that's great. Heading to MSDN now to get some understanding about ThreadPool.QueueUserWorkItem and WaitCallBack... Thanks again!
|
|
|
|
|
i just configure win task scheduler in one server that it will run a exe file at specific time but the problem is win task scheduler invoking the exe file many times. suppose when someone connect to that machine over the vpn & remote desktop then suddenly win task scheduler calling that exe. so as many time a user is connecting that server over the vpn some time that exe is calling by win task scheduler. so i just could not understand this behavior of win task scheduler.
so please tell me how to prevent win task scheduler to call exe before the setting time if many user connect to that server over the vpn. i need solution......very urgent.
thanks in advance.
tbhattacharjee
|
|
|
|
|
Tridip Bhattacharjee wrote: so please tell me how to prevent win task scheduler to call exe before the setting time if many user connect to that server over the vpn.
This has absolutely nothing to do with C#. Try posting this in the infrastructure[^] forum.
|
|
|
|
|
I AM STUDENT OF BSCS AND MY FINAL PROJECT IS NOW STARTED. MY FINAL PROJECT IS ABOUT ICMP CONTROLLING SYSTEM.PLZ HELP ME ABOUT THIS PROJECT.
TAHNXXXXXXXXXX
|
|
|
|
|
STOP SHOUTING!
All uppercase is considered as shouting on the internet. And rude.
All lowercase is considered childish.
Also, learn to spell. "PLZ" is not a word. You have a keyboard. Find the vowels. Use them.
"TAHNXXXXXXXXXX" is not, has never been, and will never be, a word. It's not even close to a word.
Now. the question:
What question? Are we supposed to hack into your PC and work out what your problem is? Read your mind? Or just guess?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
|
"Bachelor of Science, Computer Studies"?
I are Troll
|
|
|
|
|
HUSSNAIN TOUFIQ wrote: MY FINAL PROJECT IS ABOUT ICMP CONTROLLING
THANK THE LORD. For a moment there I thought that said ICBM[^] Controlling.
|
|
|
|
|
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
HUSSNAIN TOUFIQ wrote: PLZ HELP ME ABOUT THIS PROJECT
No. With a childish behaviour like you show here (shouting, crappy text speak, not being able to ask a proper question) it's maybe better for you, if you don't graduate since you wouldn't stand a chance in working live.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
One of the great joys of the final year project is that it's the place where you really get to shine. It's not just about coding an application, it's all the bits that go with it - the design, thinking about the edge cases, working out the user experience with your software. This is your chance to really show how well you've learned your subjects; that you've listened and taken it all in, and that you are now ready to get to grips with core functionality in an imaginative and enthusiastic manner. You are doing yourself a disservice if you don't take the opportunity to actually deal with this by yourself; by all means ask for help when something gets too much for you, but show us what you can do. Astonish us. Be exceptional.
|
|
|
|
|
Pete O'Hanlon wrote: Astonish us. Be exceptional.
He definitely astonished me with his exceptional first impression of an angry elephant with constipation, shouting down the place and requesting unspecific help in a kind of language, that looks like it has been written by a monkey with rabies. Totally impressive how he seems to think, that anybody might help him that way.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Smithers-Jones wrote: He definitely astonished me with his exceptional first impression of an angry elephant with constipation
5
|
|
|
|
|
Smithers-Jones wrote: an angry elephant with constipation
Smithers-Jones wrote: a monkey with rabies
Is this you subtly suggesting the development of a zoo management system? some merger of a hotel management system and a patient tracking system?
|
|
|
|
|
This has got to be one of the best, most constructive forum replies ever. It's just a shame it's too long for a quote in a signature!
5 from me
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
DaveyM69 wrote: It's just a shame it's too long for a quote in a signature!
You could try to cut down its length by using textspeak
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Thanks Dave. You could always use the "Astonish Us. Be Exceptional" bit if you like.
|
|
|
|
|
Done
|
|
|
|
|
Wow. Is that 3 sig lines I've got going on in there? Thanks very much Dave - that's pretty humbling.
|
|
|
|
|
You keep coming up with these gems - I just steal quote them!
|
|
|
|
|
Oooh look a troll. All wet and slimy under the bridge is it?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello All ,
I have used a CalendarExtender in my page with textboxes. When I press enter key in another textbox, calendar's popup is appearing.
I have used defaultbutton attribute in form tag and tried keeping my button id as defalut button but this is also not working.
Please help me out in same..
Thanks In Advance
|
|
|
|
|
Smells like ASP.Net to me. You will get better responses in that forum.
|
|
|
|
|
Hi guys,
I need to find a way around a problem so that I can have an array containing lists of different types, where those types are all derived from the same class. Unfortunately I'm at the end of my knowledge of covariance etc so any help would be greatly appreciated.
To explain better:
I have a class ('class X') which has several lists in it. The lists contain different types, but these types all derive from the same abstract class. I need to be able to iterate through all items (i.e. across and within the lists) as though all the lists were one. For various reasons, the lists must remain as separate objects. Furthermore, 'Class X' is inherited, and derived classes have additional lists...
My solution was to create an array containing these lists (which makes iterating with an unknown number of lists very easy), but I hit problems very quickly (e.g. see code below). Can anyone show me how to do something like this, or find a more elegant way to do it?
Here's a much smaller, simple example of the kind of thing I'm trying to do:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
abstract class A
{ }
class B : A
{ }
class C : A
{ }
class ClassX
{
static void DoStuff()
{
List<B> listB = new List<B>();
List<C> listC = new List<C>();
List<A>[] arrayOfLists = new List<A>[2];
arrayOfLists[0] = listB;
arrayOfLists[1] = listC;
arrayOfLists[0] = listB.Cast<A>().ToList();
List<List<A>> listOfLists = new List<List<A>>();
listOfLists.Add(listB);
}
}
}
Thanks!
Lee
|
|
|
|