Re: Invalid Page Fault and Safe.e

new topic     » goto parent     » topic index » view thread      » older message » newer message

Yer' right, you can't use safe.e with win32lib, ver.0.55.1.
It uses it's own 'stack' of memory which EU is unaware of.

This is really Derek's territory, but you could try the following patch to
tk_mem.e. It should work OK for small programs, at least.

...in function myAllocate(), you have the following lines, after which you
have to add the next !!

lAddr=c_func(xHeapAlloc,{pHeap,HEAP_ZERO_MEMORY,pSize})
if lAddr !=0 then
register_block(lAddr,16000)  --- ADD THIS LINE !!



All this does is register the initial win32lib 'stack' with EU, so
machine.e is aware of this memory block. However, if this stack 'grows'
larger than 16k., you'll have the same problem again.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu