[gme-users] another question on building using the DomDataNetwork

Kevin Smyth ksmyth at isis.vanderbilt.edu
Sat Feb 23 11:52:36 CST 2013


Sumit,

 

This line:

Udm::SmartDataNetwork nw(Uml::diagram);

should be

Udm::SmartDataNetwork nw(test1::diagram);

 

Kevin

 

From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Ray,
Sumit (US SSA)
Sent: Friday, February 22, 2013 8:45 PM
To: gme-users
Cc: Ray, Sumit (US SSA)
Subject: [gme-users] another question on building using the
DomDataNetwork

 

Hi,

 

Issues trying to create a diagram using the DomDataNetwork.

 

UdmDom.cpp : Line # 4028 ("string rootname = rootclass.name();")
generates the exception: "Object handle is null" when attempting to
create a new diagram.

 

The file existence and is readable is checked prior to calling the
function.  Here's the code:

int udm_main(int argc, char** argv)

{

  try

  {

    Udm::SmartDataNetwork nw(Uml::diagram);

    

 

   bool xsd_exists = fileExists( "test1.xsd" );

   bool xml_exists_y = fileExists( "test1.xml" );

   bool xml_exists_n = fileExists( "test.xml" );

 

   nw.CreateNew("test.xml", "test1.xsd", test1::RootFolder::meta);

 

 

What could be the possible source of these existence errors.

 

Thanks,

Sumit

 

Sumit Ray

BAE Systems

4301 N. Fairfax DR, Suite 800

Arlington, VA 22203

 

Phone:: (703) 284-8427

Cell: (571) 970-7558

Fax: (703) 528-4726

Email:: sumit.ray at baesystems.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20130223/5a232119/attachment.html 


More information about the gme-users mailing list