external plugins on WinCE!

Craig Latta craig.latta at netjam.org
Sun Aug 11 05:07:47 UTC 2002


Hi Andreas--

> I believe the "fail-if-WinCE" code originates from the original port
> and related to WinCE 1.0. To the best of my knowledge noone has ever
> tried to get external plugins to work since then (I can say for sure
> I haven't). So I guess if you can get this to work it would be a
> useful piece of work to share with the rest of us.
> 
> Go for it!

	Got it! With a caveat, of course... I don't have WinCE source, nor have
I found any discussion of this on the Net (so I'll try to create some),
so I don't know why, but for some reason I can only allocate 13M with
VirtualAlloc() after loading a DLL (even an empty one). This probably
doesn't matter for most WinCE Squeak users, as the trend seems to be
toward shrunken images, but I like to run my normal 10M image, so my
usual 4M of headroom was causing a problem.

	There doesn't seem to be any other way of allocating that much
contiguous memory, virtual or not [HeapAlloc() seems to have a 1M
limit], and the documentation doesn't seem to mention any way of loading
DLLs into a separate memory space.

	Pretty cool, though. This was the last of my testing for Flow 2a (which
now works on WinCE). After I get that out, I'll release the VM changes
for WinCE external plugins (I *think* it's just uncommenting the
aformentioned failure code, but I have to back out of a couple of
experiments to know for sure :).


-C

--
Craig Latta
improvisational musical informaticist
craig at netjam.org
www.netjam.org
Smalltalkers do: [:it | All with: Class, (And love: it)]



More information about the Squeak-dev mailing list