Hi Wim, Effectively, that solved the issue.
Thanks a lot! Diego On 2:59 PM, Wim Dumon wrote: > Hi, > > The first thing you should check, is if you use a Release wt.dll with > a debug build or vice versa, as that will not work. This is generally > the case with MSVC code: you cannot mix debug and release builds. > > If you build a Debug project -> link to wtd.lib > If you build a Release project -> link to wt.lib > > Check this in the right-click->Properties->Linker settings of your > hello world project. > > Best regards, > Wim. > > 2010/4/21 Diego Cantor-Rivera <[email protected]>: > >> Following up on this problem, and after another set of debugging sessions, I >> think that the problem is due to the use of STL classes inside DLL's. In >> particular the use of STL collections like maps and vectors in Wt.dll . I >> had this problem before in a different project and I remember that it >> required to 'export' the definition of these collections in the dll project. >> >> That would explain the type of warnings I am getting when I compile my >> project: >> >> 2>C:\Program Files\WT\include\Wt/WApplication(1395) : warning C4251: >> 'Wt::WApplication::encodedObjects_' : class 'std::map<_Kty,_Ty>' needs to >> have dll-interface to be used by clients of class 'Wt::WApplication' >> >> >> If this is the problem, is there any way to workaround it? Maybe I missed a >> CMAKE switch when I compiled Wt? >> Or should I refrain from using Wt dll's. If so... what are the other >> options? >> >> Thanks, >> >> Diego >> >> >> >> On 19/04/2010 9:52 PM, Diego Cantor-Rivera wrote: >> >> Hi, >> >> I am trying to create a Wt application from scratch (Instead of modifying >> examples/hello). I have been working on the CMake file and I think that I >> still missing something because in the console I keep seeing this "fatal" >> error: >> >> Option no-compression is implied because wthttp was built without zlib >> support. >> Option no-compression is implied because wthttp was built without zlib >> support. >> [2010-Apr-19 21:29:43.176550] 4324 - [notice] "Started server: >> http://0.0.0.0:8080" >> [2010-Apr-19 21:29:53.156550] 4324 [/app ukSbzlMfPdBC5dSa] [notice] "Session >> created (#sessions =)" >> Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) >> Gecko/20100415 Minefield/3.7a5pre (.NET CLR 3.5.30729) >> 127.0.0.1 - - [2010-Apr-19 21:29:53.220550] "GET /app HTTP/1.1" 200 4151 >> >> [2010-Apr-19 21:29:53.245550] 4324 [/app ukSbzlMfPdBC5dSa] [fatal] "bad >> allocation" >> >> [12270.10.00.-1 A- p- r[2-0110-Apr9- 19 21:29:53.22614550] "G:E2T9 >> :/5ap3p.?wtd=Sbzl2M6fPdBC455d5Sa&req0u]est=script&randy3 89483 >> 2HTTP/1.1" 2004 0 >> [/app ukSbzlMfPdBC5dSa] [notice] "Session destroyed (#sessions =)" >> >> >> After debugging the code I can tell that there is an exception in >> WebSession::start() line 361 occurring on one of the working threads. The >> funny part is that this does not happen if I run the same "hello world" >> example inside the big Wt project. I am attaching my cmake files. Maybe >> someone of you can pick what I am missing. >> >> I have two CMakeLists.txt. One is very general and the other corresponds to >> the src subdirectory. >> >> Thanks, >> >> Diego >> >> >> >> -- >> >> Diego Cantor-Rivera >> Ph.D.Student in Biomedical Engineering, University of Western Ontario >> Imaging Research Laboratories, Robarts Research Institute >> P.O. Box 5015, 100 Perth Drive, London, ON, Canada N6A 5K8 >> email: dcantor <at>imaging.robarts.ca >> Visit me at: http://bit.ly/dcantor/ >> >> -- >> >> Diego Cantor-Rivera >> Ph.D.Student in Biomedical Engineering, University of Western Ontario >> Imaging Research Laboratories, Robarts Research Institute >> P.O. Box 5015, 100 Perth Drive, London, ON, Canada N6A 5K8 >> email: dcantor <at>imaging.robarts.ca >> Visit me at: http://bit.ly/dcantor/ >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> witty-interest mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/witty-interest >> >> >> > ------------------------------------------------------------------------------ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
