No, I am not re-reading in the ini settings.
Here is the code for loading ini settings:
Private Function IniExists() As Boolean
On Error GoTo ErrorHandler
If Dir(App.Path & "\" & IniFileName, vbNormal) = "" Then
ErrorMessage = "The ini file was not present. A blank ini file has been...
During the file processor, it writes to our erp system and then comes back to the timer. Everything works fine except for midnight of every night
Hope the code can help in getting this problem resovled.
What you said about the timer and every one second. It will go through the interval loop...
After starting the service it loops through the timer and looks for a file in the Incoming DIR that is specified in the ini file. When one appears it processes the file:
Public Function Init() As Boolean
LocalDir = IniSettings.GetIniValue("ArchiveFileDir") 'App.Path & "\ArchivedFiles\"...
It then calls the main module. From here it does a number of things:
Sub Main()
On Error GoTo ErrorHandler
'Load the Ini File Settings
If Not IniSettings.LoadIni(IniSettings.GetIniFileName) Then
logger.WriteString IniSettings.GetErrorMsg, logger.PROD_LOGGING...
Here is how it goes...It opens the form Service at startup:
Private Sub Form_Load()
'Set the parameters for the sys tray icon
With nid
.cbSize = Len(nid)
.hWnd = Me.hWnd
.uId = vbNull
.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
.uCallBackMessage =...
Koala, To answer your question....no it does not die for another 23:59.59. The timer is set to a 1 second interval.
Are you suggesting that I put a sleep function in the application when it hits 11:59.55 or something close and then let it sleep for 10 seconds and then start back up and process...
So, I am assuming there is no Flush memory function in vb6.
Here is the code of the timer interval.
If you need more I can supply it but this project is very large
Dim newFile As String
newFile = Dir(FileWorker.GetIncomingDir, vbDirectory)
Do While newFile <> "" ' Start the loop.
If...
Yes, I fI run this program in debug mode I will still get the errors. These are some of the errors that I get. The error 0 is what I get when I try and just log the message. With different error handlers, I have received the other messages. Hope this can shed some light.
12:00:38 Error# 0...
The problem really isnt in the timer. That is just the first sub that it is on when it fails. It is strange because the application will fail on anything. It acts like it is completely lost. It completely fails on every aspect. The application runs as a service and right now I stop and...
Hello,
I am working on a VB application that looks for a file in a network DIR. When it finds the file, it moves it to a backup DIR and then parses the file and does some transactional work. Then it will go back and look in the DIR for another file. It works great except for then the...
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.