Raised This Month: $ Target: $400
 0% 

[Solved] SMA file to big to be compiled? Not enough memory?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-08-2014 , 07:57   Re: SMA file to big to be compiled? Not enough memory?
Reply With Quote #1

It crashes because of g_strKnifeSounds, you have left a comma for the last item and for some reason compiler doesn't like it. It's dumb, and another stupid compiler bug. It seems to crash only with 3d array with undefined size. I don't remember if it was happening with 1.8.2 compiler, as it could be a side-effect of the update applied in 1.8.3. That's said, I remember SourceMod allowing extra comma in array, like enum, I guess it's worth to check that. Compiler is a bitch.

EDIT: If you are curious how I've found that, I've just compiled compiler in debug mod, then seen an assertion has been triggered inside a function related to array initialization. Then, I've removed all code except declaration, and removed array by array until it doesn't crash. Then seen the extra comma.
__________________

Last edited by Arkshine; 12-08-2014 at 08:07.
Arkshine is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-08-2014 , 07:59   Re: SMA file to big to be compiled? Not enough memory?
Reply With Quote #2

Quote:
Originally Posted by Arkshine View Post
It crashes because of g_strKnifeSounds, you have left a comma for the last item and for some reason compiler doesn't like it. It's dumb, and another stupid compiler bug. Actually it should not crash, even if by default it's not allowed. I don't remember if it was happening with 1.8.2 compiler, as it could be a side-effect of the update applied in 1.8.3. That's said, I remember SourceMod allowing extra comma in array, like enum, I guess it's worth to check that. Compiler is a bitch.
I know for a fact that SM's compiler allows a final comma in enums, arrays idk for sure.
__________________
WildCard65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode