Search:
Type: Posts; User: Nick Darlow
Search:
Search took 0.02 seconds.
-
October 5th, 2010, 03:17 PM
The StackFrame class member function GetFileLineNumber returns the line number where the StackFrame constructor is called. There are two calls to the StackFrame constructor; lines 16 and 21. The...
-
October 3rd, 2010, 12:59 PM
See the documentation for System.Windows.Forms.OpenFileDialog (http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx). A file dialog is used in the way you describe. It is...
-
October 3rd, 2010, 12:17 PM
I have the following code in a C# console application
08 static void Main(string[] args)
09 {
10 try
11 {
12 throw new Exception();
13 }
-
Can anyone suggest a standard assembly that takes a few seconds to load? I could manually load this with Assembly.LoadFile and check if the application remains responsive.
-
My GUI application uses a control from a third party assembly. When the control is first instantiated it loads the assembly which takes several seconds and during this time my application is...
-
January 7th, 2010, 12:47 PM
I wish to represent a linear numeric value using an audible output. I am considering the following options
1] A continuous tone with modulating frequency. This would be like using a metal...
-
September 8th, 2009, 03:45 AM
Thanks Zuk. This may well be a solution although I would prefer one that is just a build flag / option and does not require source changes. Your solution would require modifying every file in the...
-
September 7th, 2009, 06:19 AM
I have some C++ Windows code which uses __FILE__ and relies on the value being an absolute path. I'm trying to port the code to Linux and when compiling using GCC 3.2.3 the value of __FILE__ is...
-
Yes I think I've got as much useful information as I can from my simple code now. Thanks everyone for your comments and thoughts. Much appreciated.
-
The destruction time is not output by the code. I calculated it myself by subtracting construction and iteration time from the total time (timer3).
CTimer is my own class. It uses the windows high...
-
I retimed the code using your suggestions Paul and found there little difference between creating the map on the stack vs the heap. Thanks for the suggestion though. Here's the code
#include...
-
Thanks for your comments. I attempted to make my test representative of the real code that I am working with. I have a map in a boost shared pointer therefore I was interested in the time taken to...
-
Thanks for all your comments. I have revised my code to ensure the map iteration is not optimised out. Running the release version outside the IDE now gives 41.4ms for creation, 1.6ms for iteration...
-
June 30th, 2009, 04:48 PM
Thanks for your suggestions. I had hoped assigning to a local would have prevented the loop being optimised out. Anyway, running the code in Debug mode where it definitely isn't optimised out shows...
-
June 30th, 2009, 12:40 PM
I have a small test application (attached) which creates an STL map containing 100,000 elements (153ms), iterates through the map (3.3ms) and the destroys the map (1188ms). Why is destruction so...
-
November 10th, 2008, 08:35 AM
Just to re-emphasise .. you cannot use the [] operator on 'edges' because it's a list. Lists do not support this operator. You need to iterate through 'edges' instead.
Changes
+ For loop body...
-
April 2nd, 2007, 12:01 PM
I keep a detailed record of the work I do as a developer which I am sure many others do as well. At the moment it's a text file which I append with notes, code snippets and the like. The problem is...
-
January 16th, 2007, 09:57 AM
Oops! I paid a little more attention to the post date this time. Considering DevLip's original post is almost 3 years old I'm guessing he's fixed the problem...
-
January 15th, 2007, 07:58 AM
Did you get an answer to this? Crashing at 10MB sounds like you're overflowing your stack. Check anything big you're using is allocated on the heap.
-
September 29th, 2006, 09:01 PM
I would like to know how makefiles work under the hood. Thanks for the suggestion though.
-
September 29th, 2006, 06:16 PM
My makefile successfully builds my code however I want it to do a couple of other things..
1 - All .o files should end up in a subdirectory called .objects
2 - The default rule should be...
-
September 13th, 2006, 07:20 AM
I wrote a solution to this last night but I see others have beaten me to post! I have used the hashtable concept resulting in O(N) complexity. I'm going to post it anyway now I've written it as it's...
-
September 13th, 2006, 06:49 AM
Thank you. I will look into this further.
In answer to your question, I need to test the server response to a socket failing catastrophically. Situations where this might occur would be the client...
-
September 12th, 2006, 08:48 AM
I have a multithreaded application using pthreads. I wish to kill a thread immediately without the thread performing any cleanup, destructor calls etc. I have used pthread_kill( threadID, SIGKILL )...
-
September 7th, 2006, 05:43 AM
Ahh OK. I had misunderstood the use of typename / typedef in combination. Thanks for your help. All working now.
|
Click Here to Expand Forum to Full Width
|