Re: [Win32Lib] wrap Media control?

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

Wow, I never expected this much so soon! I really hate to have to leave for the rest of the day! sad

I did set up to see what your code + EuCom + your wrap did, and got this error on my system:

C:\Programming\EUPHORIA\Libraries\Win32Lib_60_5\Include\w32file.ew:1114
in function setSearchPaths()
subscript value 0 is out of bounds, reading from a sequence of length 0

Any obvious cause leap out at anyone?

Yes. The last item in your PATH environment variable ends with a semicolon, which causes w32split() to create an empty element, which setSearchPaths() does not handle correctly. Here's the updated code to fix it:

object PATH 
 
    PATH = getenv("PATH") 
    if sequence( PATH ) then 
        PATH = w32split( PATH, ";" ) 
        PATH = w32removeItem( "", PATH ) 
        VOID = setSearchPaths( PATH ) 
    end if 

Please keep in mind, the proper fix is to remove the trailing semicolon from your PATH variable altogether...

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu