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

Search:

Type: Posts; User: nsh123

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    795

    Finding a memory leak

    We have a memory leak in our application.
    I have instrumented the application code such that every malloc (size and address), every realloc new size and address) and every free(address) is logged...
  2. Replies
    0
    Views
    723

    Overriding malloc/free functions

    Hi,
    Actually this question is not strictly .NET but relating to the .NET environment.
    I have a library that efficiently implements heap management.
    I want to use this library in my...
  3. Thread: Copy files

    by nsh123
    Replies
    15
    Views
    2,660

    I know its easy. I wanted to make sure i do...

    I know its easy.
    I wanted to make sure i do not reinvent the wheel. Especially when it not going to do any good in performance.
  4. Thread: Copy files

    by nsh123
    Replies
    15
    Views
    2,660

    Thanks. Windows should be fine. Does the...

    Thanks.
    Windows should be fine.

    Does the moving of the thread imply no non-visual C++ support to copy files ?
  5. Thread: Copy files

    by nsh123
    Replies
    15
    Views
    2,660

    Copy files

    Hi,
    I am writing a C console application in .NET 2003 IDE.
    Is there any function to copy file(s)
    I have included "direct.h" header file but it does not seem to support copying file.
    I...
  6. Replies
    2
    Views
    806

    Should I assume this is not possible? I...

    Should I assume this is not possible?


    I had considered having another program which itself alllocates some memory and does nothing with it.
    But the problem is this would actually allocate...
  7. Replies
    2
    Views
    806

    Forgot to mention, I am working on MS Windows...

    Forgot to mention, I am working on MS Windows 2000 Advanced Server.
  8. Replies
    2
    Views
    806

    Restricting Available Main Memory

    Hi,
    How can I restrict the avaiable memory for an application?
    I am doing some kind of scalability testing.

    Thanks.
  9. C++ int main() is ok. As we are dicussing C, it...

    C++ int main() is ok. As we are dicussing C, it is strictly int main(void).

    regards

    Mike
  10. Replies
    6
    Views
    895

    Hi, I dont think there is some standard...

    Hi,
    I dont think there is some standard for how the code is generated for a switch case stmt.

    If you have a if else if block and if you keep the more probable conditions ahead then it...
  11. Replies
    3
    Views
    529

    Hi, To be precise the problem is in the...

    Hi,
    To be precise the problem is in the statement


    increment( *pj );


    You are passing some temporary variable to the increment function.

    And n (in increment)...
  12. Thread: Machine id?

    by nsh123
    Replies
    6
    Views
    2,330

    Hi, IMO this depends on your OS. If...

    Hi,
    IMO this depends on your OS. If your OS does write some machine id( if there exists one at all) then it is possible. Win and Linux both do not write any such information.
    If you...
  13. Thread: Confusion?

    by nsh123
    Replies
    7
    Views
    697

    just a thought. Is it possible to have a...

    just a thought.
    Is it possible to have a destructor for the defined types.
  14. Thread: Optimization

    by nsh123
    Replies
    5
    Views
    864

    Re: optimization

    with the code you posted, i dont think they get initialized.

    Also looking at the variable it seems that they are to be initialized once and for all.
    And thus in that sense it does improve speed,...
  15. Replies
    8
    Views
    809

    Are you saying that by ANSI C it is correct that...

    Are you saying that by ANSI C it is correct that float * and int * can take different sizes?

    IMO then using void pointers will make little sense.

    Regards
  16. Replies
    2
    Views
    15,702

    One open source comes with vncviewer/winvnc. This...

    One open source comes with vncviewer/winvnc. This is an ATnT developed code.
    The DES code is a part of this remote control application.
  17. Thread: fscanf issues

    by nsh123
    Replies
    5
    Views
    873

    doesnt getc(fptr) eat up one character from the...

    doesnt getc(fptr) eat up one character from the file (similar to fgetc)

    If it doesnt that is great way of avoiding something like ungetc.

    fgets followed by sscanf is the better approach.
    ...
  18. Replies
    2
    Views
    485

    Hi, Use memory for storing marices only...

    Hi,
    Use memory for storing marices only if:
    1. Efficiency is a big concern
    2. Your matrix is of small dimensions and you do not have too many matrices to store.
    ...
  19. Replies
    4
    Views
    2,024

    Are you suggesting to use something like extern...

    Are you suggesting to use something like
    extern const int x ?


    To be very precise my problem is because I compile in stages
    first main.o is created
    then abc.o is created
    both have space...
  20. Replies
    4
    Views
    2,024

    Yes I did One more finding I am using C....

    Yes I did

    One more finding
    I am using C. Also using constants are allowed as per the new C standard

    The other thing i just found
    is that if i use #defines instead of const int things work...
  21. Replies
    4
    Views
    2,024

    multiple declaration error

    I have three files say

    common_defs.h

    main.c
    #includes common_defs.h as well as common_defs.h
    contains the main function

    abc.c
    #includes common_defs.h
  22. Replies
    12
    Views
    1,558

    Cornedbees subconcience + Your conscious = great...

    Cornedbees subconcience + Your conscious = great brain !!!

    Anyway thank you for the links

    Regards
  23. Thread: _Complex type

    by nsh123
    Replies
    2
    Views
    600

    Thanks Chirs, I solved the problem. Actually I...

    Thanks Chirs,
    I solved the problem. Actually I was talking w.r.t C (sorry for not mentioning)


    Regards
    Mike.
  24. Thread: _Complex type

    by nsh123
    Replies
    2
    Views
    600

    _Complex type

    How do i print real and imaginary values in _Complex type variable ?

    Thanks in advance

    Regards
  25. Replies
    12
    Views
    1,558

    '\b' was the closest, but I had tried that before...

    '\b' was the closest, but I had tried that before posting. Doesnot put the cursor a line up.

    Cornedbee, I would like to know why you wrote \h unless even this mail had a typo. ;)
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured