*Error* eval: undefined function - proc

Discussion in 'Cadence' started by Ercan Altuntas, May 25, 2004.

  1. Hi,

    I am trying to execute a command with ipcBeginProcess but in some machines
    I get this error.

    *Error* eval: undefined function - proc

    I am using 4.4.6.100.66m. Can you help me to fix this problem?

    Thanks Indeed.
     
    Ercan Altuntas, May 25, 2004
    #1
  2. How exactly are you invoking ipcBeginProcess?

    Andrew.
     
    Andrew Beckett, May 25, 2004
    #2
  3. Here is the code


    if(simDir
    then
    workingDir = simDir
    else
    workingDir = strcat(getWorkingDir() "/simDir")
    )
    workingDir = simplifyFilename(strcat(workingDir "/"
    cdfgData~>id~>lib~>name "/" cdfgData~>id~>name))

    command = strcat("xv " workingDir "/*.gif")
    ipc = ipcBeginProcess(command)
     
    Ercan Altuntas, May 26, 2004
    #3
  4. Are you sure that's where the error is coming from?

    Can you do:

    sstatus(stacktrace 20)

    and see what the stacktrace shows when the error occurs? (post it here).

    Thanks,

    Andrew.
     
    Andrew Beckett, May 26, 2004
    #4
  5. Sorry Andrew, but I do not have any access to the machines. But this
    is a cdf callback function. Full callback function is as follows.

    procedure(displayGifs()
    prog( (workingDir command ipc)
    if(simDir
    then
    workingDir = simDir
    else
    workingDir = strcat(getWorkingDir() "/simDir")
    )
    workingDir = simplifyFilename(strcat(workingDir "/"
    cdfgData~>id~>lib~>name "/" cdfgData~>id~>name))
    unless(isDir(workingDir) return(nil))
    command = strcat( "xv " workingDir "/" cdfgData~>id~>name "*.gif")
    ipc = ipcBeginProcess(command)
    unless(ipc
    puts("Unable to Run XV")
    return(nil)
    )
    )
    )

    Can this problem depends on the shell settings ???
     
    Ercan Altuntas, May 27, 2004
    #5
  6. I wouldn't have thought so (that it would depend on shell settings). Having the
    stacktrace would really help to debug the problem.

    Andrew.
     
    Andrew Beckett, May 28, 2004
    #6
  7. just a guess, you could try writing the
    whole ipcBeginProcess statement

    ipcBeginProcess( command "" nil nil nil nil )

    also

    if( boundp('simDir) && simDir then ...

    because i guess you check wether simDir is defined
    and if it isn't you'll get an error.

    also, are you sure you didn't misspelled
    prog as proc ?
    and you reload your skill file after each
    change ? (i do not mean to insult you)

    cheers
    stéphane
     
    REMOVETHIS>epfl.ch, May 28, 2004
    #7
  8. Hi Stéphane,

    simDir is always defined but thanks for your advice.
    I am sure about the proc. I saw it 2-3 times.
    Of course, I am reloading my skill functions after making changes.

    Thanks for every one for help.
     
    Ercan Altuntas, Jun 3, 2004
    #8
  9. If you're seeing the errors, then you should be able to get the stack trace like
    I suggested.

    That's going to be the best way of giving us a clue as to what is going on.

    Otherwise it's like trying to find out what is wrong with a car when you:

    a) can't see the car
    b) don't know what make it is
    c) have somebody describing the sound it makes when the problem occurs,
    over a poor phone line, with a cold.

    Andrew.
     
    Andrew Beckett, Jun 3, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.