Hi.
Imagine i have a program doing a lot of things wasting about 90% of CPU.
I need a way to know (through visual studio) where the program are wasting CPU.
Thanks
I'm trying to write a shell extension using C# however I haven't found any example on the web about how to use SHCreateShellFolderView windows API function. Does anyone has some example of how to use it?
I'm trouble to use it on Windows 7.
Is it possible to catch a method in the current class the try-catch block is running on? for example:
public static void arrayOutOfBoundsException(){
System.out.println("Array out of bounds");
}
.....
public static void doingSomething(){
try
{
if(something[i] >= something_else);
}
catch…
How do I make a UIImageView show the "shadow" of the the UIImage in it?
I have a dog.png file, but I just want to show the shadow of the UIImage so when I press a button it reveals the real image of the dog. so I want something like this:
and after I press the button It shows the real Image:
Please give me a hand on this.
Given the adjacency matrix of a graph, I need to obtain the chromatic number (minimum number of colours needed to paint every node of a graph so that adjacent nodes get different colours).
Preferably it should be a java algorithm, and I don't care about performance.
Thanks.
I'm trying to write a shell extension using C# however I haven't found any example on the web about how to use SHCreateShellFolderView windows API function. Does anyone has some example of how to use it?
A few days ago I was in charge of the development of some webServices for a client, the thing is that the client also asked for a php client that consumes the webservices. The service were published online on a server, with public access, right now I can see the wsdl from any computer, but when trying to consume it with PHP it…
I have a .NET solution which was badly organised, so I moved some projects around to appropriate folders. In the solution, I simply fixed the paths to the new locations, and everything is working in my working copy.
I used AnkhSVN to commit the solution to the repository, which worked out fine as well.
However, when I look…
Hi!
I'm trying to connect to one URL that I know that exist but I don't know when.
I don't have access to this server so I can't change anything to receive a event.
The actual code is this.
URL url = new URL(urlName);
for(int j = 0 ; j< POOLING && disconnected; j++){
HttpURLConnection connection =…
I'm trying to understand what is the correct why to implement COM interfaces from C# code. It is straightforward when the interface doesn't inherit from other base interface. Like this one:
[ComImport, Guid("2047E320-F2A9-11CE-AE65-08002B2E1262"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public…
I'm writing an app that parses a very large logfile, so that the user can see the contents in a treeview format. I've used a BackGroundWorker to read the file, and as it parses each message, I use a BeginInvoke to get the GUI thread to add a node to my treeview. Unfortunately, there's two issues:
The…
Hi,
I’m trying to set up a range with a slider. I would prefer if both cursors did not overlap in the same value. In other words, how do I get the sliders to freeze and stay put when the minimum value slider and the maximum value slider come next to each other. Any ideas? Thank you in advance.
I registered a cron job in the google appengine. It runs fine. Since I deleted the whole content of the app, I want this job to not run anymore. I don't know how to do it.
Imagine i have a program doing a lot of things wasting about 90% of CPU.
I need a way to know (through visual studio) where the program are wasting CPU.
Hi, is there a way to avoid form closing when adding or editing a row.
Jqgrid is working perfectly in our application, but there is a little problem, when the user is editing or creating a row via form editing and the user clicks outside the form's modal, the modal closes and the changes are lost. Is…
Hello i am using the latest version of artoolkit, and succesfully compiled simplevrml, but it doesn't show any textures not even the ones in the bud_B example.
Does anyone have a similar experience or problem or have solved this?
Thanks in advance.
Is there any way of dealing with sessions with sockets in C#?
Example of my problem:
I have a server with a socket listening on port 5672.
TcpListener socket = new TcpListener(localAddr, 5672);
socket.Start();
Console.Write("Waiting for a connection... ");
// Perform a blocking call to…
When dealing with mobile clients it is very common to have multisecond delays during the transmission of HTTP requests. If you are serving pages or services out of a prefork Apache the child processes will be tied up for seconds serving a single mobile client, even if your app server logic is…
I've got a C# form, with various controls on it. The form controls an ongoing process, and there are many, many aspects that need to be right for the program to run correctly.
Each part can be unit tested (for instance, loading some coefficients, drawing some diagnostics) but I often run…
I have the following question: I have a Boolean variable in a configuration file. If it is true I want a property in textbox control to be setup according to the value of that variable.
Try the solution above but it does not work. What am I doing wrong?
This is a fragment code:
bool…
I’m working on the build process for a VS 2010 solution and some projects within it target the .NET framework 4.0. As far as I know, to have this type of solution built by TFS 2008 we will have to change the version of the MSBuild.exe file used by the build agent – modifying the…
Maybe this question has been asked many times before, but I never found a satisfying answer.
The problem:
I have to simulate a process scheduler, using the round robin strategy. I'm using threads to simulate processes and multiprogramming; everything works fine with the JVM…
I'm creating a x509 certificate using makecert with the following parameters:
makecert -r -pe -n "CN=Client" -ss MyApp
I want to use this certificate to encrypt and decrypt data with RSA algoritm.
I look to generated certificate in windows certificate store and…
Does anyone know what C# compiler does under the hood with the following code?
dict = new Dictionary<int, string>()
{
{ 1, "value1" },
{ 2, "value2" }
}
It is not clear to if it creates the KeyValuePair instances and call the Add method, or do something…