13.09.2011, 06:08
I had a question, is it possible to destroy all objects in a loop? If you get a invalid object ID, will it screw up? Is there a limit in how much you can destroy?
I did a few tests and tried to make a loop that allowed this. Firstly I tried deleting all of the objects on OnPlayerSpawn with a basic loop. This was very unsucessful and started chucking me opcode errors until a crash occurred.
In addition to this, I'm getting very random crashes that happen a few times then stop (before the game has fully loaded).
I've done a bit of research and these crashes used to happen quite a bit back in '09. I know how to fix the first one but I'm confused why it randomly happened a few times after starting 0.3d.
Thanks
~[HiC]TheKiller.
I did a few tests and tried to make a loop that allowed this. Firstly I tried deleting all of the objects on OnPlayerSpawn with a basic loop. This was very unsucessful and started chucking me opcode errors until a crash occurred.
Код:
[18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090 [18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090 [18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090 [18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090 [18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090 [18:00:53] Warning(s002): Exception 0xC0000005 at 0x4CE090
Код:
SA-MP 0.3d-RC1 Exception At Address: 0x7767DFC4 Registers: EAX: 0x03D4FFF8 EBX: 0x03D50000 ECX: 0x0028F8D8 EDX: 0x00000000 ESI: 0x03D50000 EDI: 0x00000000 EBP: 0x0028EAB8 ESP: 0x0028EAA8 EFLAGS: 0x00210246 Stack: +0000: 0x03D50000 0x04273A3C 0x0028FAC4 0x00000000 +0010: 0x0028EACC 0x768D14DD 0x03D50000 0x00000000 +0020: 0x03D50000 0x0028EB08 0x04241B00 0x03D50000 +0030: 0x00000000 0x03D50000 0x04273A3C 0x00000000 +0040: 0x0028FAC4 0x768D11A9 0x0028EAE0 0x0028E67C +0050: 0x0028EB60 0x04242524 0x04269D68 0xFFFFFFFF +0060: 0x0028FAD0 0x041B7389 0x03D50000 0x04247FD7 +0070: 0x04273A3C 0x00000000 0x0028EB30 0x04273A1C +0080: 0x0028FAC4 0x0028FAD0 0x0028EB70 0x042470F9 +0090: 0x0425D33B 0x0028FAC4 0x00000103 0x19930520 +00A0: 0x04273A3C 0x00000000 0x00000000 0x00000001 +00B0: 0x0028EB44 0x0028E67C 0x0028EBE0 0x04242524 +00C0: 0x0426A0B0 0x00000001 0x0028EB90 0x04247BB1 +00D0: 0x0028FAC4 0x0028ECD8 0x04273A3C 0xFFFFFFFF +00E0: 0x00000000 0x00000000 0x0028EBC8 0x042415A4 +00F0: 0x0028EC38 0x0028FAC4 0x0028ECE4 0x0028ECD8 +0100: 0x04273A3C 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x00000000 0x00000000 0x04273A3C +0120: 0x0028EBEC 0x77696AB9 0x0028EC38 0x0028FAC4 +0130: 0x0028ECE4 0x0028ECD8 0x0028FAC4 0x77696AF4 +0140: 0x0028FAC4 0x0028EFB4 0x77696A8B 0x0028EC38 +0150: 0x0028FAC4 0x0028ECE4 0x0028ECD8 0x0425D35C +0160: 0x00000001 0x0028EC38 0x0028FAC4 0x77696E32 +0170: 0x0028EC38 0x0028FAC4 0x0028ECE4 0x0028ECD8 +0180: 0x0425D35C 0x0028FF78 0x00888078 0x00000000 +0190: 0xC0000027 0x00000002 0x00000000 0x008218EC +01A0: 0x00000000 0x00000000 0x00000000 0x00000000 +01B0: 0x00000000 0x00000000 0x00000000 0x00000000 +01C0: 0x00000000 0x00000000 0x00000000 0x00000000 +01D0: 0x00000000 0x00000000 0x00000000 0x00000000 +01E0: 0x00000000 0x00000000 0x00000000 0x00000000 +01F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0200: 0x00000000 0x00000000 0x00000000 0x00000000 +0210: 0x00000000 0x00000000 0x00000000 0x00000000 +0220: 0x00000000 0x00000000 0x00000000 0x00000000 +0230: 0x00000000 0x00286000 0x00290000 0x00010007 +0240: 0x00000000 0x00000000 0x00000000 0x00000000 +0250: 0x00000000 0x00000000 0x00000000 0x00000000 +0260: 0x00000000 0x00000000 0x00000000 0x00000000 +0270: 0x00000000 0x00000000 0x00000000 0x00000000 SCM Op: 0x109, lDbg: 0 Game Version: EU 1.0 State Information: Ped Context: 0
Код:
SA-MP 0.3d-RC1 Exception At Address: 0x0040FB80 Registers: EAX: 0x0E608748 EBX: 0x0E5F8738 ECX: 0x00000000 EDX: 0x00000000 ESI: 0x040D321C EDI: 0x0E5F8738 EBP: 0x00000118 ESP: 0x0028FC90 EFLAGS: 0x00210202 Stack: +0000: 0x004C6DC5 0x00000030 0x0E5F8738 0x0E5F8738 +0010: 0x040D321C 0x00000118 0x00001500 0x0028FCF0 +0020: 0x0028FCF0 0x0E608748 0x040D321C 0x04EDE8C8 +0030: 0x0028FCF0 0x008A62EC 0x008A62EC 0x040D321C +0040: 0x00001500 0x004C549D 0x04EDE800 0x004C52F0 +0050: 0x0028FCF0 0x0E5F8738 0x040D321C 0x0028FF78 +0060: 0x0083BC8B 0xFFFFFFFF 0x004C7369 0x0E5F8738 +0070: 0x0E5F8738 0x040D321C 0x005373CF 0x0E5F8738 +0080: 0x008E48AC 0x00000118 0x040D321C 0x000015E0 +0090: 0x0040C814 0x008E48AC 0x040D321C 0x000015E0 +00A0: 0x00000118 0x00000000 0x008E4A60 0x72C46629 +00B0: 0x0F470800 0x00012000 0x768D1194 0x000001AC +00C0: 0xFFFFFFFF 0x00000000 0x018443E0 0x0040E2CA +00D0: 0x0F470800 0xFFFFFFFF 0x00000000 0x00000008 +00E0: 0x00000000 0x76A46C30 0x00000000 0x00000000 +00F0: 0x00000024 0x0040EAC8 0x00000000 0x00000001 +0100: 0x00000000 0x00863B10 0x005BA263 0x00000000 +0110: 0x00863A6C 0x0086A578 0x00000000 0x0053BCAB +0120: 0x00863B10 0x00863B10 0x00863A90 0x00863B10 +0130: 0x0000000A 0x0053E593 0x00863B10 0x00748D50 +0140: 0x768D1245 0x00000000 0x0028FF88 0x7EFDE000 +0150: 0x01610000 0x00000008 0x01613F10 0x00000008 +0160: 0x00000100 0x00000008 0x00000102 0x44000000 +0170: 0x43C00000 0x00000000 0x00000000 0x00000400 +0180: 0x00000300 0x00000000 0x0028FE54 0x000F069C +0190: 0x00000200 0x00000000 0x01800200 0x0020643C +01A0: 0x00000200 0x00000180 0x0000002C 0x0028FE2C +01B0: 0x00825EE4 0x768D1245 0x00000000 0x7EFDE000 +01C0: 0xFFFFFFFF 0x00821D57 0x00000065 0x00000065 +01D0: 0x0028FF88 0x00824731 0x00400000 0x00000000 +01E0: 0x017D2F2B 0x0000000A 0x00000094 0x00000006 +01F0: 0x00000000 0x00001770 0x00000002 0x76726500 +0200: 0x20656369 0x6B636150 0x00003120 0x00000000 +0210: 0x00000000 0x00000000 0x00000000 0x00000000 +0220: 0x00000000 0x00000000 0x00000000 0x00000000 +0230: 0x00000000 0x00000000 0x00000000 0x00000000 +0240: 0x00000000 0x00000000 0x00000000 0x00000000 +0250: 0x00000000 0x00000000 0x00000000 0x00000000 +0260: 0x00000000 0x00000000 0x00000000 0x00000000 +0270: 0x00000000 0x00000000 0x008245C8 0x00000000 SCM Op: 0x0, lDbg: 0 Game Version: EU 1.0
Код:
SA-MP 0.3d-RC1 Exception At Address: 0x006F5636 Registers: EAX: 0x0F69DFFF EBX: 0x0F690878 ECX: 0x00823100 EDX: 0xF14E0DF8 ESI: 0x0000D788 EDI: 0x00000001 EBP: 0x0000D787 ESP: 0x0028FD00 EFLAGS: 0x00210207 Stack: +0000: 0x00000000 0x00000001 0x00863B10 0x76A46C30 +0010: 0xC50CDA14 0x426EE354 0x4208AD29 0x008D48F8 +0020: 0x0000012C 0xFFFFB993 0x44B3F3D7 0x45248429 +0030: 0x411D2805 0x0028FF78 0x00848AEB 0xFFFFFFFF +0040: 0x006F74C1 0x008724AC 0x00C3802C 0x00C3801C +0050: 0x00C37FF4 0x00000002 0x00000001 0x00863B10 +0060: 0x00000000 0x000000FF 0x005B931E 0x008E2C90 +0070: 0x41544144 0x50414D5C 0x75615C53 0x7A6F6964 +0080: 0x692E6E6F 0x00006C70 0x50492E64 0x0000004C +0090: 0x00824200 0x00001800 0x00000000 0x008211F7 +00A0: 0x00001800 0x49742400 0x005B3206 0x00001800 +00B0: 0x0053BCA0 0x00863B10 0x00863A90 0x00863B10 +00C0: 0x0000000A 0x0053E593 0x00863B10 0x00748D50 +00D0: 0x768D1245 0x00000000 0x0028FF88 0x7EFDE000 +00E0: 0x016A0000 0x00000008 0x016A3F10 0x00000008 +00F0: 0x00000100 0x00000008 0x00000102 0x44000000 +0100: 0x43C00000 0x00000000 0x00000000 0x00000400 +0110: 0x00000300 0x00000000 0x0028FE54 0x0011059E +0120: 0x00000200 0x00000000 0x015C0248 0x0021683F +0130: 0x00000248 0x0000015C 0x0000002C 0x0028FE2C +0140: 0x00825EE4 0x768D1245 0x00000000 0x7EFDE000 +0150: 0xFFFFFFFF 0x00821D57 0x00000065 0x00000065 +0160: 0x0028FF88 0x00824731 0x00400000 0x00000000 +0170: 0x01A02F2B 0x0000000A 0x00000094 0x00000006 +0180: 0x00000000 0x00001770 0x00000002 0x76726500 +0190: 0x20656369 0x6B636150 0x00003120 0x00000000 +01A0: 0x00000000 0x00000000 0x00000000 0x00000000 +01B0: 0x00000000 0x00000000 0x00000000 0x00000000 +01C0: 0x00000000 0x00000000 0x00000000 0x00000000 +01D0: 0x00000000 0x00000000 0x00000000 0x00000000 +01E0: 0x00000000 0x00000000 0x00000000 0x00000000 +01F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0200: 0x00000000 0x00000000 0x008245C8 0x00000000 +0210: 0x00000000 0x7EFDE000 0xC0000005 0x00000000 +0220: 0x01A02F2B 0x00000044 0x01A40CB8 0x01A42E48 +0230: 0x01A41A98 0x00000000 0x00000000 0x00000000 +0240: 0x00000000 0x00000000 0x00000000 0x00000000 +0250: 0x00000000 0x00000000 0x00000000 0xFFFFFFFF +0260: 0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000 +0270: 0x0028FE78 0x0028F8D4 0x0028FFC4 0x00825EE4 SCM Op: 0x0, lDbg: 0 Game Version: EU 1.0
Thanks
~[HiC]TheKiller.