Skip to content

Opened GDS file can be garbage collected #28

@zhengxwen

Description

@zhengxwen

Since gdsfmt_v1.23.9:

library(gdsfmt)

fc <- function()
{
    f <- createfn.gds("test.gds")
    node <- add.gdsn(f, name="list", val=list(x=c(1,2), y=c("T","B","C"), z=TRUE))
    # forget to close the file
}

fc()
showfile.gds()
#                      FileName ReadOnly State
#  1 /Documents/GitHub/test.gds    FALSE  open

gc()
showfile.gds() # no opened file

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions