So, what am I missing here?

Alexander Lazarevic lazarevi at cs.uni-magdeburg.de
Sat May 12 17:13:24 UTC 2001


>>>>> "John" == John Hinsley <jhinsley at telinco.co.uk> writes:

    John> "process accessor module not available"

    John> Erm....  Do I have to tell Squeak to explicitly load the
    John> plug in? What exactly do I have to do?

There is no need to tell squeak to explicitly load a plugin. If a
method you use contains a declaration like this one 

*<primitive: 'primitiveMakeMyDay' module: 'FireArmsPlugin'>*

the plugin should be automagically loaded.
In fact the UnixOSProcessPlugin already gets loaded when the image
starts up, because of a startUp class method in UnixOSProcessAccessor.

You can check if a module is present, if you look at the result of
*Smalltalk listLoadedModules*.

For example after a startup I get the folowing¹:

*Smalltalk listLoadedModules*
*#('Squeak3D 15 April 2001 (i)' 'UnixOSProcessPlugin 15 April 2001 (e)'
'B2DPlugin 15 April 2001 (i)' 'LargeIntegers v1.2 15 April 2001 (e)'
'BitBltPlugin 15 April 2001 (i)' 'SecurityPlugin 15 April 2001 (e)'
'FilePlugin 15 April 2001 (i)' 'MiscPrimitivePlugin 15 April 2001
(e)')*

After reading a JPEG Image from disk I see:

*Smalltalk listLoadedModules*
*#('JPEGReaderPlugin 15 April 2001 (e)' 'Squeak3D 15 April 2001 (i)'
'UnixOSProcessPlugin 15 April 2001 (e)' 'B2DPlugin 15 April 2001 (i)'
'LargeIntegers v1.2 15 April 2001 (e)' 'BitBltPlugin 15 April 2001
(i)' 'SecurityPlugin 15 April 2001 (e)' 'FilePlugin 15 April 2001 (i)'
'MiscPrimitivePlugin 15 April 2001 (e)')*

So the JPEGReaderPlugin gets automatically loaded.

You might want to start squeak in a shell to see additional output
of the vm concerning the loading of modules, if the module doesn't
show up in squeak. 

Alex

¹This is because when I compiled the vm I chose to make more modules
external than there are by default. There maybe no need to have
LargeIntegers, Security and MiscPrimitives as external modules, but I
was just to lazy to recompile. :)

-- 
Mmmm ... forbidden donut. -- Homer

-- 
"Ms.Hoover, can I have another worm because mine crawled in my mouth
and I ate it." -- Ralph





More information about the Squeak-dev mailing list