Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-21-2005
simpley 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 ?
Reply With Quote
  #2 (permalink)  
Old 01-21-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
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.
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
problems with VC8.0 stephan Bug Reports 2 07-31-2006 09:39 AM
Hello example problems jpm Help Center 1 06-02-2003 04:26 PM


All times are GMT -4. The time now is 08:52 AM.


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.