for specifically that, you can use threadName.Join ()
it will stop the calling the thread till threadName finishes execution...obv iously standard warnings about threads apply...
User Profile
Collapse
-
interesting. invaluable personal opinion/experience...th anks
any specific links on the internet regarding c++?Leave a comment:
-
yes, true...
but, for example, in .NET all you have to do is start the thread and termination and resource reclamation is handled by the framework
any ideas for platforms for comparisons?Leave a comment:
-
Multithreading
What do you preferred for multithreading? .NET or C++?
i am doing a report on the caveats/advantages; any platforms for comparison? ideas? comments? -
Multithreading
What do you preferred for multithreading? .NET or C++?
i am doing a report on the caveats/advantages; any platforms for comparison? ideas? comments? -
Email format in c# [NOT sending/making it]
Hi,
Please bear with me if this sounds like a non-intuitive question. Anyone have any insights as to how System.Net.Mail Message class is implemented?
Does it construct a simple C/MIME string and append the properties to it? Does it do the following? The following is just a guess so I would really appreciate it if someone were to point me to something about email format(s)...
Code:string message = "To:
-
i got it working. thanks...had to put the stuff inside the while(!cancel) loop and the event on different threads to get it workinLeave a comment:
-
thanks for the skeleton, im trying the second part.
lets see if this doesn't help me out. thanksLeave a comment:
-
i actually have a similar question...thou ght id ask it in this thread rather than starting a new one
i have a infinite for loop that keeps on going. i want to make it so that if 'escape' key is pressed at anytime, the loop stops. whats the best way to do this?
im new to multithreading, delegates, and events but im thinking of having a key press event that is fired whenever the escape key is pressed and it stops the loop....Leave a comment:
-
Porting ASP.NET app from version 2.5 to 3.x
Hi,
I have a sample ASP.NET app that I run successfully with .NET 2.0. Now this app needs to run on .NET 3.5 or 3.0
What are some changes that I should look out for?
The most obvious one is assembly references in web.config, except I am not really sure what to change these to.
Code:<add assembly="System.Design, Version=2.00.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
-
its an unsigned activex, isnt it?
go to internet options > security > custom level
now set all the ActiveX options as you pleaseLeave a comment:
-
-
nothing.
ssl is a server issue. its got nothing to do with the runtime application. all you need to worry about are the links that point to your site as they will have to be changed from 'http' to 'https', which you already didLeave a comment:
-
post_max_size in php.ini needs to meet your requirement. maybe even upload_max_file size, not too sure about that though.
you can read/change these values at runtime using ini_get() and ini_set()
also, ini_get() and ini_set() don't work with all settings. youll have to find out if they will work with post_max_size.. .i cant rememberLeave a comment:
-
That's what I came up with except I didn't know how to test it.
For the two snippets above, I wasn't really concerned about the end result of the function, just wanted to see the "inner workings" because yeah, both will return a char[] except the first snippet doesn't really need to.
Thanks for all the replies and clearing that up!...Leave a comment:
-
Passing parameters by reference
Code:private char[] getSeparators(ref string[] varfiles)
Code:private char[] getSeparators(string[] varfiles)
As far as I know, the first piece of code will pass varfiles by reference so that varfiles will be changed by getSeparators when control is passed back to the calling method.
What gets passed to getSeperators by the second piece of code? -
Yup, I was thinking about abstracting it out too. Except that I will have to go through the source and replace MessageBox.Show ()....worse comes to worse, thats what I am gonna do...
I did realize that Show is a static method...so I guess abstraction is the best way to go.
Thanks peopleLeave a comment:
-
Thanks for your replies.
I am not programming anything right now. This is just something I have been wondering in my "free time". Don't think I know enough about security to get hired as a financial developer just yet.
Also, whats wrong with Buy() being static? Sure, it can be called by anything, but if its return type is 'void' or 'bool', does it really matter? Good programming practice?Leave a comment:
-
Sorry about the 'edit' confusion because of lack of reason. I should have added the "EDITED" caption....
Anyways, by 'override', I meant having the implementation of the override keyword. For example. ToString() is defined for every type, but you can still use the 'override' keyword and define a custom ToString() function.
I was hoping for something like that (of course, it wouldnt be using the override keyword)...Leave a comment:
-
yeah GetType() and typeof work
okay, now if I have a class Card with two instances running at the same time:
Card creditCard = new Card();
and
Card debitCard = new Card();
and they both call the function Card.Buy(), how would Buy() determine if it should take money from creditCard or debitCard?Leave a comment:
No activity results to display
Show More
Leave a comment: