On Mon, Oct 12, 2009 at 5:32 AM, Bhushan Inamdar <[email protected]> wrote:
> Hey all, I finally tried to build Hello.wt after going through the steps
> exactly mentioned on the wiki link given below. Since I had already got the
> Visual Studio build and source files from CMake, all I had to do was to
> follow the remaining steps. Thus I started by selecting Project | Properties
> | Debugging entering:
> --http-address=0.0.0.0 --http-port=8080 --deploy-path=/hello --docroot=.
>  in the 'command arguments' text box. I then set up HelloWt as my start up
> project and then I put a break point on the line...
> return WRun(argc, argv, &createApplication);
> I get a pop up console window in which I get the following message:
> Error: Adjacent parameter is empty in 'http-port'
> On debugging further it goes into crtexe.c at the line...
> mainret = main(argc, argv, envp);
> Stepping further mainret gets a value of "1" and moves on to :
> if (!managedapp) exit (mainret);
> where since this is not a managed app, it enters the loop and value of
> mainret i.e., 1 is passed on to exit...which is why it exits...I even tried
> to step into further depth to find out the function call where the exception
> occurs, but it simple exits...
> The output window shows the following C++ exceptions:
>>
>> -First Chance Exception at 0x7c812aeb in hello.wt.exe: Microsoft C++
>> exception: boost::program_options::invalid_command_line_syntax at memory
>> location 0x011ff10c
>>
>> -First Chance Exception at 0x7c812aeb in hello.wt.exe: Microsoft C++
>> exception: Wt::WServer::Exception at memory location 0x011ff888
>
> I have absolutely no clue of what that means...
> In the meantime it does not pop up the browser and show the Hello page...and
> even when I put a break point and start a browser and type in
> http://127.0.0.1:8080/hello, the page is not displayed. That said, I think,
> I have been little optimistic trying to run the application without getting
> rid of debug errors.
> I think I am missing the trick and the key lies in the console that pops up
> while debugging saying that "Error:Adjacent parameter is empty in
> 'http-port'...must be refering to 8080...So I asked before, if I have any
> issues with my Xp Home Edition...
> However, I am not sure what is really happening and I still feel that I am
> very close to running the application. So please let me know what is it that
> I am supposedly missing here. One thing I noticed, that may be useful in
> trouble shooting is, I have Apache hosting server installed on my computer.
> Is there any setting that prevents me to use port 8080 outside or besides
> Apache? Is port sharing allowed in Apache? Please let me know the correct
> way to go about this and put a smile on me...

I tried your commandline on my built hello.wt.exe, and it works fine.
Do you have a minimized example project demonstrating the problem?
And there is no concept of "port sharing" in windows (is there even
such a thing in *nix either?).  Make sure you use an unused port,
although from the exception that is thrown that does not seem like
that is the problem.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to