Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2006
g00fy g00fy is offline
Registered User
 
Name: Salvania
Organization: Salvania
Project: Database systems
 
Join Date: Dec 2005
Posts: 45
Send a message via ICQ to g00fy
-->
Red face slice2docbook

Hi,

I am using v3.0.1. Now if I do this:
Code:
slice2docbook -I"c:\program files\coding\ice\slice" c:\doc.sgml Session.ice
Nothing is generated except for errors... => -I can't handle spaces in filenames...

so I do: -I"c:\progra~1\..."

Now no errors, but no sgml file also??


I'm wondering... Is it supposed to work this way? I searched my whole harddrive to find the place where it's saved, but found nothing... BTW... The ice file 'compiles' fine with slice2cpp... Ok, make that 'compiled'. It's a while since I 'compiled' last the .ice files (was back then with 3.0.0), I'm going to investigate via the source where the problem is...

How should I put comments in the slice-files which I want to appear in the docbook format? As browsing through the docbook site didn't help me much ... Couldn't find anything close to doxygen's simple layout...


Thanks for any reply

**edit**
I just figured out I couldn't 'compile' ANY .ice file... It's always returning 1 somewhere in Gen.cpp, parse_file()...
Which is uterly weird as I could parse everything nicely before...

So it's NOT an error in 3.0.1, as I reinstalled 3.0.0 and it happened as well (return status = 1 = EXIT_FAILURE)...

What could be the issue here? I couldn't even 'compile' Printer.ice, some example from the Ice-directory (subdir: book).

Thanks

**edit**
Did some more investigation...

Everything runs perfect except for icecpp.close(); For some kind of reason "preprocessor.cpp @ 288" returns 1: " int status = _pclose(_cppHandle);"

BUT!!! if I just remove the check in the calling file "Main.cpp @ 185": " if(!icecpp.close())", then everything puts out nicely the intended sgml file...

I wonder why the _popen/_pclose functions doesn't work as intended?? _popen works as should... It doesn't return NULL..., _pclose does not work as intended... It returns 1 where it should return 0.

MSDN: "[_pclose] returns the exit status of the terminating command processor, or –1 if an error occurs.".

My interpretation: "icecpp.exe -C "Printer.ice"" returns 1...

My idea: Let's run this thing and see what it does... *ran it* returns '0'... ??? Check output below:

Code:
 E:\XXX\Ice-3.0.1\src\slice2docbook|► icecpp.exe -C "Printer.ice"
# 1 "Printer.ice"
// **********************************************************************
//
// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************




module Demo
{

    interface Printer
    {
        void printString(string s);
    };

};



 E:\XXX\Ice-3.0.1\src\slice2docbook|► echo %errorlevel%
0
Now I'm really out of ideas...


Anyone?
__________________
Steven Van Ingelgem
Salvania [http://www.salvania.be/]
Product Descr.: Statistical data analysis

Last edited by g00fy : 03-12-2006 at 02:52 PM.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slice2DocBook Manual mrcham Help Center 12 5 Days Ago 04:57 PM
slice2docbook -> pdf g00fy Help Center 1 03-19-2006 07:51 AM
slice2docbook StuartA Bug Reports 0 05-24-2004 08:47 AM


All times are GMT -4. The time now is 10:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.