LDami
LDami
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I worked at least 2 hours with the newest version of Visual Studio, it seems to be fixed. Thanks for your help !
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I've updated Visual Studio, I'll let you know if the issue happens again
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I don't understand why, in this particular script, the hot reload does not work correctly
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
Yes, but I use it for months, maybe years without issues !
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
My code takes about 30 seconds to start, and I have to login to the server etc, ... so hot reload is a real time saver
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
It works all the time, but not here, strange
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I never had this issue before, but it sounds like Visual Studio dispose my object
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I got the Exception when I modify the code by Hot Reload
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
Oh I think I found the issue
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
Good to know !
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
But, what object is Disposed ? How can I see that ? the exception seems to be thrown at different moment
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
Ok, I have understood that, and I think I have not make that in my code (or by mistake maybe)
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I don't really know what is a disposed object, I understand I can use it to delete objects in the game. I haven't find a way to make a disposed object usable again, so I just recreate it again with the new statement
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
There are a lot of .Dispose(), but usually the exception is thrown on the line where I try to access the variable. Example:
Vehicle veh = new();
veh.Dispose();
TeleportPlayerTo(veh.Position); // Exception should be thrown here
Vehicle veh = new();
veh.Dispose();
TeleportPlayerTo(veh.Position); // Exception should be thrown here
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
Yes maybe, but how can I see what var is causing the issue ?
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
what do you mean by car ?
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
I'm not really sure if I use multithreading, I use a wrapper (originally the multiplayer game modes are scripted in C++, and I use a wrapper to create a .dll that is used by the server) I don't know exactly how it works, but it worked well for a long time, I might be doing something wrong
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
No description
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
That is not solve, the exception was thrown again, I don't know why ! To explain: I develop a game mode for a multiplayer game, I try to make a NPC script. I thought it was crashing because the NPC needs a file and I didn't put a try catch on the file reader. Now the same exception is thrown before the file reading, that is a nonsense
77 replies
CC#
Created by LDami on 4/25/2024 in #help
✅ ObjectDisposedException without explicit trace
but anyway, thanks for your help !
77 replies