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

Search:

Type: Posts; User: gleesonger

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: C# how to use LOOPS for linear programming models

    If you post up your question here I can have a look at it.
  2. Replies
    13
    Views
    2,473

    Re: Memory allocation performance

    I am aware of where the heap and stack are located (a result of which is the speed is the same) and how allocation/deallocation differs.
    Am I right in saying that in normal operation accessing...
  3. Replies
    13
    Views
    2,473

    Re: Memory allocation performance

    I tried that but I wasn't able to locate my function and even if I did I probably wouldn't be able to understand the code.


    Apologies, when I said debugging I was referring to how easy the...
  4. Replies
    13
    Views
    2,473

    Re: Memory allocation performance

    I am not calculating the time it takes to call the function just the loop\calculation it self. In the real application the doubles themselves will only ever be declared once using an "Initialize()"...
  5. Replies
    13
    Views
    2,473

    Re: Memory allocation performance

    I have selected a "Release" build. Are there more optimizations that can be selected in VS2010?


    I am only concerned with how fast the calculation (loop) executes. The timing (start = clock()) is...
  6. Re: C# how to use LOOPS for linear programming models

    If you want to use a loop then at each iteration of the loop you must be able to work out what to do.

    I can not see a way as is to loop the constraints but maybe with more information I might.......
  7. Replies
    13
    Views
    2,473

    Re: Memory allocation performance

    Here is the code I used when testing the relative performance of heap/stack.
    The results was that the heap ("double*") was 30% faster than the stack ("double").
    Is there something funny going on,...
  8. Replies
    13
    Views
    2,473

    Memory allocation performance

    Hi,

    (You can skip straight to the section "Specific questions" instead of reading all the other stuff)

    Project background
    I build alot of models in excel then manually compile them in java....
  9. Replies
    6
    Views
    1,630

    Re: Native Threads

    Apologies I understand now why you posted your first reply, but again the same results which is why I am puzzled.

    I can still produce multiple MessageBoxs at the same time by dropping targets...
  10. Replies
    6
    Views
    1,630

    Re: Native Threads

    But it blocks the thread it is running on until I release it by pressing ok (which I dont do)
    Its the same as if I replaced it with
    Console.WriteLine("Blocking Thread " + Thread.Id);
    ...
  11. Replies
    6
    Views
    1,630

    Re: Native Threads

    The screenshot is a result of the code posted above. The drop drag event was fired by dropping two different files onto the main form, and not allowing either MessageBox return

    The number (8) and...
  12. Replies
    6
    Views
    1,630

    Native Threads

    Can somebody point me towards an article or explain the following and how to deal with it properly in .Net.

    Sometimes when using shell interaction I arrive at a situation where by it appears that...
  13. Replies
    10
    Views
    21,028

    Re: File Copy Progress Bar

    Copy the file in chunks on one thread and use callbacks to set the progress bar value.
    On my own laptop through trial and error I found that the lowest amount I could read but still be io efficient...
  14. Replies
    2
    Views
    2,370

    Re: Insert formula in excel

    Are you trying to create\manipulate an excel file from csharp code?
    If so, yes it's quite easy.

    This shows a very good example of how to do the basics.
    ...
  15. Replies
    8
    Views
    6,686

    Re: ToolStripStatusLabel Bug

    While debugging its fine, but then the same conditions are not, as whenever I run it from the ide the form is always displayed on top, however if I run the same exe (\Debug\application.exe) directly...
  16. Replies
    8
    Views
    6,686

    Re: ToolStripStatusLabel Bug

    No im not doing anything unusual, its a standard toolstriplabel thats been added through the designer, all of the parent controls are standard and the paint control is not overriden and as far as I...
  17. Replies
    8
    Views
    6,686

    Re: ToolStripStatusLabel Bug

    Ye I tried that, no luck.

    I found a horrible solution:


    private void MainForm_Load(object sender, EventArgs e)
    {
    timPaint.Tick += new EventHandler(timPaint_Tick);...
  18. Replies
    8
    Views
    6,686

    ToolStripStatusLabel Bug

    I have the most annoying bug appearing in the framework thats doing my head in.
    When ever my form is displayed and it appears behind another window a ToolStripStatusLabel in the bottom left does not...
  19. Replies
    4
    Views
    1,079

    Re: Application Block Calling Thread

    Yes I had thought of that (option 2 above) but I'd prefer not to see the flicker of the console window, tho I think thats how i will probably end up doing it.
  20. Replies
    4
    Views
    1,079

    Re: Application Block Calling Thread

    I havn't got access to my machine to test anything at the moment but what you described above is not what I'm after, I'll try and explain better

    If you use the windows ssh tools plink and putty;...
  21. Replies
    4
    Views
    1,079

    Application Block Calling Thread

    Im not sure if the title is correct but what I wish to do is for my app (compiled as a windows form app) to block until it exists, the app has two parts the gui mode and the cmd line mode which has...
  22. Replies
    4
    Views
    1,321

    Re: Form Infinite Loop Problem

    The nicest way I can think of this been done is as follows;

    {
    Tag the Renamer form with the Node
    Set the default text as the nodes text
    Set location
    Set a close event
    show the form (Not...
  23. Re: How to make a single instance application refresh with command line args

    No you maintain a file lock, the mere existence of the file doesn't indicate anything, only the failure to obtain the lock indicates a second instance of the application.
    I think firefox uses this...
  24. Re: How to make a single instance application refresh with command line args

    Fair enough, I know vey little about mutexs except how to implement them in the simple circumstances (ie try to apply mutex,catch an error => another instance is running) so its more likely there was...
  25. Re: How to make a single instance application refresh with command line args

    Just throw a spanner in the works I dont think mutexs are a great way of implementing single instance application, I know they have failed for me once or twice on the rare occasion.
    I now create a...
Results 1 to 25 of 36
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured