1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unexpected error report

Discussion in 'Support' started by Steve Fabian, May 1, 2014.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Recently my old batch file when runs erratically reports this report:
    TCC: (Sys) C:\BTM\tlj.btm [5] Access is denied.
    "C:\TMP\COUT8bc.JPS"

    The batch file is below:
    Code:
    @echo off
    setlocal
    tasklist 4nt  >  clip:
    tasklist tcc  >> clip:
    tasklist tcmd* >> clip:
    tasklist shra* >> clip:
    set x=%@lines[clip:]
    iff %_4ver gt 10 then
      set mm=0
      forn %n in (0,1,%x) set mm=%@max[%mm,%@len[%@clip[%n]]]
    endiff
    do n=0 to %x
      set task=%@clip[%n]
      set pid=%@word[0,%task]
      set task=%@word[1-99,%task]
      switch %@isdigit[%pid]
      case 0
      set act=*
      set pid=%@left[-1,%pid]
      case 1
      set act= ``
      endswitch
      iff %_4ver gt 10 then
      echo %@f5[%pid] %act %@format[-%mm,%task] %@pidcommand[%pid]
      else
      echo %@f5[%pid] %act %task
      endiff
    enddo
    
    Note: The filename in %TMP depends on the TCC instance.
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    I ran your batch file 200 times and was unable to reproduce the problem.
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    On my system just now on average every 4th run had the error. What condition could cause it? I may start wondering about hardware problems if I know what it indicates.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    The error indicates that TCC couldn't open the temporary file created for the clip: pseudo-device emulation. I doubt it's a hardware problem; more likely something like an (injected) file monitor is hanging on to the handle a little too long.

    Or your Windows is eff'd up & needs rebooting.
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    I just turned on the power after a night's rest and the problem showed up... But I can live with it.
     
  6. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    Does the problem persist if you put a short wait between the lines where you're redirecting to clip:?
     
  7. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    Any chance your tasklist titles contain special characters (i.e., <>|` etc.)?
     
  8. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    No. Let's use Vince's thread.
     

Share This Page