Re: [twsocket] i using the THttpAppSrv in my app

2013-04-18 Thread Angus Robertson - Magenta Systems Ltd
 failed!
 i think there is nothing about wmi. but the ThttpAppsrv's probleam.
 does everyboy can make a simple srv_app to test it.?

So you are now using MagWmiGetInfoEx and still getting the connection
closed?  How many seconds does the connection stay open for the request?
Or does it stay and open and not send a response?

Exactly what WMI classes are you calling, in which order the name space
and exact names? 

I can test WMI in my THttpAppSrv application, but not until next week. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-18 Thread myiisvif
addtional:
in the proc,i using superobject do deal with the json format date for return.

http://p13.freep.cn/p.aspx?u=v20_p13_photo_1304181534184397_0.jpg 


the class function TSuperObject.ParseString  's first line break tok := 
TSuperTokenizer.Create; 

http://iegood.com/p.aspx?u=v20_p1_photo_1304181534358549_0.jpg 

see the stack trace pic above. first call it is ok, but after three or more 
times. it hung.hung all the 80 port.

does every body can received the pic???




myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-18 15:03
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 failed!
 i think there is nothing about wmi. but the ThttpAppsrv's probleam.
 does everyboy can make a simple srv_app to test it.?

So you are now using MagWmiGetInfoEx and still getting the connection
closed?  How many seconds does the connection stay open for the request?
Or does it stay and open and not send a response?

Exactly what WMI classes are you calling, in which order the name space
and exact names? 

I can test WMI in my THttpAppSrv application, but not until next week. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-18 Thread Angus Robertson - Magenta Systems Ltd
 in the proc, i using superobject do deal with the json format date 
 for return.

For testing, you need to remove all this extra stuff from your
THttpAppSrv so only the WMI calls remain, nothing else.  

There is no purpose in anyone trying to reproduce your problem if you
only provide small extracts of the total functionality of your
application, where the real problem may be in some component you have not
told us about.  I've never heard of 'superobject'. 

Angus



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-18 Thread myiisvif
superobjectyou dont hear about it???
wow

here:  http://code.google.com/p/superobject/ 






myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-18 17:28
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 in the proc, i using superobject do deal with the json format date 
 for return.

For testing, you need to remove all this extra stuff from your
THttpAppSrv so only the WMI calls remain, nothing else.  

There is no purpose in anyone trying to reproduce your problem if you
only provide small extracts of the total functionality of your
application, where the real problem may be in some component you have not
told us about.  I've never heard of 'superobject'. 

Angus



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-18 Thread Angus Robertson - Magenta Systems Ltd
 superobjectyou dont hear about it???

I rarely use Javascript. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread Angus Robertson - Magenta Systems Ltd
 i using WbemScripting_TLB.pas,  also the uWmiDelphiClass.pas (from
 the google code). which just the oleobject.

Try using MagWmiGetInfoEx from:

http://www.magsys.co.uk/delphi/magwmi.asp

it should not take long to modify your application and will eliminate
possible problems with the code you found. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread François Piette
Given your answer, I probably miunderstood your question.
Maybe you should reformulate using other words and elaborating a little bit 
more.

-- 
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com




-Message d'origine-
De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la 
part de myiisvif
Envoyé : mercredi 17 avril 2013 03:23
À : twsocket
Objet : Re: [twsocket] i using the THttpAppSrv in my app

the request only can be added to the AddGetHandler  proc.
and it can not using the MASK. eg:

 myweb.AddGetHandler('/*.asp',tasp_proc); 

can be??

that is why i will use the Tsrv_myapp.mywebGetDocument proc.  because it can be 
hold everything.

btw,.AddGetHandler is a thread work mode??




myiisvif

From: François Piette
Date: 2013-04-17 02:25
To: 'ICS support mailing'
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 i found if i call the wmi ole object to get wmi data,THttpAppSrv  will
hung and lose the 80 connection.
procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
  var Flags: THttpGetFlag);
the call the wmi object...
for just two or three times.
why? bug?

I'm not sure I understand clearly your problem...
If the call you are doing is blocking, then you should consider moving it to a 
worker thread so that THttpAppSrv can serve other connections meanwhile.
You may call AnswerXXX and Finish when the thread has finished his work.

--
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread myiisvif
failed!

i think there is nothing about wmi. but the ThttpAppsrv's probleam.

does everyboy can make a simple srv_app to test it.?






myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-17 14:40
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 i using WbemScripting_TLB.pas,  also the uWmiDelphiClass.pas (from
 the google code). which just the oleobject.

Try using MagWmiGetInfoEx from:

http://www.magsys.co.uk/delphi/magwmi.asp

it should not take long to modify your application and will eliminate
possible problems with the code you found. 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread myiisvif
i found if i call the wmi ole object to get wmi data,THttpAppSrv  will hung and 
lose the 80 connection.

procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
  var Flags: THttpGetFlag);

the call the wmi object...

for just two or three times.

why? bug?





myiisvif
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread Angus Robertson - Magenta Systems Ltd
 i found if i call the wmi ole object to get wmi data,THttpAppSrv  
 will hung and lose the 80 connection.

Calling WMI functions presumably to return information on a web page is
unlikely to something many people have done, I've certainly not. 

Are you using MagWmiGetInfoEx or some other WMI component? 

What WMI class are you calling? 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread François Piette
 i found if i call the wmi ole object to get wmi data,THttpAppSrv  will
hung and lose the 80 connection.
procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
  var Flags: THttpGetFlag);
the call the wmi object...
for just two or three times.
why? bug?

I'm not sure I understand clearly your problem...
If the call you are doing is blocking, then you should consider moving it to
a worker thread so that THttpAppSrv can serve other connections meanwhile.
You may call AnswerXXX and Finish when the thread has finished his work.

-- 
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread myiisvif
thank Angus Robertson!

yes,
i using WbemScripting_TLB.pas,  also the uWmiDelphiClass.pas (from the google 
code). which just the oleobject.

in them, i just get this iis's filter status and iis's filter name. and return 
them to my webclient.







myiisvif

From: Angus Robertson - Magenta Systems Ltd
Date: 2013-04-16 23:09
To: twsocket
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 i found if i call the wmi ole object to get wmi data,THttpAppSrv  
 will hung and lose the 80 connection.

Calling WMI functions presumably to return information on a web page is
unlikely to something many people have done, I've certainly not. 

Are you using MagWmiGetInfoEx or some other WMI component? 

What WMI class are you calling? 

Angus

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread myiisvif
the request only can be added to the AddGetHandler  proc.
and it can not using the MASK. eg:

 myweb.AddGetHandler('/*.asp',tasp_proc); 

can be??

that is why i will use the Tsrv_myapp.mywebGetDocument proc.  because it can be 
hold everything.

btw,.AddGetHandler is a thread work mode??




myiisvif

From: François Piette
Date: 2013-04-17 02:25
To: 'ICS support mailing'
Subject: Re: [twsocket] i using the THttpAppSrv in my app
 i found if i call the wmi ole object to get wmi data,THttpAppSrv  will
hung and lose the 80 connection.
procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject;
  var Flags: THttpGetFlag);
the call the wmi object...
for just two or three times.
why? bug?

I'm not sure I understand clearly your problem...
If the call you are doing is blocking, then you should consider moving it to
a worker thread so that THttpAppSrv can serve other connections meanwhile.
You may call AnswerXXX and Finish when the thread has finished his work.

-- 
francois.pie...@overbyte.be
Embarcadero MVP
http://www.overbyte.be
http://francois-piette.blogspot.com




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be