Jump to content

HowToBen

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by HowToBen

  1. If anybody found out something new about the StirngRegExp problem. please contact one of my college with the username "metris". He took over all my tasks regarding AutoIt. Thanks Ben
  2. I did a several more tests. The result is: It crashes as often with the beta as with the stable version. Of 100 runs it crashes about 10 times. I'm sorry, but I have no influence on your system. I'm sure the new Beta didn't fix the problem. Maybe you have to test it with the bigger Log-File to replicate a crash. I don't know. Ben
  3. Hello Community, this StringRegExp Bug makes me crazy and I can't do anything. I would like to help you locate the problem. Is it possible to get the code of StringRegExp to have a closer look on it? Bye Ben
  4. As I said, I tried your ZIP with the latest Beta and run it with ALT+F5 and it still crashes. It crashes not always but I got the crash at least four times. I'm pretty sure the latest beta don't solves the problem. What to do now? Ben
  5. Hi there, I tried your script with the latest Beta. No effect. It still crashes on my system. Ben
  6. Hi Guys, I will post the Code tomorrow. I first have to anonymize it. You also need the log-file to search in. There is a little problem its size is about 10 MB. Any suggestions? Another funny thing is: If the crash occures with a log-file. And I just rename the log-file to search it may not crash any more. ErrorCode on console was: I'm running Win XP Professional SP2 Thank you for all the help Ben
  7. Hey there, I replaced the .* now looks like: Maske1: ((?:.*?)Daemon\.critical(?:.*?)10\.137\.145\.25(?:.*?)Hardware(?:.*?)temperature above threshold(?:.*?)) Maske2: ((?:.*?)Overly long line received(?:.*?)IP=207\.46\.248\.42(?:.*?)) same problem, didn't help. StringRegExp($line, $maske[$i], 0, 1) with flag = 0 don't capture anything. I'm just checking if it matches. and offset = 1 is default, so it shouldn't have an effect. With no offset the crash occures too. yeah it is just for debugging. @Jos: I'm running the v3.2.12.1 never tried another. Bye Ben
  8. I'm sorry, there we go. Do you think there is something wrong with the pattern? Maybe interesting: Usually the script works, sometimes it crashes, but not on the first call of StringRegExp. So long Ben
  9. Hello, im trying to search log-file by using StringRegExp. The script reads a line in the log-file and if the mask matches the line, the script sends an email. Sending emails works fine. And the other stuff too. Sometimes the script crashes, I tried to trace it and I think the reason is the StringRegEx function. I see no reason, why the script crashes. It doesnt crash always. Its really weird. If I just put in a comment line somewhere in the script, it may not crash any more. If I put in another comment line somewhere else it may crash again. Does anybody have an idea? I think its helpful for you to see some code. Here it is. For $i = 0 To $maskenanzahl - 1 Step 1 ;counts the matches Local $anzahlTreffer = 0 Local $file = FileOpen($tempLogDatei, 0) If $file == -1 Then ;logs the text _logge("Fehler beim FileOpen") Else _logge("Datei geöffnet") While 1 Local $line = FileReadLine($file) If @error == -1 Then ExitLoop ElseIf @error == 1 Then _logge("Fehler bei FileReadLine") EndIf If StringRegExp($line, $maske[$i], 0, 1) Then $anzahlTreffer = $anzahlTreffer + 1 ;sends an email _emailSenden($line, $i+1) ElseIf @error == 2 Then _logge("Fehler bei RegExp " & @error) EndIf WEnd FileClose($file) EndIf _logge("Maske" & $i + 1 & " lieferte " & $anzahlTreffer & " Treffer") Next _logge("Filterung abgeschlossen") Thanks for helping. Ben PS: Some lines are very long (about 1000 chars). Does it have any effect?
×
×
  • Create New...