04-02-2009, 04:30 PM
What is code that calls PostWithTimeout 5 times?
Try to restart QM.
Try to restart QM.
HTTP persistent connection
|
04-02-2009, 04:30 PM
What is code that calls PostWithTimeout 5 times?
Try to restart QM.
04-02-2009, 04:42 PM
Function snrs_set_excel2
function str'l r
04-02-2009, 04:53 PM
I cannot test it.
Like some memory in QM is corrupted and it is unstable. How after restarting QM?
04-02-2009, 04:56 PM
the same.
Is your PostWithTimeout = my PostWithTimeout ?
04-02-2009, 05:00 PM
Yes, I tested your version. No errors.
How much threads is in the Running Items list when you get the 1000 threads error? Where exactly is the exception? (if in code).
04-02-2009, 05:11 PM
in the Running Items list:11 threads.
QM didn't stop. Error: Failed to create thread __Http_PostWithTimeout. Max 1000 threads allowed. I had to end threads manually.
04-02-2009, 05:34 PM
Insert out 1 before th=mac to see how many times the code is executed.
04-02-2009, 05:49 PM
186 times 1
then Warning: There are 200 threads. QM may fail to create more threads and stop working. 1 Warning: There are 201 threads. QM may fail to create more threads and stop working. ...
04-02-2009, 05:53 PM
Don't know why it is called 186 times when you call the function 5 times.
04-02-2009, 06:07 PM
maybe because the function Rlogin2mac extract data of excel using PostWithTimeout too (but used Post and the same).
I don't know why works with PostWithTimeout (without line) and not with PostWithTimeout (with line).
04-02-2009, 06:13 PM
Maybe worked without the line because was slower.
Mybe this will help: QM limits the number of threads launched within several seconds, not necessary all running simultaneously.
04-02-2009, 06:17 PM
No matter.
I will seek another way.
04-02-2009, 06:18 PM
Try InternetSetOption with (copy of) Http.Post.
04-02-2009, 06:38 PM
with Post2 (without InternetSetOption) works; (with InternetSetOption) in the Running Items list:11 threads but don't finish.
Member function Http.Post2 function# $action $data [str&responsepage] [$headers] [inetflags] [str&responseheaders]
04-08-2009, 05:54 PM
Is possible to create a function to do several HttpOpenRequests in parallel and receive the responses in str array using one QM thread?
04-08-2009, 06:12 PM
Try asynchronous.
Read "Asynchronous Operation" in MSDN library. I cannot help, too much work.
04-13-2009, 05:55 AM
I tried it but it's too complicated to me.
Can you help, please? note: you can test using... Macro out
04-17-2009, 07:43 AM
Can you convert http://69.10.233.10/KB/cpp/WinInetRunScript.aspx to QM?
|
« Next Oldest | Next Newest »
|