1. Curious machine.e error
- Posted by ChrisB (moderator) Dec 16, 2014
- 1566 views
Hi
Upgraded to Eu4.1 on the Windows virtual computer at work, from 4.05, in order to run Redy.
Ran euwingui, and came up with this error
c:\Euphoria\include\std\machine.e:1545 <0074>:: Errors resolving the following references: c:\Euphoria\include\std\machine.e (1545): local_free_protected_memory local_free_protected_memory( iaddr, size + memory:BORDER_SPACE * 2 ) ^ Warning ( not_reached ): <0218>:: designer.exw:1836 - statement after return will never be executed --- Defined Words --- EU4 EU4_0 EU4_0_0 WINDOWS WIN32 WIN32_GUI EUI -------------------
Now local_free_protected_memory() was below allocate_protect(), where this procedure was being called from
If I moved the procedure local_free_protected_memory() above allocate_protect(), the error goes away.
In other words forward referencing isn't working for this procedure from within the function allocate_protect.
Interestingly, local_free_protected_memory(), is within this
if local_change_protection_on_protected_memory( iaddr, size + memory:BORDER_SPACE * 2, true_protection ) = -1 then local_free_protected_memory( iaddr, size + memory:BORDER_SPACE * 2 ) eaddr = 0 end if
and local_change_protection_on_protected_memory() is a function which is also below allocate_protect() - in other words forward referencing is working for this function, as I have not moved this function.
Chris
2. Re: Curious machine.e error
- Posted by andi49 Dec 16, 2014
- 1448 views
Hi
I can't reproduce this error...
Hi
Upgraded to Eu4.1 on the Windows virtual computer at work, from 4.05, in order to run Redy.
Ran euwingui, and came up with this error
--- Defined Words --- EU4 EU4_0 EU4_0_0 WINDOWS WIN32 WIN32_GUI EUI -------------------
This looks like Eu 4.0 not like Eu4.1
For Eu4.1 this should look like this :
--- Defined Words --- EU4 EU4_1 EU4_1_0 WINDOWS WIN32 GUI X86 BITS32 LONG32 EUI -------------------
Maybe you have messed up your setup.
And a clean install will help...
Andreas
3. Re: Curious machine.e error
- Posted by ChrisB (moderator) Dec 17, 2014
- 1415 views
Hi, thanks, neither can I now! Setup seemed ok, although that does say 4.0 doesn't it. More double checking required.
Cheers
Chris