Results 1 to 3 of 3

Thread: _BLOCK_TYPE_IS_VALID errors under Windows?

  1. #1
    waleedk is offline Registered User
    Name: Waleed Kadous
    Organization: University of New South Wales
    Project: ORCA/Rescue
    Join Date
    Oct 2005
    Posts
    2

    _BLOCK_TYPE_IS_VALID errors under Windows?

    Hi There,

    I've been working on trying to port an existing project to Windows. I am getting some very unpredictable behaviours, especially when compiling with Visual Studio .NET 2003.

    Consider for example, the following simple bit of code that uses the Ice library:

    Code:
    #include <iostream> 
    #include <Ice/Ice.h>
    
     using namespace std; 
    
    int main(int argc, char *argv[]){
        Ice::StringSeq args = Ice::argsToStringSeq( argc, argv );
        args.push_back("ExtraArg"); 
        for(int i=0; i < args.size(); i++){
            cout << "Arg " << i << " is " << args[i] << endl; 
        }
    }
    Now, when I compile and run this, I get the following error message:

    Code:
    Debug Assertion Failed!
    Error: dbgdel.cpp
    Line 52
    
    Error: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
    Any ideas why this is happening with what appears to be a well-written and simple program? Is it a bug in the Ice libraries, or am I missing something simple?

    Regards,


    Waleed.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Waleed,

    It's a simple problem: you're mixing /MD and /MDd libraries.
    See http://www.zeroc.com/faq/windowsLibraryMixup.html

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    waleedk is offline Registered User
    Name: Waleed Kadous
    Organization: University of New South Wales
    Project: ORCA/Rescue
    Join Date
    Oct 2005
    Posts
    2
    Thanks for the prompt and appropriate response. I really appreciate it!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Some more errors with IceTouch
    By tote in forum Help Center
    Replies: 0
    Last Post: 07-22-2010, 07:02 PM
  2. Replies: 1
    Last Post: 07-27-2006, 04:05 AM
  3. link errors
    By dthompson in forum Help Center
    Replies: 1
    Last Post: 05-24-2006, 04:57 PM
  4. Some errors?
    By OrNot in forum Help Center
    Replies: 6
    Last Post: 07-21-2005, 09:38 AM
  5. compile errors
    By fengxb in forum Help Center
    Replies: 2
    Last Post: 05-30-2004, 01:37 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
  •