memory active causes memory fault



Hi,

I'm having strange memory faults with a mechanism design software that we are developing. We've extendend the tcl interpreter with new command written in C. Testing new functionality I ran into memory faults which happen occasionally. Trying to find out what is happenig I used "memory active mem.txt". Works fine until I have created an entity of my new functionality. After that it fails with a memory fault, which is (as far as I can see) strange. Even if there's something wrong with memory reservation in my code memory should not crash, right? Or am I missing something fundamental?

I'd also be grateful for any hints on how to debug memory problems.

Thanks,
Aleks

P.S.: I'm using HP-UX 10.20 and tcl 8.4.11
.