OK, did this. Here's the gdb output:
(gdb) l 2604 {kEventClassApplication, kEventAppTerminated}, 2605 {kEventClassApplication, kEventAppLaunchNotification}}; 2606 2607 if((cb_upp = NewEventHandlerUPP(osx_launch_app_callback)) == NULL) 2608 return 1; 2609 InstallApplicationEventHandler(cb_upp, 2, event_types, 2610 user_data, NULL); 2611 already_installed = 1; 2612 } 2613 return 0; (gdb) p cb_upp $1 = 0x179aac <osx_launch_app_callback> (gdb) p event_types $2 = {{ eventClass = 1634758764, eventKind = 6 }, { eventClass = 1634758764, eventKind = 4 }} (gdb) whatis event_types type = EventTypeSpec [2] (gdb) up #13 0x0017f8f4 in osx_launch_special_handling (mc_cmd=0x134bf10, image_file=0x1343600 "/var/tmp/im308700.html") at os.c:2479 2479 install_app_launch_cb((void *)&event_data); (gdb) p event_data $4 = { done = 0, pid = { highLongOfPSN = 0, lowLongOfPSN = 0 }, set_pid = 0 } (gdb) whatis event_data type = EXEC_EVENT_DATA_S Line 2609 in os.c is the line in question. Note that event_data == user_data in the code. Strangely, InstallApplicationEventHandler() seems to instead call InstallEventHandler(); there must be a C macro or something. Anyway, the osx_launch_app_callback() never gets called. So, it's something wrong with InstallEventHandler(). Are the arguments correct? Is the first argument a function, the second a number, the third of type EventTypeSpec, the fourth of type EXEC_EVENT_DATA_S, and the last zero (0)? Are the contents of the EventTypeSpec argument correct? How about the EXEC_EVENT_DATA_S argument? Thanks. > From: Daniel Macks <[EMAIL PROTECTED]> > Date: Tue, 6 Dec 2005 10:56:19 -0500 > > On Tue, Dec 06, 2005 at 03:39:14PM -0000, robert b wrote: > > > > if there were a way to get fink to leave the source after building > > and installing the .deb file. > > The 'fink' manpage says fink has command-line flags: > > -K, --keep-root-dir > -k, --keep-build-dir > > And the 'fink.conf' manpage says you can also use settings there: > > Buildpath: path > KeepRootDir: boolean > KeepBuildDir: boolean > > dan ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users