asqbtcupid / unreal.lua

lua solution for UnrealEngine4
MIT License
300 stars 98 forks source link

restartlevel lead to crash #5

Closed gamebili closed 7 years ago

gamebili commented 7 years ago

enter console command "restartlevel", then the game crashed. Crash message " World /Game/TestMap.TestMap not cleaned up by garbage collection! "

asqbtcupid commented 7 years ago

Fix it.maintain gc reference between two VM is a challenge work.In unreal.lua, If you reference an UObject pointer in lua,It won't be garbarge collected by c++.I made a mistake in cppobjectbase.lua.