Menu

win32 bad_cast exception

2001-10-26
2001-11-07
  • Dmitri ILinykh

    Dmitri ILinykh - 2001-10-26

    Hi All,

    just compiled the library as it is under w2k VC6, native stl. While trying to use 'tcpstream' I have the following problem:

    tcpstream tcps("server:1234");
    double ver = 1.1;
    tcps << ver;

    causes a bad_cast exception: 'missing locale facet'. Any ideas ???

    Cheers,
    dimitri

     
    • Jim Ownser

      Jim Ownser - 2001-11-06

      The problem is still present in Common C++ 1.9.0.
      tcp.cpp in demo subdirectory does not work.

       
      • Frediano Ziglio

        Frediano Ziglio - 2001-11-07

        I fixed problem in CVS
        The problem is in project setting. You must compile all project with DLL and multithreaded enabled. You can download win32/CCXX.dsp and win32/config.h from CVS Web to solve this problem (without retrieving all CVS)

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.