FrankLIKE / dfl2

Now dfl can use in Visual Studio .net.
17 stars 1 forks source link

Error in release mode #2

Open Damanox opened 9 years ago

Damanox commented 9 years ago

Program works good when build in debug mode. But when used dub build --build=release, received error on start

Error: dfl.base.DflException@C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-master\source\dfl\base.d(32): Control creation failure
----------------
0x00413EF9
0x00429395
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x00420A18
0x004145FB
0x00413AC9
0x00429395
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x00420A18
0x004145FB
0x0041A476
0x00433B0B
0x00433A21
0x004072E8
0x7762919F in BaseThreadInitThunk
0x7794A22B in RtlInitializeExceptionChain
0x7794A201 in RtlInitializeExceptionChain

abnormal program termination
FrankLIKE commented 9 years ago

Now It' s ok,thank you.

Damanox commented 9 years ago

Tried 1.0.1, still getting this error.

Error: dfl.base.DflException@C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\base.d(32): Control creation failure
----------------
0x004185D9
0x00429F55
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x0041F954
0x00418CDB
0x004181A9
0x00429F55
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x0041F954
0x00418CDB
0x0041A41E
0x00433B0B
0x00433A21
0x004072E8
0x7762919F in BaseThreadInitThunk
0x7794A22B in RtlInitializeExceptionChain
0x7794A201 in RtlInitializeExceptionChain

abnormal program termination
FrankLIKE commented 9 years ago

dub in D2.066,you can see the picture:https://raw.githubusercontent.com/FrankLIKE/dfl2/master/Images/dub_build.png

Damanox commented 9 years ago

Very strange... I can't build even dflexe

\AppData\Roaming\dub\packages\dfl2-1.0.1>dub build --config dflexe --build=release --force
Building dfl2 1.0.1 configuration "dflexe", build type release.
Compiling using dmd...
Error: cannot read file source\dfl_exe\dfl_exe.d
FAIL .dub\build\dflexe-release-windows-x86-dmd_2066-EEBB47E50E23EE173C22A8DD351C6388\ dfl_Release executable
Error executing command build: dmd failed with exit code 1.

DMD 2.66.0, dub 0.9.22

FrankLIKE commented 9 years ago

Sorry ,dfl_exe.d → dflexe.d ,keep the same name with the module. please clone the new master codes. Maybe the dub 0.9.21+60 is better than 0.9.22 ,I use the 0.9.21+60. Thank you.

Damanox commented 9 years ago

This error occurs only if -inline flag is specified for dmd. Inline and debug mode:

Error: dfl.base.DflException@C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\base.d(32): Control creation failure - CreateWindowEx failed {className=DFL_TextBox;exStyle=0x200;style=0x56010844;parent=0x490784;menu=0x0;inst=0x400000;}
----------------
0x004E5CD8 in void dfl.control.Control.createHandle() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(6377)
0x005009D1 in void dfl.textbox.TextBoxBase.createHandle() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\textbox.d(602)
0x004DC6F3 in void dfl.control.Control.createChildren() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(2942)
0x004E4B82 in void dfl.control.Control.mustWndProc(ref dfl.base.Message) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(5797)
0x0051C8B1 in dflWndProc at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(1997)
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x00509031 in void* dfl.internal.utf.createWindowEx(uint, immutable(char)[], immutable(char)[], uint, int, int, int, int, void*, void*, void*, void*) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\internal\utf.d(538)
0x004C8699 in void dfl.form.Form.createHandle() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\form.d(455)
0x004E6CFA in void dfl.control.Control.setVisibleCore(bool) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(2942)
0x004CEB3C in void dfl.form.Form.setVisibleCore(bool) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\form.d(1834)
0x005210C2 in bool dfl.application.Application.ErrForm.doContinue() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(796)
0x00517BCD in bool dfl.application.Application.showDefaultExceptionDialog(Object) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(852)
0x00507B3D in nothrow void dfl.application.Application.onThreadException(object.Throwable) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(906)
0x004E4BB7 in void dfl.control.Control.mustWndProc(ref dfl.base.Message) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(5805)
0x0051C8B1 in dflWndProc at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(1997)
0x75BE7834 in CallNextHookEx
0x75BE930F in GetWindowThreadProcessId
0x75BE7BED in CallNextHookEx
0x75BF1538 in UnregisterClassW
0x7793EED2 in KiUserCallbackDispatcher
0x75BF168E in UnregisterClassW
0x75BF1962 in CreateWindowExW
0x7E12159C in SetFarHookMode
0x00509031 in void* dfl.internal.utf.createWindowEx(uint, immutable(char)[], immutable(char)[], uint, int, int, int, int, void*, void*, void*, void*) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\internal\utf.d(538)
0x004C8699 in void dfl.form.Form.createHandle() at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\form.d(455)
0x004E6CFA in void dfl.control.Control.setVisibleCore(bool) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\control.d(2942)
0x004CEB3C in void dfl.form.Form.setVisibleCore(bool) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\form.d(1834)
0x0050F7ED in void dfl.application.Application.run(dfl.application.ApplicationContext, void delegate())
0x004F03DC in void dfl.application.Application.run(dfl.application.ApplicationContext) at C:\Users\Admin\AppData\Roaming\dub\packages\dfl2-1.0.1\source\dfl\application.d(465)
0x004060A0 in _Dmain
0x00525C4A in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv
0x00525C1F in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
0x00525B35 in _d_run_main
0x004AC760 in main
0x0054F101 in mainCRTStartup
0x7762919F in BaseThreadInitThunk
0x7794A22B in RtlInitializeExceptionChain
0x7794A201 in RtlInitializeExceptionChain

abnormal program termination
FrankLIKE commented 9 years ago

Thank you,I have modify the base.d 's error. Please to get the v1.0.2. dfl2 for windows ,so '-inline' no useful . Here is some things about '-inline' : D, being a systems programming language, provides an inline assembler. The inline assembler is standardized for D implementations across the same CPU family, for example, the Intel Pentium inline assembler for a Win32 D compiler will be syntax compatible with the inline assembler for Linux running on an Intel Pentium.