Locked TrivialServer sample

  • Sunday, April 29, 2012 10:38 PM
    Owner
     
     

    As we were readying Casablanca for release, a rather innocuous bug snuck in and we decided to not hold up the release for it. However, it does affect one of the samples that are included, and you need to know about it.

    When the HTTP listener produces any information about what's going on, it uses a default logging object, which sends text to stdout and stderr. This object is created on demand, and the path taken by the first sample (unlike the other samples) does not properly make demands. Therefore, the object is not created and no output is visible.

    When you start TrivialServer, the console window will be empty, but the server will otherwise work as expected. To see the output from the HTTP server properly, add this line to the program, as the first statement in main():

        actors::log::get_default();

    We're sorry about this little mishap and hope you enjoy Casablanca!

    Thanks,

    Niklas Gustafsson
    Casablanca Team

All Replies

  • Monday, June 11, 2012 5:52 AM
     
     

    I had trouble right off the bat. I'm using Visual Studio 2012 Professional RC. Below is my error message.

    1>------ Rebuild All started: Project: TrivialServer, Configuration: Debug Win32 ------

    1> stdafx.cpp

    1> TrivialServer.cpp

    1>TrivialServer.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *,int,char const *,int)" (??3@YAXPAXHPBDH@Z) referenced in function __unwindfunclet$??R<lambda_bcd11482effe09a0d9179373df280cb2>@@QBE?AV?$task@_N@pplx@@V?$task@H@2@@Z$3

    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(612,5): error MSB6006: "link.exe" exited with code 1120.

    1>D:\visualstudio10ISODDD\Casablanca_Samples\Samples\VC11\TrivialServer\Debug\TrivialServer.exe : fatal error LNK1120: 1 unresolved externals

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

  • Monday, June 11, 2012 2:52 PM
    Owner
     
     

    When we released Casablanca, VS 2012 RC was not ready, so we built it to work with the VS Beta. Unfortunately, we have not had the resources to make an RC-compatible version of Casablanca available yet, but we're working on it. This is one of the known RC-related bugs.

    Niklas