1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-07 19:13:20 +00:00

1. added .msh flag for HECI debug

2. Fixed _GenericMarshal crash on Windows if GlobalCallback is executed after GC
This commit is contained in:
Bryan Roe
2019-12-12 10:48:50 -08:00
parent 286075832a
commit 9661c15bc9
2 changed files with 5 additions and 1 deletions

View File

@@ -1514,6 +1514,8 @@ void ILibDuktape_GlobalGenericCallback_ProcessEx(void *chain, void *user)
int i;
//void *retVal = NULL;
Duktape_GlobalGeneric_Data *data = (Duktape_GlobalGeneric_Data*)user;
if (!ILibMemory_CanaryOK(data->emitter)) { return; }
char tmp[255];
sprintf_s(tmp, sizeof(tmp), "%ul", data->callingThread);
duk_push_heapptr(data->emitter->ctx, data->emitter->object); // [obj]