Search:
Type: Posts; User: vbcommander
Search:
Search took 0.04 seconds.
-
Thanks man. Thought so but your additions on the options to improve performance are most welcome.
-
Hi Guys,
I want to write something to return the date of oldest messages in all MSMQ queues on a box. Looking at examples it seems to me the easiest way to do this is to use the MSMQ com object to...
-
Because I have to use Windbg on my multithreaded code the compiler might not remove dead code but for sure its not in the symbol table generated by the linker so I am not sure if the code is actually...
-
Hi Guys,
Does anyone have any code examples of using this? Specifically I need to be able to use QOSSetOutgoingDSCPValue to set the DSCP TOS bit mask for ICMP and UDP. This used to be super easy...
-
Dam and blast. I now find that MS removed the way to simply set TOS in Vista. Does anyone know of a method to manipulate the TOS bits in the IP header?
-
All resolved. Found the following unexpected behavior for those who may run across this.
Step 1
When calling ICMPSENDECHO2 to perform multiple pings using an array of event handles to wait on if...
-
Does anyone know how to do this? It works if I do ping -v 184 (gets set to expedite forwarding) but when I set the tos field in the ICMP_ECHO_REPLY structure it somehow does not work. I must be...
-
One final question. Is my declaration of the ioStatusBlockCorrect
Private Type IO_STATUS_BLOCK
Status As Long
Information As Long
End Type
And what should I expect to see in it...
-
Thanks guys. This is exactly what I need. @westconn1 - > Is there a reason you create an ICMP handle for every ping? In my code I just create on ICMP handle and use it for all the pings. Is this...
-
Interestingly that UDT bug example behaves correctly if optimization is off when compiling to native code which suggests that the bug is in C2.exe no?
-
Hi Guys, I am using this API call extensively but I need to measure sub millisecond icmp responses. The only way I can think of doing that is to utilize the option of an APC callbck and measure the...
-
Hi all,
have done some more work on this. Just one question. I am interested in a bunch of stuff from TCP_ESTATS_PATH_ROD_v0 and am concerned that in particular that things like BytesRetrans is an...
-
Unfortunately this logic is not reliable.
XP and older can actually be 1024 - 65535 depending on the value of MaxUserPort
Vista and newer is not always 49152 to 65535. It can be set with netsh....
-
So what I am doing in our monitoring system is building up a "map" kind of thing of what server talks to what other server so as to map out application connections across the landscape. The only way...
-
I have done quite a bit of searching and cannot find an API call to get this for me. I know I can do it with netsh but this is windows version dependent and I want to do it in code. Anyone have an...
-
I realized this morning that depending on how your table is indexed then
select max(orderno) from tblorders
is probably a more efficient approach then count(orderNo) as I think the lookup will...
-
So would not a simple solution that MIGHT perform adequately be to query the number of rows in tblorders, remember it and only do your update work when the number of rows change? I would think every...
-
The question "What problem are you trying to solve?" comes to mind
-
[QUOTE=Elroy;5293381]Hi vbcommander,
"Again, I'm glad you've got a solid way to do your multi-threading."
Take Care,
Elroy"
Hey Elroy, "Solid" is a strong word. Reliable enough is...
-
Most DB engines keep a last updated field for when the table has last changed. I uses this with mysql and keep in memory the last updated date and then just get back the updated date periodically and...
-
And you have to be super careful to use critical sections to protect any global data. Interlocked instructions are also very useful for shared counters. Otherwise you end up with heap corruption or...
-
Excuse my ignorance. I have used MTHREADVB.DLL for many years. How does your approach differ from the approach taken in that code and what are the benefits?
...
-
I seem to remember seeing this years ago when the field in the db was too small for the data being inserted. But I may be remembering incorrectly. There have been so many issues...
-
Actually I believe it checks the message queue FOR THAT THREAD. Yes it does process everything it finds which is why Mattew Curlands methods of pumping Com synchronization messages is useful for...
-
Forgive me if this posts 2wice. It did not seem to work the first time.
I would guess doEvents calls PeekMessage,TranslateMessage and DispatchMessage. It may also call Sleep(0).
And I perhaps...
-
"Since the beginning of Windows, it's been a true multi-tasking OS. What that means is that it'll "swap out" the CPU's program pointer and give timeslices to other running programs and services, even...
-
Can someone point me at some detail on Alum and Olafs new IDE?
thanks
-
Why all the hate for doEvents or API equiv? If for example you are not at event level and using sockets there is little else to do to get your winsock message actually processed other than wait for...
-
Hey Elroy,
"However, given that it's a separate thread, it must have it's own memory block, and must therefore manage that block on its own"
Actually memory belongs to a process not a thread....
-
Good information. Thanks for the clarification.
-
On this statement...
"Therefore, we see, when we execute an END statement, no windows (hWnds) get correctly unloaded, and no COM objects get correctly uninstantiated. They just get yanked out of...
-
Thanks everybody all for excellent feedback. One question. With regard to the statement
"You cannot possibly close other processes' threads, GDI/GDI+ handles or open files even if you want to. "
...
-
I have a fairly heavily multi threaded application (yes I know I shouldn't) and have the following question.
During process rundown I currently have all my threads kill themselves in a controlled...
-
Thank you. I will see what I can do with this. Trying to get all traffic for all connections along with RTT
-
When and if you do I would appreciate it if you could post the code. Thanks all for their help.
-
Would this be the correct type def for TCP_ESTATS_PATH_ROD_V0
Public Type TCP_ESTATS_PATH_ROD_v0
FastRetran As Long
Timeouts As Long
SubsequentTimeouts As Long
CurTimeoutCount...
-
Thanks Dexwerx. I did have admin rights but probably was not passing a single byte. Will give your kind suggestion a go.
-
Don't know what happened to my last post. SetPerTcpConnectionEStats always returns error 87 invalid param although I can see the source & dest IP and ports in the MIB_TCPROW structure returned from...
-
Alas not so simple. SetPerTcpConnectionEStats always returns 87 ERROR_INVALID_PARAMETER even though I can see the source, destination IP & ports in the MIB_TCPROW structure returned from GetTcpTable....
-
Much appreciated thank you.
|
Click Here to Expand Forum to Full Width
|