String Explode : Segmentation Fault
Code:
Code:
I get this error Quote:
|
Re: String Explode : Segmentation Fault
Any help?
|
Re: String Explode : Segmentation Fault
Debug it. After every statement put a log_amx() call so you will get to know exactly at which statement it crashes. Then when you find out which statement it is, print any values that are used in that statement. Just a regular process of debugging that you should know yourself.
|
Re: String Explode : Segmentation Fault
Post a simple test plugin. I don't get any crash only with the code you provided.
|
Re: String Explode : Segmentation Fault
Quote:
Before this line everything runs and on this it gives the error |
Re: String Explode : Segmentation Fault
What is your plugin's "Stack/heap size"?
|
Re: String Explode : Segmentation Fault
Solved ! Was declaring variable in a loop causing that
|
Re: String Explode : Segmentation Fault
@ish12321 for me not only in loop. Looks like compiler calculates "max. usage", but doesn't use it for calculating "stack/heap size":
Code:
Stack/heap size: 16384 bytes; estimated max. usage=8266 cells (33064 bytes) Code:
|
All times are GMT -4. The time now is 16:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.