Author Topic: How to check the available Xdata space?  (Read 1475 times)

0 Members and 1 Guest are viewing this topic.

csharpbird

  • Newt
  • Posts: 64
How to check the available Xdata space?
« on: November 14, 2011, 10:43:44 PM »
It seems that lisp has a function named xdroom which ccan get the available Xdata space.
How to do this in .NET?

fixo

  • Guest
Re: How to check the available Xdata space?
« Reply #1 on: November 15, 2011, 12:40:14 AM »
Not sure about it will be real size:
Code: [Select]
MessageBox.Show("Size: " + Convert.ToString(System.Runtime.InteropServices.Marshal.SizeOf(xr.Data.UnmanagedObject)))*xr* is existing dummy XRecord populated with data of 4 TypedValues(string,double)

Jeff H

  • Needs a day job
  • Posts: 6150
Re: How to check the available Xdata space?
« Reply #2 on: November 15, 2011, 06:18:19 AM »
Not sure if there is a .NET counterpart but maybe PInvoke acdbXdRoom?
also
acdbXdSize

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.