Search:

Type: Posts; User: couttsj

Page 1 of 13 1 2 3 4

Search: Search took 0.73 seconds; generated 31 minute(s) ago.

  1. Replies
    9
    Views
    721

    Re: VB6 - IOCP problem

    The only circular buffer examples I could find dealt with single byte buffers subject to overflow. But that information pointed me in the direction of double buffer without the possibility of...
  2. Re: Problem VB6 connecting to a webservice with TLS 1.2

    See: https://www.vbforums.com/showthread.php?901057-VB6-MultiThread-Download

    It utilizes wininet.dll using multithreading, but I presume that wininet.dll can be used without multithreading. It...
  3. Replies
    12
    Views
    523

    Re: Error to do with Connectivity

    If you are going to leave a TCP connection open for extended periods without any traffic, you have to take extra precautions. Disconnection is a 2 way street. I can't remember the exact details, but...
  4. Replies
    4
    Views
    357

    Re: Package and deployment app throws error

    The only thing wrong with the MS package and deployment wizard is that some antivirus software will detect it as malware. The advantage of the MS setup tool is that it will not install a library if a...
  5. Re: Need to know the exact behavior under this scenario with sockets.

    I believe what you are seeking is what the Completion Port is supposed to provide. You tell the port what to expect, and when that function is complete it releases the data. Unfortunately, it doesn't...
  6. Re: Need to know the exact behavior under this scenario with sockets.

    I am not sure what the question is, but this is my understanding.

    - the sender sends the data in byte form in whatever size up to 64 KB.
    - the sender stack breaks up that data into packets...
  7. Replies
    9
    Views
    721

    Re: VB6 - IOCP problem

    To solve the problem, I came up with this simulation. The bulk of the code is for the generation of the samples, and the only part relative to the issue is the "Process" routine. My intention is to...
  8. Replies
    60
    Views
    67,598

    Re: VB6 - Huge (>2GB) File I/O Class

    I have been having the same problem. When ever the program crashes (in the IDE or not), it leaves the file open. I am using file API, but I don't think that matters. The API requires the handle to...
  9. Re: HAve to run Executable as Elevated, otherwise....

    What I failed to mention in the example I gave is that VB6-NoUAC references the normal VB6 link which is set to "Run as Administrator". Since Win 8.0, UAC still requires an acknowledgement from you...
  10. Re: HAve to run Executable as Elevated, otherwise....

    The IDE is already running in Administrative mode. What you can do is create a desktop link that uses the Task Scheduler to start the application. For example, I created one to start VB6:...
  11. Replies
    5
    Views
    381

    Re: get name of .zip file name from web page

    Normally I would say you simply right click on the link and copy it, but in this case the link does not contain the file name. The name of the link is unrelated....
  12. Replies
    10
    Views
    715

    Re: Post Viewing Problem

    When contacted directly, Zvoni promptly corrected the problem.

    J.A. Coutts
  13. Replies
    9
    Views
    721

    Re: VB6 - IOCP problem

    That is basically what I intend to do, only I don't have control over what gets delivered. The completion port does. The other option is a circular buffer, which I have never implemented before. What...
  14. Replies
    9
    Views
    721

    Re: VB6 - IOCP problem

    SmUX2k;

    Thank you for responding. What you have to appreciate in this attempt is that both the Winsock Control and my own SimpleSock are too slow. IOCP is much faster because much of the work is...
  15. Replies
    10
    Views
    715

    Re: Post Viewing Problem

    I would suggest that is the problem. Here is the page source.


    <blockquote class="signature restore"><div class="signaturecontainer"><font size="1"><i>Last edited by Zvoni; Tomorrow at 31:69...
  16. Replies
    10
    Views
    715

    Re: Post Viewing Problem

    Strangely enough, I found that any page that Zvoni had posted to exhibits this behaviour.

    J.A. Coutts
  17. Replies
    10
    Views
    715

    [RESOLVED] Post Viewing Problem

    Does anyone know why some VBForums pages only show about 2/3 of the total page width? It makes the posts difficult to read. The first page of...
  18. Replies
    9
    Views
    721

    VB6 - IOCP problem

    In the process of developing an I/O Completion Port server and client, each program was tested with a program built with SimpleSock. Then I attempted to run the IOCP client with the IOCP server, and...
  19. Re: Multiline tooltips with TTS_BALLOON style show rectangles under Windows 10

    I don't remember exactly, but I do remember I had to do a lot of searching. My particular problem was windows displayed when right clicking on a tray icon. You might try:...
  20. Re: Multiline tooltips with TTS_BALLOON style show rectangles under Windows 10

    I assume what you mean by "edgy" is square corners. I don't know if this is related to your particular problem or not, but Windows 11 (and probably Win 10) utilize the notification square cornered...
  21. Replies
    13
    Views
    2,460

    Re: IOCP Server - VB6

    The need for multi threading on the Client end is highly questionable considering the amount of resources it requires. On the Server end however, it is very desirable.

    J.A. Coutts
  22. Replies
    13
    Views
    2,460

    Re: IOCP Server - VB6

    The reason for developing this program is that on larger file transfers, the Client program I was using (built with SimpleSock), was not fast enough to keep up with the IOCP server program I was...
  23. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    The use of the "End" statement may have temporarily resolved the issue for the single threaded monster that I have created, but what I am more interested in is how to shut down multi threaded loops...
  24. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    One form, one thread, one socket.


    Private Sub Form_Unload(Cancel As Integer)
    TerminateThread mHandle0, ByVal 0&
    Releasesocket
    End
    End Sub
  25. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    I don't pretend to understand this, but placing an "End" statement after terminating the thread and releasing the socket appears to have resolved the issue? Is "End" related to the API "EndTask"...
  26. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    File moves from "Apps" to "Background Processes". No mention of suspended in properties.

    J.A. Coutts
  27. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    Thread Created. Thread terminated.

    J.A. Coutts
  28. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Re: Memory Leak?

    1 form, 2 modules, 1 Class
    This behaviour only exhibits in the executable. The Class however contains an endless loop that is left in the signalled state. When a completed transaction is received by...
  29. Thread: Memory Leak?

    by couttsj
    Replies
    13
    Views
    1,016

    Memory Leak?

    This is a new one for me, one that I would have to classify as a memory leak. The program itself downloads files from the server using IOCP running on a single thread, and performs as expected...
  30. Re: Testing an internet link without opening browser

    See: https://www.vbforums.com/showthread.php?901057-VB6-MultiThread-Download

    It utilizes wininet.dll using multithreading, but I presume that wininet.dll can be used without multithreading. It...
  31. Re: Testing an internet link without opening browser

    All he asked for is an Internet link, from which I presumed he meant "Does the server exist?". It does not check if an individual page or file exists. For that you would actually need to connect to...
  32. Re: Testing an internet link without opening browser

    Have a look at https://www.vbforums.com/showthread.php?864393-VB6-Transit-Time-Tester-V2

    It uses an abbreviated version of SimpleSock to measure the time it takes for the server to respond to a...
  33. Replies
    0
    Views
    591

    Windows File API

    In the past I have used the Binary File Access provided by VB6 using Open #x. Binary access is not supported by FSO (File System Object). I wanted to find out if file access using the Windows API was...
  34. Thread: sending email

    by couttsj
    Replies
    15
    Views
    925

    Re: sending email

    Email servers have long required encryption. The primary purpose for this is to resist password theft. Most also now require 2 Factor Authentication as well. I have used JACMail for years, with the...
  35. Re: Is there a way to time out a Msgbox?

    A MsgBox is just another form, but it behaves like a Modal form in that it halts program execution until the user responds. To make it appear like a MsgBox, change the ControlBox property to False...
  36. Re: Is there a way to time out a Msgbox?

    Why screw around with MsgBox if it doesn't meet your needs. Make your own.

    J.A. Coutts
  37. Thread: MS CoPilot

    by couttsj
    Replies
    6
    Views
    2,123

    Re: MS CoPilot

    According to the link in post #3, all I had to do was temporarily suspend "MsMpEng.exe" and Group Policy changes would remain. So far I can live with one scheduled scan per day. Defender still...
  38. Replies
    3
    Views
    650

    Re: VB6 - IOCP Problem

    Once again I found an imperfect solution.


    If FileData(0).FileLen <= 0 Then 'Last record, clear variables & close file
    Close
    Debug.Print FileData(0).FileName & " SAVED!"
    ...
  39. Replies
    3
    Views
    650

    Re: VB6 - IOCP Problem

    My workaround was only hiding the real problem, which was not closing the file. Upon successful downloading of the file, the thread is supposed to close the file and clear the file variables.


    ...
  40. Re: Microsoft drives me..a bit nuts...because I'm old school...

    Computer networking is not an easy thing to explain or understand. It is all based on the 7 layers of the OSI model. See:...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width