Closed halildurmus closed 10 months ago
Running the AOT-compiled executable of the hello world example crashes:
Update: I have identified the source of the problem. The issue lies in the initApp function, where an incorrect Pointer is passed to the LocalFree function: https://github.com/dart-windows/win32/blob/ccdaaf2cd52f675a2f20eaf59f0a312156645225/lib/src/utils.dart#L61
initApp
Pointer
To resolve the problem, the code must be changed to LocalFree(szArgList);.
LocalFree(szArgList);
Running the AOT-compiled executable of the hello world example crashes:
Update: I have identified the source of the problem. The issue lies in the
initApp
function, where an incorrectPointer
is passed to the LocalFree function: https://github.com/dart-windows/win32/blob/ccdaaf2cd52f675a2f20eaf59f0a312156645225/lib/src/utils.dart#L61To resolve the problem, the code must be changed to
LocalFree(szArgList);
.