Watch out for the dot-vs-comma thing. VAL always expects a dot as decimal separator, the other functions are "culture dependent", and might expect comma on european pc's.
I got it to work! Strangely, the solution was the other way around. I moved declaration of the big classes (server connection) to the main thread, and just call the methods on them in a separate thread. I'll have to test this for long-term stability, but there is light at the end of the...
Some OCX or DLL got overwritten with a different and incompatible version. Try uninstalling it and then reinstalling it again. If you have the sourcecode or a dependency checker, you can copy the DLL's into the same folder as the EXE, so they don't get overwritten again.
As an alternative, Realbasic allows you to write VB6 style apps which are compiled into a single executable (no libraries), AND they are cross-platform MS-Apple-Linux!!! These guys got some good press recently:
http://www.realsoftware.com/
Depends a little on how much data you need to pump around. If it is not too much I would suggest going through the DB, as it will be more flexible to edit later. For high-speed stuff, I guess you should go direct, but it will not be that easy to find a good and stable communication.
Nope :-( I did find out it only crashes whet it gets called for a second time, so I did a little more effort on the cleaning-up, but that didn't help either...
Private Sub Updatetimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Updatetimer.Tick
Dim T As...
If you don't mind everything in one sheet, and you don't want to depend on Excel COM, then just export an ascii file and give it extension CSV. Use ; as separator between cells and format your doubles as "0000000E00". (That way you don't get , or . in your numbers, and it equally imports well...
I switch the ' to switch between main thread and separate thread
Private Sub Updatetimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Updatetimer.Tick
Dim T As Threading.Thread
Try
' Trace.WriteLine("Starting thread")...
If your app doesn't take any external controls (OCX, DLL), all you need is the VB6 runtime. But Win2K, XP, (NT4???) have this installed by default I think.
the "Me.LastBatchNumber..." thingies are shared variables, but even if I comment those lines out, the thing still crashes...
Private Sub CheckPIM()
Try
Dim s As String
Dim srv As Server
Dim pt As PIPoint
Dim inst As New PISDK.PISDKClass...
Welcome to VB.net :-)
The idea really is that the .NET framework should be installed on every computer anyway. You can install it through the WindowsUpdate funtion, future versions of Windows will have it as standard. For now, you can bite the bullet, or rewrite it to VB6 or C++....
I have a sub which calls a lot of COM (ActiveX) stuff. If I call the sub from the main thread, it works perfectly. If I call it as a new thread, the whole program just disapears without any kind of error message. If I replace the sub with something more simple, it also works OK. The entire...
No, I just want to plot the change of a value over time. (Imagine reading out an electronic thermometer every 5 minutes.) Actually I found out it works, but only if you plot data spread over several days. If you plot everything inside one day, the program considers all X values to be equal and...
I made a chart with numeric X axis, but it groups everything by day, even if I set the x-axis format as a time. I would like to print points with time as X, but not grouped per day. I also set my "on change of" to " this will be printed for every second". Anybody any idea?
I know you can do this on a linux machine configured as router for every port. So you could put a router between MQ and the rest of your network, and then ask it to "throttle" those ports which are used by MQ.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.