Re: bug in dbCreateLib / ddCreateLib ??



That's the problem - the library doesn't exist on that specific machine, so the ddGetObj returns nil, triggering the creation of a new library, which automatically adds the necessary line to the user's cds.lib.

The trick is to delete the library as one of the last steps on the remote job. This will clean up the file space, but more importantly, it will remove the newly added line from your cds.lib file. For example, (plus other enhancements - makeTempFileName() for simple avoidance of name space collision):

tempLibName = nil
unless(ddGetObj("tmpLib")
	tempLibName = makeTempFileName("/tmp/tmpLib.")
	ddCreateLib("tmpLib" tempLibName)
)

.....

< close all open cellViews in temp lib ... >

....

when(tempLibName
	ddDeleteObj(ddGetObj(tempLibName))
)

No bug here - just the need to tidy up behind yourself.  ;-)
	

Sylvio Triebel wrote:
....and I am using lsf (each run is on a different machine...)

Sylvio Triebel wrote:

Hello,

i want to define for each start of icfb a temporary cdb library.

unless( ddGetObj("tmpLib")
  dbCreateLib( "tmpLib" "/tmp/tmpLib" )
)

So far it works fine, but every start of icfb creates a
new line in the cds.lib file.

I could not find anything in SourceLink and just wanted to know,
if there is any good trick to avoid the explosion of cds.lib?

Thanks,
Sylvio
.



Relevant Pages

  • Re: bug in dbCreateLib / ddCreateLib ??
    ... so the ddGetObj returns nil, triggering the creation of a new library, which automatically adds the necessary line to the user's cds.lib. ... The trick is to delete the library as one of the last steps on the remote job. ... This will clean up the file space, but more importantly, it will remove the newly added line from your cds.lib file. ...
    (comp.cad.cadence)
  • Re: Weird, minor, but very annoying issue with generated DOM-elements in IE7
    ... Setting the messagebox size on creation ... did the trick. ... for this crappy browser, I'm sorry to say. ...
    (microsoft.public.scripting.jscript)
  • Re: computation of square root & reciprocal calculation
    ... Even if Jim Blinn didn't have a hand in its creation, ... an interesting read and he might give some credit to where he first saw ... That trick dates from the early 1950s. ...
    (comp.arch.arithmetic)
  • Re: How to avoid zombie processes?
    ... The trick is to call fork twice: ... Since your child dies immediately after creation, and you reap it, ...
    (comp.unix.programmer)
  • Re: Double vlookup
    ... it is what I am using but I would like a trick to avoid the ... creation of a new column with the concatenation of my 2 colmns. ...
    (microsoft.public.excel.misc)