Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Shane4DaBears

    Clear VB6 Memroy

    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...
  2. Shane4DaBears

    Clear VB6 Memroy

    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...
  3. Shane4DaBears

    Clear VB6 Memroy

    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\"...
  4. Shane4DaBears

    Clear VB6 Memroy

    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...
  5. Shane4DaBears

    Clear VB6 Memroy

    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 =...
  6. Shane4DaBears

    Clear VB6 Memroy

    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...
  7. Shane4DaBears

    Clear VB6 Memroy

    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...
  8. Shane4DaBears

    Clear VB6 Memroy

    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...
  9. Shane4DaBears

    Clear VB6 Memroy

    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...
  10. Shane4DaBears

    Clear VB6 Memroy

    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...

Part and Inventory Search

Back
Top