Lets say that you send 3 characters, say 'abc', followed by the newline character, and that the DataReceived event fires for every character.
When the 'a' is received and the event fires you post...
Type: Posts; User: dbasnett
Lets say that you send 3 characters, say 'abc', followed by the newline character, and that the DataReceived event fires for every character.
When the 'a' is received and the event fires you post...
Timeout errors are an indication that a mistake has occurred, it is not part of a protocol. It should be used to catch errors and nothing more. It is just a little bit harder to write code that...
FYI. I tested this:
Public Delegate Sub mydelegate(ByVal a_string As String)
Private Sub SerialPort_DataReceived(ByVal sender As Object, ByVal e As...
From what I can find by Googling, Apple doesn't support this. Apparently even Audio is difficult. So glad I have a Samsung!
Don't you want Me.Show instead of FormName.Show.
Dim order As String = "312"
For Each c As Char In order
MessageBox.Show("Hello World " & c)
Next
What have you tried? Is the phone creating a virtual serial port on the PC?
Change the order.
What about the "breakpoint in the DataReceive handler and the programhttp://images.intellitxt.com/ast/adTypes/icon1.png isn't stepping into this block"??? Are you still having the timeouts?
I'd suggest starting over with no shortcuts.
Isn't the real question about why is the file corrupted? If you have the file open but are not manipulating it and the power goes out why is it corrupted?
@i00 - they have changed the rate this...
It is not clear why you need to re-read? Why not just make a copy and use that.
I'd start a new project and copy and paste just the code you have(don't copy the files). Make sure you create the controls and components before you copy the code.
Below the active configuration is the project configuration. Is it set to debug also? What version of vb are you using?
Is the GPS attached via a cable or is this a virtual serialport via...
Are you running the code with the Release Configuration? I think it is under Build / Configuration Manager. Set it to Debug if it isn't.
"If the ReadLine method is blocking, can a re-entrance...
Take a look at this
Dim smplText As String = "asfdssadadamyname: blablabla asadsdasghfhgfhfghfgfhgfgfga"
Dim strToFind As String = "blablabla"
Dim idx As Integer =...
Change your Catch to this
Catch ex As TimeoutException
Debug.WriteLine(ex.Message)
Debug.WriteLine(myArray(1))
timeout = True
Beep()
Agreed. There is a link in my signature that might interest you. Actually there are a couple ;)
Ian brings up a good point. Based on your example of 10PM, do you mean 10:00:00.000, or would 10PM plus or minus a few seconds be good?
Have you thought of using the Task Scheduler?
If ODID has the name of a control then
Me.Controls(ODID).BackColor = Color.Red
Is it called TitleCase. Here is a link for the documentation
http://msdn.microsoft.com/en-us/library/system.globalization.textinfo.totitlecase.asp
Dim myString As String = "wAr aNd...
Try
Me.Text = "Text to display"
Look at your question. Do we know what controls is or should we assume something? "VB doesn't seem to like it" doesn't mean much.
What are you trying to accomplish?
Are you telnetting using putty?
Is plink a media thing or a gene thing?
I don't know how hard it is, but I would gladly sacrifice the wrap quote tags button for code tags.
I wouldn't think it would be hard. Easy for me to say :bigyello:
What OS is your laptop running. I googled the error and there were a lot of hits. Here is one of them
http://support.microsoft.com/kb/315346
I am guessing one of these
...
This device has an SDK on the Motorola web site.
Just do a readline and your own split on the delimiter.
OT - is the forum slow?
The forum seems much slower today.
Something like this I think
Dim aTimer As System.Timers.Timer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
aTimer = New...
Edvard Munch I believe.
What is high-speed?
I'd suggest not bothering with it at all. Whatever your code is really doing has to be wrapped in a Try-Catch right?
Gimmick is correct.
What do you mean by the above statement? Your code checks to see if a name can be resolved. What if it is resolved by the DNS Resolver running on the local PC?
You are also assuming that...
Why do you think that it is necessary to check if the internet is available? A better question is what is internet availability? It looks like you have defined it to mean that a hostname can be...
I'd also like to see those buttons on the Quick Reply.
Was that a hint? I can't rep you again. BTW - where is the list of people you rep'ed?
Overall I think the upgrade went well.