FFI broken ?

Henrik Gedenryd Henrik.Gedenryd at lucs.lu.se
Tue Jul 31 09:19:22 UTC 2001


rob.van.den.berg at philips.com wrote:

> Henrik,
> 
> part of the Squeak distribution is a SqueakFFIPrims.dll, which I assume
> contains the FFI primitives.
> I wish I could execute the  'Smalltalk listLoadedModules' after executing the
> statement 'Win32Shell explore: 'C:\'' there is no Squeak anymore: it crashes
> without warning or other message.

Doh, of course, you said so.

In any case, the fact the explorer is opened is a sign that the call is
executed. The modules are loaded only when they are used, so there has to be
a call before it will appear on the list. In any case, it seems to be a more
complex problem. My question was really a sanity check for the common
problems that FFI newcomers have tended to stumble into, and that are more
easily fixed.

What you can do is to remove the dll and verify that the explore command
isn't carried out any longer. Most likely Squeak won't crash any longer
either. This would verify that the call was indeed made in the first case,
but that something goes wrong on the way back into Squeak, so to speak.

If this is so then you really need someone with a Win VM to try to replicate
your problem.

good luck,
Henrik






More information about the Squeak-dev mailing list