This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

hash_map


I have a problem in conjunction with hash_map from stdc++ library.
I wrote a class with multiple containers of type hash_map.
If I declare only one container more of this type in my class now:
"std::hash_map<const char*, char** ,std::hash<const char*>, eqstr> AddStringRecords;"
I will get a segmenation fault on a simple fclose function.
If I comment out the declaration in the header file all works fine again.
I think this is a program error of myself, but how can I catch this error?
I use ddd for debugging and I can go to this fclose function every time, but I have
no idea for solving this problem.

sorry in advance for this (may be) stupid question.

-- 
I found some dead inodes in your brain.
Please run humbrfsck manually to repair your head.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]