CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Nick Darlow

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: StackFrame GetFileLineNumber behaviour in catch block

    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...
  2. Replies
    7
    Views
    7,390

    Re: Send data from one Win form to another

    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...
  3. StackFrame GetFileLineNumber behaviour in catch block

    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 }
  4. Replies
    2
    Views
    1,210

    Re: Background Assembly Load

    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.
  5. Replies
    2
    Views
    1,210

    Background Assembly Load

    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...
  6. Varying beep period and pitch in .NET / C#

    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...
  7. Replies
    3
    Views
    6,243

    Re: __FILE__ Absolute Path using GCC

    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...
  8. Replies
    3
    Views
    6,243

    __FILE__ Absolute Path using GCC

    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...
  9. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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.
  10. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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...
  11. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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...
  12. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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...
  13. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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...
  14. Replies
    19
    Views
    2,988

    Re: STL Map Destruction Cost

    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...
  15. Replies
    19
    Views
    2,988

    STL Map Destruction Cost

    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...
  16. Replies
    10
    Views
    957

    Re: Operator Overloading Problem

    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...
  17. Replies
    0
    Views
    904

    Developer Work Log / Record Book

    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...
  18. Replies
    6
    Views
    803

    Re: Segmemtation Fault

    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...
  19. Replies
    6
    Views
    803

    Re: Segmemtation Fault

    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.
  20. Replies
    3
    Views
    821

    Re: Makefile Help

    I would like to know how makefiles work under the hood. Thanks for the suggestion though.
  21. Replies
    3
    Views
    821

    Makefile Help

    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...
  22. Replies
    21
    Views
    1,518

    Re: determine if a string is pure or not

    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...
  23. Replies
    4
    Views
    31,656

    Re: pthread_kill and SIGKILL

    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...
  24. Replies
    4
    Views
    31,656

    pthread_kill and SIGKILL

    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 )...
  25. Re: Problem comiling template with nested classes

    Ahh OK. I had misunderstood the use of typename / typedef in combination. Thanks for your help. All working now.
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured