Questions tagged [objectspace]

18 questions
0
votes
1 answer

Cannot implicitly convert type 'DevExpress.Xpo.XPCollection'

I am trying to create a procedure which return an XPcollection like so: public XPCollection RetrieveTransactions() { if (ObjectSpace is DevExpress.ExpressApp.Xpo.XPObjectSpace) { XPCollection txns =…
billiard
  • 1
  • 2
0
votes
1 answer

Ruby 2.0 memory leak (SketchUp)

I am having issues with what appears to be a memory leak. When I run my code, the memory usage keeps increasing until the application crashes. I have been using the GC.start to be sure that all the unused objects are removed. I am also using the…
Rojj
  • 1,170
  • 1
  • 12
  • 32
0
votes
3 answers

Why are successive arrays collected from ObjectSpace not equal in my spec?

I have a Project class with two ObjectSpace-related methods: def self.all ObjectSpace.each_object(self).to_a end def self.count ObjectSpace.each_object(self).count end This spec is failing: it "can print all projects" do Project.all.should…
Amit Erandole
  • 11,995
  • 23
  • 65
  • 103
1
2