Re: Invalid Page Fault and Safe.e
- Posted by Wolf <wolfritz at KING.IGS.NET> Apr 17, 2001
- 444 views
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.