Access violation reading location TArray.Empty()
Hi guys, Im not sure what is going on here. I have been following the Shooter Example project to try and get some multiplayer functionality and i'm in the process of writing the server browser widget but when i call Empty() on the array of list items, i get an access violation saying:
First-chance exception at 0x00007FF75582CE19 in RTS-Win64-DebugGame.exe: 0xC0000005: Access violation reading location 0x0000000000000008. Unhandled exception at 0x00007FF75582CE19 in RTS-Win64-DebugGame.exe: 0xC0000005: Access violation reading location 0x0000000000000008.
I dont understand what i am doing wrong here because this is called as soon as the menu is brought up, so there aren't even any items there. I have already tried making the array a uproperty as the array is of shared pointers and that had no effect.
Any help with this would be greatly appreciated.
asked Apr 19 '15 at 09:54 PM in C++ Programming
I Have fixed the problem now. I believe it was something along the lines of what BaderThanBad was saying. I was calling the BeginServerSearch function when the widget was enabled. To fix it i called the function when a button was pressed.
Thank you for your help BaderThanBad
Follow this question
Once you sign in you will be able to subscribe for any updates here