Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2004
oops oops is offline
Registered User
 
 
Join Date: Sep 2004
Location: Shanghai.China
Posts: 9
"Filesystem demo" runtime error

I am writing the "Filesystem demo" on the user mannul.
It compiled well and linked well but resulted in a runtime error.
When I steped over the code, I found a sentence

Ice::Identity myID = Ice::stringToIdentity( parent ? IceUtil::generateUUID() : "RootDir" );

triggered this debug assertion failure .

It seems that this segment of code in <xstring> caused the assertion failure when calling IceUtil::generateUUID().

~basic_string()
{ // destroy the string
_Tidy(true);
}

I don't know what's that.Anyone can help me?

regards
oops
Attached Thumbnails
filesystem-demo-runtime-error-debug-fail.jpg  

Last edited by oops : 09-25-2004 at 05:40 AM.
Reply With Quote
  #2 (permalink)  
Old 09-25-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
You should always state which version of Ice and Visual C++ you are using. You should also post a full stack trace (you can obtain the stack trace with the Visual C++ debugger).

I assume you are using Visual C++ 6.0 with STLport? Two reasons typically cause problems:
  • Mixing debug with non-debug libraries. All your libraries and our own code must either be release or debug.
  • You are mixing the STLport library with the built-in STL library, i.e., some of your code does not use STLport, but instead the built-in library.
Reply With Quote
  #3 (permalink)  
Old 09-25-2004
oops oops is offline
Registered User
 
 
Join Date: Sep 2004
Location: Shanghai.China
Posts: 9
I am using vc71 and ice-1.5.1.
Do I still need a STLport?
Yes, I mixxed dubug lib and release one, it's working now.
Thank you very much.
Maybe you can write a FAQ list, that will be much helpful for newcomers
Reply With Quote
  #4 (permalink)  
Old 09-25-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
No, you don't need STLport if you use a version newer than Visual C++ 6.0.

The problem with mixing debug and release really doesn't have much to do with Ice. It's the same problem with any Visual C++ application.
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
Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? Jason Gao Help Center 4 10-26-2006 12:23 PM
PermissionDeniedException ,reason is "internal server error" ewiniar Help Center 2 05-18-2006 06:55 AM
fatal error C1189: #error : "Ice for Visual C++ 6.0 requires STLport" richardma Help Center 4 01-13-2006 07:23 AM
Going from "in" to "out" param, using a class as a union catalin Help Center 1 04-05-2004 09:55 AM
Ice-1.1.0: compile error "undefined reference to xercesc_2_2" Urs Help Center 2 05-30-2003 04:29 PM


All times are GMT -4. The time now is 08:45 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.