• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Does this memory leak? help me check~

Status
Not open for further replies.
Level 11
Joined
Oct 20, 2007
Messages
342
  • Leak 1
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Point1 = (Position of Paladin 0005 <gen>)
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Special Effect - Create a special effect attached to the overhead of (Last created unit) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Unit - Kill (Last created unit)
      • Custom script: call RemoveLocation (udg_Temp_Point1)
      • -------- Does special effect leak the memory after the unit die? --------
Does special effect leak the memory after the unit die?


  • Leak 2
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Cinematic - Clear the screen of text messages for (All players)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set String[1] = Example1 #35124331512351213315423513243361512/ end
          • Set String[2] = Example2 #35124331512351213315423513243361512/ end
          • Set String[3] = Example3 #35124331512351213315423513243361512/ end
          • Set String[4] = Example4 #35124331512351213315423513243361512/ end
          • Set String[5] = Example5 #35124331512351213315423513243361512/ end
          • Game - Display to (Player group((Player((Integer A))))) the text: String[1]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[2]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[3]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[4]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[5]

Does this causing memory leak? Any way to remove memory this leak?
 
Level 11
Joined
Oct 20, 2007
Messages
342
ok 1st leak solve, 2nd trigger does leak?

  • Leak 2
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Cinematic - Clear the screen of text messages for (All players)
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Set String[1] = Example1 #35124331512351213315423513243361512/ end
          • Set String[2] = Example2 #35124331512351213315423513243361512/ end
          • Set String[3] = Example3 #35124331512351213315423513243361512/ end
          • Set String[4] = Example4 #35124331512351213315423513243361512/ end
          • Set String[5] = Example5 #35124331512351213315423513243361512/ end
          • Game - Display to (Player group((Player((Integer A))))) the text: String[1]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[2]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[3]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[4]
          • Game - Display to (Player group((Player((Integer A))))) the text: String[5]

Does this causing memory leak? Any way to remove memory this leak?[/QUOTE]
 
Status
Not open for further replies.
Top