Results 1 to 2 of 2

Thread: some problems with dll

  1. #1
    simpley is offline Registered User
    Join Date
    Aug 2003
    Location
    beijing
    Posts
    43

    some problems with dll

    recently, I meet a strange problem, I make a class with ice and test it well, but after i packed this class into a dll at server side , and test it with the same test server, something wrong jump out.

    at client side, i can call any methods of this class well except one, when I call this one, the progrmma paused at: "bool __ok = __out.invoke();", the code is here:
    ::Ice::Long
    IceDelegateM:AOIceConnection::SetParameterHead(::Ice::Int token, const :AOIceParameterHeads& head, const ::Ice::Context& __context)
    {
    static const ::std::string __operation("SetParameterHead");
    ::IceInternal::Outgoing __out(__connection.get(), __reference.get(), __operation, static_cast< ::Ice::OperationMode>(0), __context, __compress);
    ::IceInternal::BasicStream* __os = __out.os();
    __os->write(token);
    ::__write(__os, head, ::__U__DAOIceParameterHeads());
    bool __ok = __out.invoke();
    try
    {
    ::IceInternal::BasicStream* __is = __out.is();
    if(!__ok)
    {
    __is->throwException();
    }
    ::Ice::Long __ret;
    __is->read(__ret);
    return __ret;
    }
    catch(const ::Ice::LocalException& __ex)
    {
    throw ::IceInternal::NonRepeatable(__ex);
    }
    }

    and the server side paused at :"::__read(__is, head, ::__U__DAOIceParameterHeads());"

    the total code here is:

    ::IceInternal:ispatchStatus
    DAOIceConnection::___SetParameterHead(::IceInterna l::Incoming& __in, const ::Ice::Current& __current)
    {
    ::IceInternal::BasicStream* __is = __in.is();
    ::IceInternal::BasicStream* __os = __in.os();
    ::Ice::Int token;
    :AOIceParameterHeads head;
    __is->read(token);
    ::__read(__is, head, ::__U__DAOIceParameterHeads());
    ::Ice::Long __ret = SetParameterHead(token, head, __current);
    __os->write(__ret);
    return ::IceInternal:ispatchOK;
    }

    I am so puzzle is that other methods are same as this method and they all are invoked well, any one can give me any suggestion? thanks!

    BTW, in the same sample project, when I invoke destory of a commnunicator in a dll , in spite of If i called shutdown and waitforshutdown, the error will jump out tells me the memory error, is it a problem or I make sth wrong ?

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Sorry, it's impossible to say what could be wrong without more information. Please always provide which version of Ice, Windows, Visual C++ you're using. Could you send us a small self compilable example demonstrating the problem?

    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. bzip2.dll
    By sylvain in forum Help Center
    Replies: 4
    Last Post: 10-20-2008, 06:28 PM
  2. DLL lost
    By queniao in forum Help Center
    Replies: 4
    Last Post: 12-03-2007, 11:27 PM
  3. use ice in dll?
    By cool stone in forum Help Center
    Replies: 4
    Last Post: 05-23-2007, 06:52 AM
  4. Replies: 3
    Last Post: 05-02-2007, 09:51 AM
  5. Missing DLL
    By dwforslund in forum Help Center
    Replies: 7
    Last Post: 02-19-2003, 10:10 AM

Posting Permissions

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