dcsimg

Search:

Type: Posts; User: vbcommander

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    393

    Re: Oldest MSMQ message

    Thanks man. Thought so but your additions on the options to improve performance are most welcome.
  2. Replies
    2
    Views
    393

    Oldest MSMQ message

    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...
  3. Re: VB6 - Are comments or white-space compiled into EXE?

    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...
  4. Thread: Qos2 api

    by vbcommander
    Replies
    0
    Views
    268

    Qos2 api

    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...
  5. Re: setting tos field in packet header using ICMPSENDECHO

    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?
  6. Re: setting tos field in packet header using ICMPSENDECHO

    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...
  7. setting tos field in packet header using ICMPSENDECHO

    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...
  8. Replies
    13
    Views
    1,389

    Re: IcmpSendEcho2 with APC call back

    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...
  9. Replies
    13
    Views
    1,389

    Re: IcmpSendEcho2 with APC call back

    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...
  10. Replies
    23
    Views
    1,241

    Re: Curious non-Modal behavior of MsgBox

    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?
  11. Replies
    13
    Views
    1,389

    IcmpSendEcho2 with APC call back

    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...
  12. Re: [VB6] Tcp Extended Stats API / GetPerTcpConnectionEStats

    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...
  13. Re: Winapi call to get ephemeral port range

    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....
  14. Re: Winapi call to get ephemeral port range

    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...
  15. Winapi call to get ephemeral port range

    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...
  16. Re: Continuously Query a Table - VB 6 - MSSQL Server 2008

    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...
  17. Re: Continuously Query a Table - VB 6 - MSSQL Server 2008

    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...
  18. Re: Continuously Query a Table - VB 6 - MSSQL Server 2008

    The question "What problem are you trying to solve?" comes to mind
  19. Re: [RESOLVED] Multithreading, continuing questions & improvements

    [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...
  20. Re: Continuously Query a Table - VB 6 - MSSQL Server 2008

    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...
  21. Replies
    30
    Views
    2,226

    Re: [RESOLVED] Multithreading

    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...
  22. Re: [RESOLVED] Multithreading, continuing questions & improvements

    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?
    ...
  23. Re: Command - "Multiple-step OLE DB Operation generated errors"

    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...
  24. Replies
    84
    Views
    4,916

    Re: GOSUB - Is it really bad?

    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...
  25. Replies
    84
    Views
    4,916

    Re: GOSUB - Is it really bad?

    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...
  26. Replies
    84
    Views
    4,916

    Re: GOSUB - Is it really bad?

    "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...
  27. Re: How Many People are Sticking around Until the end of VB6

    Can someone point me at some detail on Alum and Olafs new IDE?

    thanks
  28. Replies
    84
    Views
    4,916

    Re: GOSUB - Is it really bad?

    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...
  29. Replies
    10
    Views
    617

    Re: Multithreading question

    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....
  30. Replies
    10
    Views
    617

    Re: Multithreading question

    Good information. Thanks for the clarification.
  31. Replies
    10
    Views
    617

    Re: Multithreading question

    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...
  32. Replies
    10
    Views
    617

    Re: Multithreading question

    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. "
    ...
  33. Replies
    10
    Views
    617

    Multithreading question

    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...
  34. Re: [VB6] Tcp Extended Stats API / GetPerTcpConnectionEStats

    Thank you. I will see what I can do with this. Trying to get all traffic for all connections along with RTT
  35. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    When and if you do I would appreciate it if you could post the code. Thanks all for their help.
  36. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    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...
  37. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    Thanks Dexwerx. I did have admin rights but probably was not passing a single byte. Will give your kind suggestion a go.
  38. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    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...
  39. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    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....
  40. Re: GetPerTcpConnectionEStats & SetPerTcpConnectionEStats

    Much appreciated thank you.
Results 1 to 40 of 43
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width