From: | Sensei |
Date: | 14 Aug 2001 at 00:09:07 |
Subject: | [amiga-c] Re: Libraries + NameFromLock |
Czesc Twelvebullets!
Dnia 12-Aug-01, Twelvebullets napisa�:
> The Problem:
> I`ve patched WbInfo (The Workbench Information Menu) to call my
> library.
hmmm... Add following lines immediately before NameFromLock() in patch
function:
struct Task *task = FindTask( NULL );
kprintf( "%ld %s\n", task->tc_Node.ln_Type,
( ( task->tc_Node.ln_Type == NT_TASK ) ?
"Task" :
( ( task->tc_Node.ln_Type == NT_PROCESS ) ?
"Process" :
"Unknown" )
) );
You've to run Sushi or Sashimi utility or so of course to intercept output to
serial...
If it'll report that it's task it could explain why it happens...
> But I now use the OS 3.5 Workbench library to get a list of all
> selected icons on workbench...
Please check it anyway.
I assume that you opened dos.library before caliing NameFromLock()?!
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/KYe3qC/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/