Hi guys,
In my app, I have a thread that runs continuously. By using Thread.Sleep(), the function executes every 10 minutes.
I need to be able to kill this thread when a user clicks a button. I know Thread.Abort() is not reliable. I can use a variable to stop the thread, but since it is sleeping it could be another 10 minutes before th...
What is the difference between the 2 ? some examples would be great! thnx
...
Here is the code :
Chess(z).BackColor = #FFFFFF
It is not working, how to make it work :))
...
We have an asynchronous backend service, which has a synchronous webservice interface (So basically the client has to call the interface twice).
To improve this, we are thinking about moving to a message queue based interface or an asynchronous web service.
Since I'm not familiar with asynchronous web service, I'm not sure how to c...
I have a winform app and i would like to listen to a specific port and be able to visit the app through a browser. I know how to use HttpRequest and HttpResponse in asp.net project. But is there a way to use them in a winform app? or a variant of them? Currently i am using TcpListener and i need to write out my response and parse the req...
My Silverlight (4.0) app (hosted by ASP.NET website) uses 4 projects, they all use one file with assembly version:
[assembly: AssemblyVersion("1.0.*")]
The version of currently displayed application is 1.0.3842.38865, but the newer one (1.0.3854.42448) is uploaded to server recently.
The problem is that browser doesn't load new Silve...
More and more I realized that without jumping into the code details, I cannot really understand the how CLR works.
So could you recommend some good books on SSCLI (Shared Source CLI)?
Many thanks.
...
I have a production box (Windows Server 2008) where no visual studio is installed. Can I use GACUTIL there...If so where can i find the gacutil exe in that machine
...
Wesner Moise used to write about a static analysis tool called nStatic for .NET which looked really exciting. This was a few years and nothing has been published since.
Does anyone know what's happened to the tool, or in fact, Wesner himself?! I hope he's OK, his last post about nStatic development explained that he'd had some health ...
Hi,
I want to show a splash screen to user when user runs an application. It is possible to show a splash screen when loading windows form but, is there any i can show a splash screen when my application is being launched i mean when .net framework is loading in the memory.
Thanx
...
I wanted to know if there are any conventions regarding disposal of disposable items nested inside another disposable item(in a property/public field, not as private members). For example, a DataSet contains DataTable(s) and a SqlCommand contains a SqlConnection.
The obvious thing would be for a class to dispose of all Disposable items ...
How would I wire up StructureMap with the following:
public Interface IRepository<T, TIdentity>{}
public abstract class Repository<T, TIdentity> : IRepository<T, TIdentity>, other interfaces
I have many concrete implementations of Repository and need StructureMap to wire them up automatically.
public class JournalRepository : Reposit...
Hi,
I am using RijndaelManaged in my current project to encrypt data , is there any way tht I can check whether the data is already encrypted or not so i don't end up encrypting it twice?
...
Hi,
I was trying to Start a diadem instance using a VC dll from my vb .net code. I'm getting the following error.
**System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="SDAS"
StackTrace:
at SDAS.SDAS.Program.Inv...
like
TakeScreenshot(new Rectangle(0,0,100,100), "output.jpg");
...
I've just recently reinstalled Windows 7 x64 on my box. The installation succeeded and I've had no issues with the operating system as a whole. I believe there is a configuration issue with either Windows or .NET x64.
Symptoms
The default build configurations for new projects is Debug|x86. This doesn't feel right. I'm running an x64 O...
Are there any changes to the CodeDom API in .net 4?
http://msdn.microsoft.com/en-us/library/y2k85ax6.aspx
new features
bug fixes
things marked as obsolete
...
Hello,
I'm a beginner in WCF, which I have chosen instead of Web Services because all articles and blogs I've read seem to point out that ASMX is old news.
I have read a bit about the differences between old Web Services and WCF, and I got the general idea. I also took the MSDN WCF tutorial which seemed simple enough.
My problem is th...
I have a windows app which is just a form with a timer control on. I've managed to track this down to the following situation:
private void timer1_Tick(object sender, EventArgs e)
{
MessageBox.Show("Test");
timer1.Enabled = false;
}
Will print Test again and again until I stop the program. However:
private void timer1_T...
I have a list of upwards 3,000 decimal values and for each one I need to lookup another decimal value from a SQL Server database. Currently I'm using the .Net SqlClient classes.
Making 3,000 queries seems inefficient, but I'm not sure if there's a neat efficient way of combining the queries into few calls.
The lookup table currently con...