| 09-04-2007, 05:10 AM | #1 |
Um ya im getting that error at line 25k in a trigger of mine anyone have any ideas? Also how do I remove a sound leak? |
| 09-04-2007, 05:18 AM | #2 |
post code, this post means nothig |
| 09-04-2007, 05:36 AM | #3 |
heh you asked for it... There are 2 files in the zip one shrunk.txt is a version of the normal.txt with all whitespace removed which makes it so that I do not get the error however I need to find out why I get the error because I will have longer triggers then this one... I would just post the text here but the condensed version is just over 20k lines and the normal is over 60k PS: how do I remove a sound leak? |
| 09-04-2007, 06:10 AM | #4 |
sounds don't leak as long as you don't re-create a new soundhandle. I believe there is a destroy or remove for soundhandle types |
| 09-04-2007, 06:30 AM | #5 |
so would this leak or not? JASS:set S = gg_snd_E_4 call PlaySoundBJ( S ) call SetSoundVolumeBJ( S,100 ) set udg_Sound[1] = S call TimerStart(T1, 2.00, true, function E_4_1) set T1 = null set S = gg_snd_E_4 call PlaySoundBJ( S ) call SetSoundVolumeBJ( S,100 ) set udg_Sound[1] = S call TimerStart(T1, 77.00, true, function E_4_1) set T1 = null |
| 09-04-2007, 08:04 AM | #6 |
no, since you are not creating a new soundhandle, only using a pre-created one stored in the global. |
| 09-04-2007, 08:25 AM | #7 |
Sort out the other higher up messages before worrying about lower down ones. Always. If you still have the problem when all the other errors above it are gone, come back. |
| 09-04-2007, 09:36 AM | #8 |
The higher up ones are just missing variables I already fixed them as well as got the trigger to not error But my problem is that I NEED to have larger triggers then this one and need to find a way to not hit the memory error. |
| 09-04-2007, 09:48 AM | #9 |
Run loops? |
| 09-04-2007, 10:16 AM | #10 |
So it doesn't error now? So what is the problem...? |
| 09-04-2007, 10:56 AM | #11 |
too long |
| 09-04-2007, 01:47 PM | #12 |
I am not surprised the parser ran out of memory, even the forum was having issues... Looks like a vbulletin bug with long post, gonna have to set a maximum characters per post... Perhaps too much calls inside that function, are you using \n for linebreaks or \r\n ? Could be you are using \n and pjass thinks it is all a single line and tries to split it but it is too long for a line. For some reason after I deleted the source of your code, the cache of the jass tag was left, next time you get such long code attaching it as a text file might be a good idea. |
| 09-04-2007, 05:11 PM | #13 |
I lol'd. When the forum was having issues, it said "Fatal Error [large number here] bytes exceeded, memory exhausted, relocating [bigger number here] blah blah blah" |
| 09-04-2007, 09:16 PM | #14 |
@vex well ya I was thinking that but then I crashed the thread so went ah what the heck ah well :P as for linebreaks im using @CR in autoit (like I said its from a parser program) I believe /r is the equivalent. Also I put it into JASS DEMO and I got no error. PJASS gives me no error... and yet no sounds play... @dark ya thats when I decided to goto bed :P |
