[xsd-users] Hello Project Compiler Successfully, But runtime error. Newbie Need Help.

HE NANO nano.he at msn.com
Sat Nov 7 22:23:36 EST 2009


Hello All,

 

Gooday.

 

When i get start my CodeSynthesis learning.

I followed the wiki guide step by step. 

Now i could build Hello Example successuflly.

But when i click run the project. runtime error...

 

///////////////////// CODE ////////////////////////////////////

int

main (int argc, char* argv[])

{

if (argc != 2)  // 1st Error. My code will step into the below block and return 1; then exit main fun.

{

cerr << "usage: " << argv[0] << " hello.xml" << endl;

return 1;

}

 

.....

///////////////////// CODE ////////////////////////////////////

int

main (int argc, char* argv[])

{

argc = 2;  // i assigned the value 2 to argc temporary for continue debug running.

if (argc != 2) 

{

cerr << "usage: " << argv[0] << " hello.xml" << endl;

return 1;

}

......

......

hello_p.pre ();

doc_p.parse (argv[1]); // 2nd runtime error happened here.

hello_p.post_hello ();

 

////////////////////// CODE //////////////////////////////

 

 

 

I attached the snapshot for the 2nd runtime error.

 

thanks in advance.

 

BR!

Nano HE

C Newbie from China

 
 		 	   		  
_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlError.JPG
Type: image/jpeg
Size: 65124 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20091108/44ab4787/xmlError-0001.jpe


More information about the xsd-users mailing list