Ticket #5268 (closed defect: obsolete)

Opened 9 years ago

Last modified 23 months ago

COM interface causes SafeArrayTypeMismatchException in .net

Reported by: jamie.pate Owned by:
Priority: major Component: other
Version: VirtualBox 3.0.8 Keywords:
Cc: Guest type: other
Host type: Windows

Description (last modified by aeichner) (diff)

For unknown reasons' I can't get C# to iterate arrays using the COM interface. It always throws SafeArrayTypeMismatchException. Other people have had this problem as well.


namespace VirtualBoxSample {
	class Program {
		static void Main(string[] args) {
			IVirtualBox vb = new VirtualBoxClass();

			foreach (IMachine machine in vb.Machines) {


referencing {46137EEC-703B-4FE5-AFD4-7C9BBBBA0259}\1.3\0 lbimp

Change History

comment:1 Changed 23 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use