• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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