Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-19-2009
chanchanyuan chanchanyuan is offline
Registered User
 
Name: chan chan
Organization: wuhan university of sicence and engineering
Project: do some study
 
Join Date: Jun 2009
Posts: 13
Angry why ice will be collapse in Release mode for vs2005?

i use ice do some application,
but when it link in Release mode ,it will collapse in follow sentence:

__checkMode(::Ice::Normal, __current.mode);
::IceInternal::BasicStream* __is = __inS.is();
__is->startReadEncaps();
::com::topology::segmentList value;
::com::topology::MULTITOP info;
__is->read(value);//*************************collapse
info.__read(__is);//**************************


but if it link in debug mode ,it have no fault, why ??????

your sincerely
chanchanyuan
Reply With Quote
  #2 (permalink)  
Old 06-19-2009
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,928
Hi,

Did you change your build settings to link with ice.lib and iceutil.lib instead of iced.lib and iceutild.lib?

See also this FAQ.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 06-19-2009
chanchanyuan chanchanyuan is offline
Registered User
 
Name: chan chan
Organization: wuhan university of sicence and engineering
Project: do some study
 
Join Date: Jun 2009
Posts: 13
Angry

Quote:
Originally Posted by benoit View Post
Hi,

Did you change your build settings to link with ice.lib and iceutil.lib instead of iced.lib and iceutild.lib?

See also this FAQ.

Cheers,
Benoit.
i check it ,it is ice.lib, iceutil.lib as you say.


besides, ice also have anther fault ---- when i call "shutdown()" method, the socket link didn't close, and when i get the server proxy , it will have
two socket links between the host


----------------

chanchanyuan
Reply With Quote
  #4 (permalink)  
Old 06-20-2009
chanchanyuan chanchanyuan is offline
Registered User
 
Name: chan chan
Organization: wuhan university of sicence and engineering
Project: do some study
 
Join Date: Jun 2009
Posts: 13
Angry

Quote:
Originally Posted by benoit View Post
Hi,

Did you change your build settings to link with ice.lib and iceutil.lib instead of iced.lib and iceutild.lib?

See also this FAQ.

Cheers,
Benoit.

i see the vs projecct, it have some wrong info as follows:
------------------------------------------------------------------
NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\ice33.dll', Binary was not built with debug information.
'NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\iceutil33.d ll', Binary was not built with debug information.
'NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\bzip2.dll', Binary was not built with debug information.
--------------------------------------------------------------

when the program collapse,i see the statck , it have some fault as follows:
----------------------------
[Frames below may be incorrect and/or missing, no symbols loaded for ice33.dll]
----------------------------------------------
Reply With Quote
  #5 (permalink)  
Old 06-20-2009
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,402
Did you try the demos that accompany Ice? Do they work? If they work, and your application does not then you can inspect the two project files and look for the differences in the compiler flags you have used.

I'm not sure what you are talking about with the shutdown fault. The best way to get assistance on that issue is to post a complete working compilable example that demonstrates the issue.
Reply With Quote
  #6 (permalink)  
Old 06-21-2009
chanchanyuan chanchanyuan is offline
Registered User
 
Name: chan chan
Organization: wuhan university of sicence and engineering
Project: do some study
 
Join Date: Jun 2009
Posts: 13
Angry

Quote:
Originally Posted by matthew View Post
Did you try the demos that accompany Ice? Do they work? If they work, and your application does not then you can inspect the two project files and look for the differences in the compiler flags you have used.

I'm not sure what you are talking about with the shutdown fault. The best way to get assistance on that issue is to post a complete working compilable example that demonstrates the issue.
the two shutdown fault is settled, it is my fault..
but the ice dll libraray which can't load release version dll i also can't settle.
i check the compile flags, but maybe it is right
Reply With Quote
  #7 (permalink)  
Old 06-21-2009
chanchanyuan chanchanyuan is offline
Registered User
 
Name: chan chan
Organization: wuhan university of sicence and engineering
Project: do some study
 
Join Date: Jun 2009
Posts: 13
Angry

Quote:
Originally Posted by matthew View Post
Did you try the demos that accompany Ice? Do they work? If they work, and your application does not then you can inspect the two project files and look for the differences in the compiler flags you have used.

I'm not sure what you are talking about with the shutdown fault. The best way to get assistance on that issue is to post a complete working compilable example that demonstrates the issue.

the basic view is :
i use ice realize four functions, two functions run commonly in release mode ,but two can't load release dll,

for example:
------------------------------------------------------------------
NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\ice33.dll', Binary was not built with debug information.
'NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\iceutil33.d ll', Binary was not built with debug information.
'NMS.exe': Loaded 'E:\Work\Top\NMS2009.6.2.3\NMS\Release\bzip2.dll', Binary was not built with debug information.
--------------------------------------------------------------
Reply With Quote
  #8 (permalink)  
Old 06-22-2009
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,402
Did you try the demos in release mode?
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
Ice 3.3 + VS2005 & VS2008 vincei Help Center 2 05-20-2008 09:29 PM
Do I have to build Ice in 64 bit mode?(on Solaris 10) shenhongzhou Help Center 1 04-27-2008 07:03 AM
For mode publish&subscribe terminate Help Center 1 02-09-2006 11:55 PM
a problem about ICE 3.0 on VS2005 rwxybh Help Center 5 12-11-2005 12:13 AM
Compiling Ice with VS2005 Beta 2 zmitrok Comments 1 05-06-2005 06:40 PM


All times are GMT -4. The time now is 02:09 PM.


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