Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for ermithun

i have a file, say , abc.log which contains data like, [code] 123_1 123_2 123_3 123_4 123_5 123_6 123_7 123_8 123_9 123_3 123_5 123_3 123_7 123_6 123_1 123_3 [/code] [COLOR="Red"]As we can see, there are 16 rows. Now i need to grep for a pattern like '123_*' but want to …

Member Avatar for Dream2code
0
92
Member Avatar for ViLeNT

I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?

Member Avatar for ermithun
0
93
Member Avatar for ermithun

I have written a sample code, [code=syntax] class A { public: void func1(X *ptr); }; class B { public: void func2(X **ptr); }; void A::funct1(X *ptr) { //some code here } void B::funct2(X **ptr) { //some code here X *ptr; *ptr->func1(*ptr); } main() { B Bobj; X **ptr; Bobj.funct2(**ptr); return …

Member Avatar for daviddoria
0
90
Member Avatar for ermithun

I have written a sample test code as, [code=syntax] Class A { main () { A *a; B *ptr; B* A::func() const { [COLOR="Green"] B* ptr = new B; return B; [/COLOR] } } [/code] and [code=syntax] Class B { [COLOR="Green"] // some code accessing the func() in class A …

Member Avatar for ermithun
0
99
Member Avatar for ermithun

Hello All Can anyone help me to understand the below log line which got generated when segmentation falut occurred, [code=syntax] /data/runtime/myprog/LDAPv3SL/prodlib/libLDAPv3SL_impl.so:std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::erase(std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator,std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator)+0xf4 [ Signal 368 ] /data/runtime/myprog/LDAPv3SL/prodlib/libLDAPv3SL_impl.so:LDAPControlSet::~LDAPControlSet()+0xb0 /data/runtime/myprog/LDAPv3SL/prodlib/libLDAPv3SL_impl.so:LDAPConstraints::~LDAPConstraints #Nvariant 1()+0x6c [/code] i simply dont have any idea on the first few lines of the code, [code] …

Member Avatar for Tom Gunn
0
114
Member Avatar for ermithun

Hello All please help me understand the below code snippet, [code=syntax] LDAPControl** LDAPControlSet::toLDAPControlArray() const{ DEBUG(LDAP_DEBUG_TRACE, "LDAPControlSet::toLDAPControlArray()" << endl); if(data.empty()){ return 0; }else{ LDAPControl** ret= new LDAPControl*[data.size()+1]; CtrlList::const_iterator i; int j=0; for(i=data.begin(); i!=data.end(); i++,j++){ ret[j] = i->getControlStruct(); } ret[data.size()]=0; return ret; } } [/code] please note in the above code, data …

Member Avatar for Sky Diploma
0
77
Member Avatar for ermithun

Hello All Can anyone provide me a sample code, executing which generates a segmentation falut. need to understand how it works. Thanks.

Member Avatar for mvmalderen
0
183
Member Avatar for ermithun

Can anyone help me to let me know whats happening in the below code when , [code] data=cs.data;[/code] happens as FYI, data is an empty list created of type std::list and the constructor definition given below is a copy constructor [code=syntax] LDAPControlSet::LDAPControlSet(const LDAPControlSet& cs){ DEBUG(LDAP_DEBUG_CONSTRUCT,"LDAPControlSet::LDAPControlSet(&)" << endl); data=cs.data; } [/code] …

Member Avatar for ermithun
0
184
Member Avatar for ermithun

please refer the code below, /** * Constructs an empty std::list */ LDAPControlSet(); only this much is there in its respective class,LDAPControlSet. i want to understand that how does it create an empty list from std when nothing's there in its below constructors?? Moreover, the below constructors are the copy-constructors.. …

Member Avatar for ermithun
0
120
Member Avatar for ermithun

Hello friends, i am facing issues while finding the reason for a segmentation fault in a CPP-application. Please let me know how to move forward to look for this error, i have a doubt on the following code snippet as this CPP code uses malloc function instead of new. can …

Member Avatar for Hiroshe
0
181
Member Avatar for ermithun

typedef std::list<LDAPCtrl> CtrlList; typedef CtrlList::const_iterator const_iterator; please help me in understanding the above typedef statements as we know that typedef syntax is, typedef <attributes> datatype aliasname Thanks.

Member Avatar for ermithun
0
199
Member Avatar for ermithun

Hello, Can anyone please help me in understanding the below as i need to debug it for finding out the reason for signal 11 in the code, Caught fatal signal 11 (Segmentation Fault) utl_dump_stack: Start of stack trace (using walkcontext) for pid 17461 /data/runtime/mycode/LDAPv3SL/prodlib/libLDAPv3SL_impl.so:std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::erase(std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator,std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator)+0xf4 [ …

Member Avatar for ermithun
0
103