VMware Communities > VMware Developer > Forums > VIX API > Discussions

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: Jan 14, 2009 10:43 AM by eatorres
Reply

Strange error in a C# program I wrote

Jan 13, 2009 5:17 PM

Click to view eatorres's profile Enthusiast eatorres 31 posts since
Oct 21, 2008

I get the following error (seemingly randomly) whenever I run a
program I wrote using the VIX API (in addition to the VI SDK, so I will
probably post this on the SDK board as well):

    • ERROR
**: file d:/build/ob/bora-127388/bora/vim/lib/gvmomi/gvmomiMOMgr.c:
line 212: assertion failed: (priv->updatesListener == NULL)
aborting...


I have no idea what is causing this.
Sometimes my program runs fine and this error doesn't pop up. Other
times it pops up as soon as I start my program. Anyone else run into
this problem?

Reply Re: Strange error in a C# program I wrote Jan 14, 2009 3:57 AM
Click to view akoeplinger's profile Novice akoeplinger 18 posts since
Nov 29, 2008

Hi!

This error usually occurs when you forget to properly call Disconnect(); in your application.

Regards, Alex

Reply Re: Strange error in a C# program I wrote Jan 14, 2009 9:54 AM
Click to view dblock's profile Enthusiast dblock 109 posts since
Dec 9, 2008

First, this is a bug in the library. I hope VMWare fixes it soon.

This threadends with a work-around. As Alex says, you need to explicitly disconnect, but that won't let your application run 24/7. You need to release all unused objects that link to the connection, garbage collect, then disconnect for something that you want to run 24/7.

Reply Re: Strange error in a C# program I wrote Jan 14, 2009 10:43 AM
in response to: akoeplinger
Click to view eatorres's profile Enthusiast eatorres 31 posts since
Oct 21, 2008
It looks like that was my problem. I've added a call to Disconnect() and after a few tests it hasn't given me that error. Thanks!
Actions