dcsimg

Search:

Type: Posts; User: PickyBiker

Page 1 of 3 1 2 3

Search: Search took 0.09 seconds.

  1. Replies
    4
    Views
    249

    Re: Aforge problem

    I saved the code and pasted it into a new project as you suggested and it works. Something in the project must have been broken.

    Thank you!
  2. Replies
    4
    Views
    249

    [RESOLVED] Aforge problem

    I found multiple examples of how to capture an image from a USB camera using Aforge. Although all these example start out the same way, they all get the same errors.

    In the particular example...
  3. Replies
    9
    Views
    346

    Re: Is synclock required? If so, How?

    If that is where the Interlocked.Increment is, it's already on my list to check out.

    Really appreciate you guys.
  4. Replies
    9
    Views
    346

    Re: Is synclock required? If so, How?

    I just want to be certain you know I do appreciate the insights you have provided on this. It is like reading something complicated and while you are trying to digest it's meaning, someone comes...
  5. Replies
    9
    Views
    346

    Re: Is synclock required? If so, How?

    Tried it again with sleep(0) in the first worker thread and it locks up as soon as I start that thread. I can't quit the app, can't drag the window, and it never even displays a single digit on...
  6. Replies
    9
    Views
    346

    Re: Is synclock required? If so, How?

    Okay I think I've got this now. Thanks Shaggy!

    There is not enough going on in the worker threads to operate if the sleep is zero on any one of them. The app locks up tight without some kind of...
  7. Replies
    9
    Views
    346

    Is synclock required? If so, How?

    Trying to learn about threads and synclock.

    The example code below has 3 BackgroundWorker threads. All 3 threads access the same Num property. Since the property's get/set handles all access to...
  8. Re: [RESOLVED] Need help executing an "arp -a" command

    That was one of my more creative ways to trip myself up. Thanks for figuring it out.
  9. Re: Need help executing an "arp -a" command

    Holy molly, you are right. Now that was a really bonehead move on my part.

    Thanks!
  10. [RESOLVED] Need help executing an "arp -a" command

    The code below is an attempt to read the output of an "arp -a" command. It is a simple form with two buttons, one for executing the command and the other for quitting the program. I expected to see a...
  11. Replies
    3
    Views
    245

    Re: How to format strings in VB

    Thank you. String.format worked just fine. I also discovered a.padright(20) which padded a with spaces out to 20 chars.
  12. Replies
    3
    Views
    245

    [RESOLVED] How to format strings in VB

    In C there is a very useful function for formatting strings called sprintf. VB.net doesn't seem to have an equivalent so how does one format strings in VB? The end goal is to have aligned columns of...
  13. Replies
    3
    Views
    273

    Re: How can I catch this error

    .Paul., That should do it... Thanks!
  14. Replies
    3
    Views
    273

    [RESOLVED] How can I catch this error

    In the code excerpt below I need help trying to catch an error at the do while line. If the serial port is not open or closes unexpectedly there is an error thrown but I don;t know how to catch it. I...
  15. Re: [RESOLVED] How to update a form control from another thread

    Thank you for the explanation. This is a useful model that I could have used in past projects and it will certainly be useful in current and future projects. I marked the thread RESOLVED.

    Best...
  16. Re: How to update a form control from another thread

    I never heard of a background worker and it appeared to me that it was already in the example because of the multiple references I saw in the code. After reading the responses it is now clear that a...
  17. Re: How to update a form control from another thread

    I followed the link you provided and copied the vb example into a new form project and added a textbox control named TextBox1. That example code has 2 errors. One at...
  18. Re: How to update a form control from another thread

    I followed the link you provided and copied the vb example into a new form project and added a textbox control named TextBox1. That example code has 2 errors. One at...
  19. [RESOLVED] How to update a form control from another thread

    In another post I was trying to update a form listbox control from a thread using the synchronousContext method but was not able to do so successfully. I decided to try doing that using the delegate...
  20. Replies
    6
    Views
    373

    Re: Help with cross thread error

    Just tried it shaggy, sorry but it didn't help. It was a module.
  21. Replies
    6
    Views
    373

    Re: Help with cross thread error

    The error is happening on the myContext.post line. I set a breakpoint and can see the first time through myContext has valid data. I pinned the value and watched it as I stepped through. That changes...
  22. Replies
    6
    Views
    373

    Re: Help with cross thread error

    Making progress. The code below works (The First Time through) using the synchronizingContext technique you described. It gets an error at myContext.Post(AddressOf GotData, e).

    The error is...
  23. Replies
    6
    Views
    373

    Help with cross thread error

    Newbie to threads and events and I am trying to work with a TCP Client example that was found on the web. There is a thread in it that needs to update a Form listbox (lbConnections). Doing that from...
  24. Replies
    3
    Views
    359

    Re: Game development resources for win 10

    Wow, already built in... Thanks!
  25. Replies
    3
    Views
    359

    Game development resources for win 10

    I found directx was replaced by something called XNA Game Studio. I checked the requirements for XNA GS 4.0 which appears to be the latest version and it is apparently only supported on Windows 7,...
  26. Re: Slowdown on COM port write after 12k characters

    Nice, I bet that would have worked too.
  27. Re: Slowdown on COM port write after 12k characters

    This problem is fixed. Sprinkled in to some of your comments was the idea the Arduino might be sending data back to the PC and that got me looking at the Arduino end of things. I was pretty sure it...
  28. Re: Slowdown on COM port write after 12k characters

    Mc_VB suggested I slow the tick interval down to 200ms or slower, but my patience is wearing thin so I went to 100 ms instead and that didn't help. Next I tried one of the other suggestions and wrote...
  29. Re: Slowdown on COM port write after 12k characters

    Passel, as mentioned previously, I tried changing the write to use SERIALPORT.Write(char, 0, 1) and it didn't help.

    I just created a simpler program that writes bytes to the com port at 50 ms...
  30. Re: Slowdown on COM port write after 12k characters

    Everywhere there was a try, I changed it to post a message instead of ignoring the error. I also added the try-catch and message to the invoke in case there was a problem there. Unfortunately, it...
  31. Re: Slowdown on COM port write after 12k characters

    Okay, the change to 9600 baud made no difference except the count is slightly higher when the slow down occurs. It was in the low 13k area.Th really freaky thing about this is my wind counter is...
  32. Re: Slowdown on COM port write after 12k characters

    Very good points.
    The write routine uses a byte, but while troubleshooting the problem I changed it to a char and used the offset and character count arguments. I changed all the calls to pass "n"...
  33. Re: Slowdown on COM port write after 12k characters

    Here is the whole thing:

    Imports System.IO.Ports

    Public Class Form1
    Private WithEvents T1 As New FastTimer ' High accuracy timer class

    ' program variables
    Private MYCHAR...
  34. [RESOLVED] Slowdown on COM port write after 12k characters

    My program communicates with an arduino over a serial port. It sends one byte at a time every 50ms. The arduino can read them much faster than that speed. After about 12,200 bytes are sent there is...
  35. Re: Need help catching the Tick from a fast timer

    Okay, I was trying to make things easier by providing all the code. Obviously that was a bad idea... Message received. The field you asked about is public because I wasn't thinking about the scope of...
  36. Re: Need help catching the Tick from a fast timer

    The editor highlights the handler at "handles T1.Tick" With the T1 highlighted.

    The message when I hover over it reads:


    When I try to compile it, the message reads:
  37. Re: Need help catching the Tick from a fast timer

    Sorry I was not clear. If you un-comment the handler you will see it generates an error. The problem is that I don't know how to write a working handler. I guess I wanted to show that I was at least...
  38. [RESOLVED] Need help catching the Tick from a fast timer

    I found what looks like a nice fast Timer component and I need help catching the Tick event. My program has a form with Start, Stop, and Quit Buttons. I think I am close to making it work, but can't...
  39. Re: How to set a button background to the default

    Arve, adding
    Button1.UseVisualStyleBackColor = True fixed the problem.

    Thanks!
  40. Re: How to set a button background to the default

    Surprisingly saving the background color and then setting it to that doesn't work. Button1's background still doesn't match the original!
    Here is how I tried that:

    Public Class Form1
    Public...
Results 1 to 40 of 106
Page 1 of 3 1 2 3



Featured


Click Here to Expand Forum to Full Width