NetTalk Central

Author Topic: Problem using a WebCliente inside a WebServer  (Read 4318 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Problem using a WebCliente inside a WebServer
« on: June 14, 2010, 09:50:51 AM »
Hi,
I need to read a web page from within the Loging proc of a web server app.
I´ve modified the web4 example to show the problem (Attached)
I´ve added the HTTP_Downloadpage proc to read the web page(I use a proc from another NT example)
If you run the app attached as is you will see how the app hangs
If you uncomment the message line before the window open the message appears and the proc runs ok !?!?!?!?!?
I´ve tryed setting the window as mdi but theres no app, etc...
Is this a bug or must I do any to allow this proc to run?
Thanks
Alberto


[attachment deleted by admin]
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem using a WebCliente inside a WebServer
« Reply #1 on: June 14, 2010, 11:33:39 PM »
I need your dict. If you send a C7 example app you MUST send the C7 dict.

This is because every time you convert the dict it gets new GUID's, so your converted dict is not the same as my converted Dict.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Problem using a WebCliente inside a WebServer
« Reply #2 on: June 15, 2010, 01:59:00 AM »
Understood, here it goes...

[attachment deleted by admin]
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem using a WebCliente inside a WebServer
« Reply #3 on: June 16, 2010, 02:47:54 AM »
Hi Alberto,

I took your app and ran it here. I had to remove _all_ the Message statements though to make it work, as they are invisible if the window is hidden. But if all are removed then it works fine.

If you unhide the window you should be able to see it - but it goes very quickly.

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Problem using a WebCliente inside a WebServer
« Reply #4 on: June 16, 2010, 03:19:14 AM »
Ok, I found the problem.
Try this, with all my messages removed.
Uncomment the 0{prop:hide} and it will hang.
If you comment it then it work.
The 0{prop:hide} is before the ThisWebClient.init()
If you move it after, then it works.
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem using a WebCliente inside a WebServer
« Reply #5 on: June 16, 2010, 04:07:16 AM »
hmm - works here both ways...

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Problem using a WebCliente inside a WebServer
« Reply #6 on: June 16, 2010, 04:10:49 AM »
weird, I move the hide after in another app and it does not work, I have to leave the window unhide for it to work.
Windows Vista Home edition.
C72 NT5
No problem to leave the window unhide but...
Alberto
-----------
Regards
Alberto