dcsimg

Search:

Type: Posts; User: vbwins

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    17
    Views
    278

    Re: Strange behavior running progra,

    Are you running the compiled program from the same user account as the IDE? If I remember correctly internet flags can be set up differently for different users in the registry local_machine vs...
  2. Replies
    25
    Views
    609

    Re: Faster - Memory or Disk?

    I seem to remember that get filenum,pos will fail when the file is bigger than 2 gig (I think) so watch out for that.
  3. Replies
    34
    Views
    1,005

    Re: Fast replace in a large string

    Is that not the default compare mode?
  4. Re: Can the pointers to arrays obtained by VarPtr change?

    Private Sub Command1_Click()
    Dim t() As String
    ReDim t(10)
    t(1) = 100
    passArray t(0)
    End Sub

    Public Sub passArray(item As String)

    item = "200"
  5. Re: Can the pointers to arrays obtained by VarPtr change?

    I don't know exactly which functions vb calls but it definitely will be incrementing and decrementing the array lock count somehow.

    I will take a gander with windbg.
  6. Re: Can the pointers to arrays obtained by VarPtr change?

    If you read the SafeArrayAccessData documentation it says that it increments the lock count. I imagine that this is to stop someone (another thread etc) from deallocating or changing a safeArray...
  7. Re: Can the pointers to arrays obtained by VarPtr change?

    In my experience I think unless you resize the array or erase it and redim it then the pointer will stay the same.
  8. Re: [RESOLVED] Memory usage information about my application

    You are actually after private bytes. Working set is just the portion of the memory of your process that is currently resident. You will need to get your current process id. Leaks will show up in...
  9. Replies
    12
    Views
    1,263

    Re: Encryption/Decryption

    This might get you started. The documentation on CAPICOM is pretty good with most enums and type definations available via google.

    Unfortunately I cant share all my code. CAPICOM is not there on...
  10. Replies
    6
    Views
    273

    Re: Compiler opt and array bounds checking

    Olaf rereading the documentation I think you are spot on with regard to the immutable-category issue.

    I am always looking for performance in this particular application as if it cannot keep up...
  11. Replies
    6
    Views
    273

    Re: Compiler opt and array bounds checking

    Thanks guys. Yes I know about advanced opt flags.

    This is the article I was referring to.

    https://devblogs.microsoft.com/dotnet/ryujit-just-in-time-compiler-optimization-enhancements/
  12. Replies
    6
    Views
    273

    Compiler opt and array bounds checking

    Greetings,

    I was reading about some additional optimization that the .Net JIT compiler does with regard to array bounds checking and I found that if for example you write a loop to traverse an...
  13. Replies
    1
    Views
    169

    Rich Client cSortedDictionary

    Greetings,

    I see there is no .Items on this class. Is the only alternative to get everything in it back to loop through?

    cheers
  14. Re: Anybody come across this alternative to scripting.dictionary

    Licensing.

    Trial code available from same site.


    https://www.motobit.com/help/asp-dictionary-object/lc13.htm
  15. Re: Anybody come across this alternative to scripting.dictionary

    Greetings,

    How did you test this?

    I left some code running overnight that was previously stable using scripting.dictionary. In the morning it had failed in a new way....

    cheers
  16. Anybody come across this alternative to scripting.dictionary

    It does not seem much faster but it seems to use a lot less memory. In fact so much less I could not believe it was working.

    https://www.motobit.com/help/asp-dictionary-object/

    EDIT - Ok so...
  17. Re: Copy variant array returned from dictionary to UDT array

    Olaf. What is his "deep copy" you referred to earlier and how is it different to a non deep copy?
  18. Re: Copy variant array returned from dictionary to UDT array

    Thanks Olaf. Will take a look. Appreciated.

    I have some design errors around port reuse which i have recently discovered which I have just coded a somewhat clunky solution so this might be a good...
  19. Re: Copy variant array returned from dictionary to UDT array

    Thanks for the suggestions guys. I will ponder on it. Performance is critical. I need to be able to support around 500 connections a second on a largish box.

    When I say connection/second I capture...
  20. Re: Copy variant array returned from dictionary to UDT array

    Thanks for the suggestions guys. I will ponder on it. Performance is critical. I need to be able to support around 500 connections a second on a largish box.

    When I say connection/second I capture...
  21. Replies
    9
    Views
    456

    Re: Faster to use .tlb than .dll

    I had a similar experiance with API functions as you. CopyMemory actually !

    What I am wondering is if similar gains are possible on a dll that I write myself.
  22. Replies
    9
    Views
    456

    Faster to use .tlb than .dll

    Dummy question. Is it faster to access items in a dll by adding a reference to the .tlb file and not the .dll file?

    Or not really.
  23. Re: Copy variant array returned from dictionary to UDT array

    I am storing UDT containing statistics about network traffic which get indexed by sourceIp,sourcePort,destIp,destPort

    I use GetPerTcpConnectionEStats to sample lots of things about the traffic on...
  24. Re: Copy variant array returned from dictionary to UDT array

    thanks for your reply.

    No I add a multiple UDT's into the dictionary and get all of them back as a variant array with dictionary.items
  25. Re: Copy variant array returned from dictionary to UDT array

    Thanks for your reply. Perhaps I was not clear. Each item in the dictionary is a single UDT type. When I get back the contents I do it with dictionary.items which returns a variant array.

    I was...
  26. Copy variant array returned from dictionary to UDT array

    Hi all,

    I have a number of UDT items stored in a dictionary. What I am trying to do is copy the variant array returned by dictionary.items to the same typed UDT array without looping through the...
  27. Re: CopyMemory works in IDE / Not Compiled

    I have overcome these type of issues before which were always related to my incorrect calculation of output buffer size/location by adding a set of "guard bytes" at the end of my structure and pre...
  28. Replies
    4
    Views
    431

    Re: Compiler switches

    Ok thanks I get that.
  29. Replies
    4
    Views
    431

    Re: Compiler switches

    Yes I was. I also tried that. Thanks for your reply.
  30. Replies
    4
    Views
    431

    [RESOLVED] Compiler switches

    Does anyone know if using the ini c2switches setting there is a way to get C2 to adopt aggressive in lining during the compile? I have researched this quite a lot and I know it can be done with c++
    ...
  31. Replies
    20
    Views
    1,091

    Re: Calling winPcap from vb6

    Thanks. Got it and done it.
  32. Replies
    20
    Views
    1,091

    Re: Calling winPcap from vb6

    Would like to do that. I am not sure how but I will figure it out.
  33. Replies
    20
    Views
    1,091

    Re: Calling winPcap from vb6

    So yes there is. When I get some time I will pull the guts out of my code and post it up. Bottom line is that I needed to use LaVolpe's universal dll caller which I wrapped in my support dll for my...
  34. Replies
    20
    Views
    1,091

    Re: Calling winPcap from vb6

    So yes there is. When I get some time I will pull the guts out of my code and post it up. Bottom line is that I needed to use LaVolpe's universal dll caller which I wrapped in my support dll for my...
  35. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    344

    Re: Marshalling

    Thanks for the reply. Are you certain that marshalling will take place by default? The reason I ask is that if this is the case I would have thought that I would not need to sync access to a...
  36. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    344

    Re: Marshalling

    ManyThanks. I think there are more like him today than there were then...


    Can I cheat by doing the below and passing the localConUp to my thread routine. Will this avoid the marshalling...
  37. Thread: Marshalling

    by vbwins
    Replies
    4
    Views
    344

    Marshalling

    I am a babe in the woods when it comes to understanding this. I do have a question though.

    If I have a global object which is a scripting.dictionary that I access from multiple threads...
  38. Re: Fastest way to convert long IP address from network to dotted string

    So in my app I am tracking packets captured with nPcap or wPcap. Before I hand them off to my packet handling routine I need to do some work on them.

    onpacket,6164
    tcpAgentLong2IP,1819...
  39. Re: Fastest way to convert long IP address from network to dotted string

    Wow guys. Thanks for all the comments. Sorry for the late reply. Wife was in hospital. You have given me enough to make substantial gains.
  40. [RESOLVED] Fastest way to convert long IP address from network to dotted string

    Greetings,

    I have to do this a lot. Does anyone have any ideas on how to do it faster than the way I am doing it below.

    Any ideas welcome.

    thanks

    Private Type myBytes
    b1 As Byte
Results 1 to 40 of 122
Page 1 of 4 1 2 3 4



Featured


Click Here to Expand Forum to Full Width