Results 1 to 8 of 8

Thread: begining with Ice

  1. #1
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    begining with Ice

    i have just started with ice and althought it had been little hard now i have my first two executables client an server (with the sample "Printer" in the guide) but when i run the client after the server, the client "peta"=finished and it says :
    F:\yos\icevscorba\programas ice>cliente
    c:\src\vc60\stage\Ice-3.0.1\src\ice\Outgoing.cpp:359: Ice::ObjectNotExistExcepti
    on:
    object does not exist
    identity: SimplePrinterAdapter
    facet:
    operation: ice_isA
    "

    in addition i haven`t installed nothing about ice in c: ¿why does it appear that?

    anybody can she/he help me, please?

    Thak you very much.. Gracias

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Welcome to the forum.

    Please update your signature as described in this announcement.

    Thanks,
    - Mark

  3. #3
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27
    [QUOTE=Yos]i have just started with ice and althought it had been little hard now i have my first two executables client an server (with the sample "Printer" in the guide) but when i run the client after the server, the client "peta"=finished and it says :
    F:\yos\icevscorba\programas ice>cliente
    c:\src\vc60\stage\Ice-3.0.1\src\ice\Outgoing.cpp:359: Ice::ObjectNotExistExcepti
    on:
    object does not exist
    identity: SimplePrinterAdapter
    facet:
    operation: ice_isA
    "

    in addition i haven`t installed nothing about ice in c: ¿why does it appear that?

    anybody can she/he help me, please?

    Thak you very much.. Gracias
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    It looks like you are using the wrong object identity. Instead of "SimplePrinterAdapter", you should be using "SimplePrinter".

    By the way, you can find the source code for the printer example in the directory demo\book\printer of the Ice distribution.

    Take care,
    - Mark

  5. #5
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    terminate it in an unusual way.

    Ok you have reason, i changed in the client "simplePrinterAdapter" for "simplePrinter" and all compile ok but when i run the client says me :


    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.



    No information, no errors, no nothing... anything idea?

    Un saludo, thanks
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  6. #6
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    I would guess that you've mismatched the runtime libraries. You probably built your application with debugging, and linked with the release Ice libraries, or vice-versa.

  7. #7
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    Maybe A mistake in makefile?

    It's possible that had a problem in makefile because i Tried to pass the instructions in the guide for compile in Unix to windows. I used too the old structure of a makefile for Corba, and i get this build and link (makefile, run with nmake):

    todo: cliente.exe server.exe

    server.exe: server.obj Printer.obj
    link.exe Server.obj Printer.obj Ice.lib IceUtil.lib /libpath:"f:\Ice-3.0.1-VC60\lib"

    cliente.exe: cliente.obj Printer.obj
    link.exe cliente.obj Printer.obj Ice.lib IceUtil.lib /libpath:"f:\Ice-3.0.1-VC60\lib"

    Printer.obj: Printer.cpp Printer.h
    CL Printer.CPP /MD /W3 /GX /O2 /I "f:\Ice-3.0.1-VC60\include" /I "f:\yos\icevscorba\programas ice" /I "f:\Ice-3.0.1-VC60\include\stlport" /I "f:\Ice-3.0.1-VC60\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c

    cliente.obj: cliente.cpp Printer.h
    CL cliente.CPP /MD /W3 /GX /O2 /I "f:\Ice-3.0.1-VC60\include" /I "f:\yos\icevscorba\programas ice" /I "f:\Ice-3.0.1-VC60\include\stlport" /I "f:\Ice-3.0.1-VC60\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c

    server.obj: server.cpp Printer.h
    CL server.CPP /MD /W3 /GX /O2 /I "f:\Ice-3.0.1-VC60\include" /I "f:\yos\icevscorba\programas ice" /I "f:\Ice-3.0.1-VC60\include\stlport" /I "f:\Ice-3.0.1-VC60\lib" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c




    Does it appear here that problem with the libraries, debugging and release?

    PD:Sorry for my english i try to explain me as well as i can
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  8. #8
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Did you try compiling with debugging information and running under the debugger to see what the problem is? I also found this support note:

    http://support.microsoft.com/kb/884538

    Perhaps this could solve your problem?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •