Re: Phix : win32lib7 project

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

Unfortunately the IDE still doesn't work - it produces this error

D:\Phix\pEmit2.e:3738 in procedure Or_K_ridt() 
index 0 out of bounds, reading sequence length 44000 

Good news, I've found a quick fix. It appears to be struggling (IDE.exw line 14800/14908) with a routine_id mid-routine of the target routine/itself, presumably because it has not properly finalised the parameter link chains needed for type inference:

procedure click_OpenRecentFile(integer Self, integer Event, sequence Params) 
    setHandler(hold, w32HClick, routine_id("click_OpenRecentFile")) 
end procedure 

So I suggest changing it to:

atom r_click_OpenRecentFile 
procedure click_OpenRecentFile(integer Self, integer Event, sequence Params) 
--  setHandler(hold, w32HClick, routine_id("click_OpenRecentFile")) 
    setHandler(hold, w32HClick, r_click_OpenRecentFile) 
end procedure 
r_click_OpenRecentFile = routine_id("click_OpenRecentFile") 

(In my tests I replaced several other routine_id("click_OpenRecentFile") with r_click_OpenRecentFile)
I'll press on with a proper fix for this.

Regards, Pete

PS: I totally winged it for the "and/or need parenthesis" errors - and would be interested to compare with what you did.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu