On Wednesday, 21 July 2021 at 03:25:03 UTC, apz28 wrote:
VisualD project - Any hint to work around
DMD version:
DMD32 D Compiler v2.096.0-rc.1-dirty
Copyright (C) 1999-2021 by The D Language Foundation, All
Rights Reserved written by Walter Bright
Failed Build Command line:
dmd -release -m32mscoff -O -inline -dip25 -dip1000
-preview=fixAliasThis -X -Xf"Win32\Release\db_library.json" -c
-of"Win32\Release\db_library.obj"
@Win32\Release\db_library.build.rsp
with below error message:
..\..\pham\db\db_skdatabase.d(140): Error: null dereference in
function
_D4pham2db10fbdatabase7FbArray__T13readArrayImplTbZQsMFNfCQCeQCc8database12DbNameColumnZAb
..\..\pham\db\db_skdatabase.d(139): Error: null dereference in
function
_D4pham2db10fbdatabase7FbArray__T13readArrayImplTbZQsMFNfCQCeQCc8database12DbNameColumnZAb
Error: null dereference in function
_D4pham2db10fbdatabase7FbArray__T13readArrayImplTbZQsMFNfCQCeQCc8database12DbNameColumnZAb
..\..\pham\db\db_skdatabase.d(138): Error: null dereference in
function
_D4pham2db10fbdatabase7FbArray__T13readArrayImplTbZQsMFNfCQCeQCc8database12DbNameColumnZAb
The problem here is not actually -release but -O.
-O will check for null derefences in your code when using @safe I
believe.
I didn't inspect your code much further, as I'm short on time
right now, but you should have a starting point now at least.