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.
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.
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 it posible to avoid this behavior?
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 accept requests.
TcpClient client =…
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 done in 5ms. I am looking for a HTTP…
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 into problems that are best described…
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 isKeyboardAvtive = true; //read from…
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 TFSBuildService.exe.config file, pointing…
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 managing the threads. But the thing is that…
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 everything seems ok (It has a private key,…
Hello,
I have a webtest with makes a simple call to a WebService which looks like that:
MyWebService webService = new MyWebService();
webService.Timeout = 180000;
webService.myMethod();
I am not using ThinkTimes, also the Run Duration is set to 5 minutes.
When I ran this test simulating only 1 user, I check…
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 more optimized. Does anyone of you know it?
I need to use two libraries in a commercial product that i'm developing at work.
One library is under the Ms-PL license and the other is under Apache License Version 2.0.
I know that Ms-PL is not compatible with GPL according to the FSF, and that the Apache License Version 2.0 is only compatible with GPLv3 (and…
Is it possible to run PHP Zend test cases (those that extend Zend_Test_PHPUnit_ControllerTestCase, etc.) through Eclipse PDT?
I would like to be able to run them in a similar fashion as you run JUnit tests in Eclipse, by right-clicking the test file and selecting "Run as a JUnit test case."
I'd love to see…
You'll appreciate the following two syntactic sugars:
lock(obj)
{
//Code
}
same as:
Monitor.Enter(obj)
try
{
//Code
}
finally
{
Monitor.Exit(obj)
}
and
using(var adapt = new adapter()){
//Code2
}
same as:
var adapt= new adapter()
try{
//Code2
}
finally{
adapt.Dispose()
}
Clearly the first example in…
Following up from: http://stackoverflow.com/questions/3021557/as3-printing-problem-blanks-swf-after-print-or-cancel
I am trying to comeup with a function to print without creating a sprite, because that's what it seems to be causing my problem:
public function printScreen():void {
var…
Hi, I've been working in the creation of some custom components adding functionalites to the basic components such as a Datagridview.
Now I want to create a custom Form ... I mean, when I choose add new item in the VS menu, there is a Windows form and some varians of it like an about box, or…
I have written a C++ program for a University assignment. I used Netbeans 6.8 running on my Mac and the code runs smoothly, no warnings, errors or problems/bugs. However when compiling and running on a Windows computer using CodeGear RAD Studio 2009 (C++ Builder) am getting several errors.
…
JSR-275 has been rejected, the Units of Measurement API for Java project is a set of interfaces, but haven't found an open source implementation.
On this post: Which jsr-275 units implementation should be used? the project owner mentions the implementation was going to be ready by the end…
Hello everyone!
I've read about intents in android but here goes my question. I'd like to launch an app on my android phone with the click of a link in the web browser. Example:
If the link is "mycam://http://camcorder.com", "mycam://" acts as some kind of "tag" to launch my app but I'd…
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…
Hello ! i have a datatable with multiple rows , i want to put one link to redirect the values to one Servlet . the old call that i use is similar like this :
a onclick=openWindow('./Servlet?param1=xx¶m2=xxx')
I m newbie in icefaces ... i want your help because i can…
How can I import all files and classes into my AIR bundle... it must take a note that I created first a flex project, and set it's main class as Actionscript (.as) .
When I build a release all my imports (org) etc.. are not included in the .AIR installer... i have checked…
Hi,
I'd like to know how to prevent showing of sub-category posts. My home page lists all posts from three "main categories" (parent category), but unfortunately it's also listing some posts from the sub-categories.
Here's the code that I'm using to get the posts from…
I'm writing a test engine for a Java application that has some of the code written in C. This application uses JNI to access it's native part.
In the engine I'm writing, I use Fest to control de UI and perform the tests. However, I,m blind when dealing with the part…