PDA

View Full Version : Excessive Globals and Locals Warning ...


njones
06-24-2010, 12:07 PM
I just fnished dealing with an "Unresolved Dependency" runtime error that appears to be caused by too many global variables (entirely my fault).

I suggest either:
- a compiler warning if certain globals / locals (strings?) limits are exceeded. The user would have to provide the limits to match the intended target platform.

Or:
- a compiler report (dialog or maybe an output text file?) of the number of globals used and the function with the most local and max string buffer usage.

This would be extremely helpful to stay within the dotted lines.

mgenti
06-24-2010, 12:39 PM
Thank you for your suggestions!

We have made some improvements in this area in Portal 2.4 so it would be interesting to see if that would have helped diagnosis your problem. Also, is it possible to get your original script with the error? This way we can test it here and see what we can do to make the messages more meaningful.