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

Search:

Type: Posts; User: Rajesh1978

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Handing more than one exception at a time

    Thanks. Now i undersood
  2. Re: Handing more than one exception at a time

    Very good knowledge is being exchanged.
    Thanks to all gurus

    Now my real question is repeated


    I meant the above quoted thing in the beginning.

    question is why two exceptions can not be...
  3. Handing more than one exception at a time

    It is advisable not to throw the exception from destructor. Because if exception happens stack unwinding happens. suppose the destructor again throws the exception then on part of first exception...
  4. Replies
    14
    Views
    717

    Re: stat() system call

    I even tried with set. Not much difference i see.
    In all the cases i see stat is faster.
    May be it is chacheing and using the the entries from the cache.

    also the operation is happening in a...
  5. Replies
    14
    Views
    717

    Re: stat() system call

    unordered set is there in c++ 11. As I am using older gcc compiler I do not have that.
    One more thing is there any system call in linux which notifies the changes in a directory ?
  6. Replies
    14
    Views
    717

    Re: stat() system call

    I tested with below scenario.
    1. I put 15K files on a directory
    2. used stat command to check the existance of some 5 files
    Time taken 2 miliseconds
    3. Did same thing using opendir. Loaded all...
  7. Replies
    14
    Views
    717

    Re: stat() system call

    i am accessing the location every 1 sec. Some time 3-4 files of size 800k is getting added per 1sec.

    I am getting delay once the number of files are more in the path
  8. Replies
    14
    Views
    717

    Re: stat() system call

    I want to check some 5 files one at a time.
    New files get added 2/min in that path.
  9. Replies
    14
    Views
    717

    stat() system call

    Hi,
    I am using stat command to check the existence of a file in a directory.

    The directory is having some 10K files. I feel the stat() call is expensive as i do not need the structure to be...
  10. Replies
    2
    Views
    474

    Re: Multi threaded insertion into STL Map

    Yes without synchronization there will be lot of problem.

    Thankss
  11. Replies
    2
    Views
    474

    Multi threaded insertion into STL Map

    Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
  12. Re: calling mem ber function by object pointer

    Thanks u all
  13. calling mem ber function by object pointer

    Hi,
    I have the following piece of code.


    #include<iostream>
    using namespace std;

    class Test
    {
    public:
  14. Replies
    6
    Views
    575

    Re: Reference and const pointer

    Thanks.
    So is it wrong to say Reference is constant pointer?
  15. Replies
    6
    Views
    575

    Reference and const pointer

    Hi,
    what is the advantage of using reference over constant pointer?
    Can they be used interchangeably?
  16. Re: [RESOLVED] Implicit default ctor - what is it for?

    Thanks laser.
    Now it seems to be correctly resolved thread
  17. Re: Implicit default ctor - what is it for?

    I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
    Think that I have all the POD attributes then what is the use?
    Also...
  18. Replies
    11
    Views
    1,362

    Re: virtual destructor

    If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
  19. Replies
    4
    Views
    477

    Re: Using Comparator in Set

    Thanks.
  20. Replies
    4
    Views
    477

    Re: Using Comparator in Set

    Thanks.
    I got it now.

    while testing this i got one more confusion.

    if i make the comp as below



    class comp
  21. Replies
    4
    Views
    477

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  22. Replies
    3
    Views
    603

    Re: 2 Argument Conversion Function

    This i did not get from any book or tutorial;
    I thought logically it should work.

    In the first case when Demo d=100 ( constructor with one argument is called)
    It is same as Demo d(100) ->the 1...
  23. Replies
    3
    Views
    603

    2 Argument Conversion Function

    i have used single argument conversion function which gets called in below scenario.



    #include<iostream>
    using namespace std;

    class Demo
    {
    public:
  24. Replies
    9
    Views
    1,447

    Re: Final Class in c++

    There is not keyword like "final" is present in c++
  25. Replies
    9
    Views
    1,447

    Re: Final Class in c++

    One more doubt. why the most derived class calls the virtual Base class directly
Results 1 to 25 of 236
Page 1 of 10 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center