Re: [Pyobjc-dev] PyObjC & Fink
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-09-23 12:01:30
|
I just noticed that I sent my reply just to Bill: On Monday, Sep 23, 2002, at 08:40 Europe/Amsterdam, Ronald Oussoren wrote: > I wouldn't mind pushing out a new snapshot. IMHO it should be marked > experimental, mostly because of a memory leak whose source I've as of > yet have been unable to locate. > > BTW. Does Fink install a Python framework? PyObjC probably won't be > very usefull unless Python is installed as a framework. But then > again, maybe a normal Unix install works just as well, as long as GUI > scripts are packaged inside '.app' directories. > > Ronald > > W.r.t. the memory leak... If you start the TableModel example and click inside the tableview the process will grow. It seems to grow unbounded. The CurrencyConverter doesn't have this problem. Sadly enough I've encountered another problem while debugging this: If I try to use MallocDebug my program crashes as soon as the code tries to call a method in a PyObjC created class. It crashes somewhere in the middle of the objective-C runtime, which is compiled without debug information :-(. I've managed to create a standalone Objective-C program that features the same problem. This code is based on an example in the Objective-C reference from Apple. Any ideas on what might be wrong? BTW. The easiest way to reproduce the problems with the attached code is to build it, run 'gdb class-test' and then the following commands from inside gdb: set start-with-shell 0 set env DYLD_INSERT_LIBRARIES /usr/lib/libMallocDebug.A.dylib set env DYLD_FORCE_FLAT_NAMESPACE 1 run Ronald |