I'm making a game(puzzle) I made a routine to get rid of the pieces when you press "d". The code worked well for a while, but now when I press "d" the game and the darkbasic editor quit and, give me an illegal operation.
Quote: "
DDHELP caused an invalid page fault in
module <unknown> at 0000:b00e6ad2.
Registers:
EAX=00000000 CS=00c7 EIP=b00e6ad2 EFLGS=00010286
EBX=00000000 SS=00b7 ESP=80a99b68 EBP=80a99bbc
ECX=00000000 DS=00b7 ESI=850e8000 FS=4aa7
EDX=e47f7bb0 ES=00b7 EDI=849b0000 GS=0000
Bytes at CS:EIP:
8b 7f 14 83 c4 08 3b fb 75 ef 55 8d be 74 06 00
Stack dump:
850e8000 849b0000 b01d9440 b01d9440 00000100 b00b9536 850e8000 b01d9440 b00b8f3d b01d9440 80a89140 b01d9440 00000100 b00b903d b01d9440 80a99bbc
"
Here's the piece of code that suppose to get rid of the pieces.
for l=1 to sprite_n
if inkey$()="d" and sprite_n>2
delete sprite l
sprite_n=2
i=0
endif
next l
I reinstalled darkbasic and the DX(DirectX 9.0c).
I'm here!