Search:
Type: Posts; User: VB-MCU-User
Search:
Search took 0.01 seconds.
-
Well, I was able to do it. You need to add the following code to the app.config file in your project. All the unhandled errors are been sent to a directory "Errors" in my app bin directory.
...
-
Niya, I tried that and it worked for me. The problem for me is that I'm trying to write the errors to a log file in the app directory, but that part is not working for me.
After more research, I...
-
Yes, I know. I'm learning.
Thanks, I used the BackgroundWorker and it worked. I used the DoWork event handler to update the UI incrementally. Below is my modified code. I used the INVOKE...
-
Nope, I didn't have any luck. I tried both codes below and it didn't work. I ran the exe file in the bin directory. Your original suggested code gave me an error, so I defined variable ex as an...
-
I'm trying to catch all the unhandled exceptions in my application with UnhandledException. My code is shown below. I understand that I have to build the application (Control F5) in release mode and...
-
This code writes certain devices detected by the computer in a ListBox, so when I minimize the window I can't see if it worked. If I change the focus away from the program and go back to it, this...
-
After I minimize the main form, the form will stay minimized no matter what I do. I need to right click the program icon in the task bar and close it to restart the program. After some...
-
After running the program in debugger mode, I found out that during the MainForm_Closed method the program tried to discard incoming data buffers from SerialPort2, but that port was closed. Just by...
-
Jmcilhinney, you definitely pointed me in the right direction. I was getting the semaphore error that pointed to the SerialPort2.Open() line. This line is in a Try-Catch block. When I ran the program...
-
It reaches the Catch block because it writes the error to a text file using WriteToErrorLog. What I mean by crashing is that it closes by itself. The error I get is shown in post 1.
-
Banging my head against the wall with this issue. My program uses a serial COM port to connect to an external HC-05 Bluetooth module. The connection and data transfer works great! Now, if the...
-
Good catch, but after commenting those out the program still takes time to close. What is the best way to close all the threads and resources in the Closed sub?
-
When I close my program, it takes like 5 seconds to completely close. Is this okay? I wonder if there is a faster way to close all the threads and any resources that might be loaded. Is the...
-
It is nice to hear that there is a logical explanation of why it didn't work. I was going crazy after troubleshooting for hours and nothing. I will review your thread that you mentioned. Thanks.
-
Hi, I have a SerialPort opened for a Bluetooth connection to receive data from the Bluetooth device. The "SerialPort2_DataReceived" sub is working fine. I can read all the data without any problems....
-
Hmm, somehow the value of ModulesNumber in debug mode was 189 and in release mode was 0. Thanks, you found the problem.
-
That part works in debug mode. The whole code works in debug mode. The variable ModulesNumber value is displayed in a textbox already. The reason I put that loop there is because I didn't know how to...
-
Hi, I wrote a program that can read data from an SQL database and it works great while I'm in DEBUG mode. I tried to switch it to RELEASE mode to distribute it to other computers and it just doesn't...
-
Hmm, you are right. LSet does what I want, but from the left. RSet doen't seem to follow that logic.
Dim testString As String = "Left"
Dim lString As String
' Returns "Left "
lString...
-
I'm not sure what I'm doing wrong here, but this string method RSet is not working as expected. Below, is the test code that I'm using. Then, below the code there is the output than I'm getting. The...
-
Yes, I didn't noticed it either. Good catch!
-
Thanks. That makes sense.
-
Paul, the code I have seems to work. What is wrong with it? Why is the ProgressChanged event necessary?
-
Well, I learned something new today thanks to you guys. I added the component BackgroundWorker to the form and wrote the code shown below. It worked great! Thanks.
Private Sub...
-
Paul and ShaggyHiker, no, the line "txbBluetoothDevices.Refresh" didn't work either. The Click sub takes like 20 or 30 seconds searching for Bluetooth devices. The text "Searching devices..." only...
-
I have a code that discovers Bluetooth devices. When I click the button btnListDevices the message "Searching devices..." should show immediately, but it shows when the process of Bluetooth devices...
-
That was it!!! I had another "Class SqlConnection" in the program. Thanks.
-
I have a simple SQL code that I downloaded from an online tutorial. I created an SQL small database "MySerialNumbersDb" successfully, but any program I write to access this database doesn't work. The...
-
Thanks for the explanation.
-
Thank you all. I'm working on these changes now. However, I have a question related to this. When I opened a folder showing my C drive, I see like 9 or 10 programs that were installed right in the C...
-
I'm sorry PlausiblyDamp. Thank you OptionBase1. I'll give it a try.
-
Okay, I'll study the two links provided by OptionBase1. That's beyond my skills level, but I'll give it a try.
-
I think you are 100% right :rolleyes:. I have seen some programs that instead of creating the installation under C:\Program Files (x86)\, they install the program under a custom directory like...
-
Hi. The first time I run this program works fine. Now, if I close the program and open it again I receive this error that crashes the program "Access to the path "C:\Program Files...
-
Thanks. I tried to unblock the file ALL64v1_M.resx in the properties window, but that wasn't the file that was blocked. I had to unblock everything inside the folder using the method shown above. I...
-
Thanks dday9. That fixed it. That link has a bunch of possible solutions, but only one fix worked for me. The solution was,
-
Hi,
This is a weird one. Has anyone encountered this error before? Any ideas on how to fix this issue?
Thanks,
Robert
-
That worked. Thank you for your help.
-
Hi, this should be an easy question for some of you. I can enable the timer TimerHighlightLEDs using the first part of the code below. However, it won't work with the second part of the code in red....
-
Thanks for your help. It worked!!
|
Click Here to Expand Forum to Full Width
|