Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 13, 2008 latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
I try to build latest dwt samples from source with installed dmd snapshot 0.6.2 and DMC (for optlink): compiling is ok, but linking fails: symbol undefined: _IsHungAppWindow and _GetSystemDefaultUILanguage. What to do? |
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | Digited schrieb: > I try to build latest dwt samples from source with installed dmd > snapshot 0.6.2 and DMC (for optlink): compiling is ok, but linking > fails: symbol undefined: _IsHungAppWindow and _GetSystemDefaultUILanguage. > > What to do? http://www.dsource.org/projects/dwt/wiki/FAQ#Linkererroronwindows Thanks for trying DWT. |
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit пишет: > http://www.dsource.org/projects/dwt/wiki/FAQ#Linkererroronwindows > Thanks for trying DWT. Frank Benoit пишет: > Digited schrieb: >> I try to build latest dwt samples from source with installed dmd >> snapshot 0.6.2 and DMC (for optlink): compiling is ok, but linking >> fails: symbol undefined: _IsHungAppWindow and >> _GetSystemDefaultUILanguage. >> >> What to do? > > http://www.dsource.org/projects/dwt/wiki/FAQ#Linkererroronwindows > > Thanks for trying DWT. Thanks, Frank. I was wondering what does "import lib zip file" mean for some time, that is not obvious from faq page... When I downloaded zip with win libs from http://www.dsource.org/projects/dwt/wiki/ImportLibraries, the dsss build result was the same. The real reason was simple: optlink doesn't about dmd/lib! "dsss build --libdir=C:\dmd\dmd\lib" worked. |
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | I get "Object.Exception: access violation" at launch of text editor sample, custom control sample and while pressing any boxes/checkers in control sample... |
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | Digited schrieb: > I get "Object.Exception: access violation" at launch of text editor sample, custom control sample and while pressing any boxes/checkers in control sample... Do you use a compiler known to work? http://www.dsource.org/projects/dwt/wiki/Requirements |
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit пишет:
> Digited schrieb:
>> I get "Object.Exception: access violation" at launch of text editor sample, custom control sample and while pressing any boxes/checkers in control sample...
>
> Do you use a compiler known to work?
> http://www.dsource.org/projects/dwt/wiki/Requirements
Yes, 1.031 from dmd snapshot 0.6.2 - my projects compile and run successfully.
I also have a problem that dsss build "fall asleep" during build process, every time at different sample. Maybe it's Vista's DEP, I'll check it now.
|
July 13, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | Digited schrieb:
> Frank Benoit пишет:
>> Digited schrieb:
>>> I get "Object.Exception: access violation" at launch of text editor sample, custom control sample and while pressing any boxes/checkers in control sample...
>>
>> Do you use a compiler known to work?
>> http://www.dsource.org/projects/dwt/wiki/Requirements
>
> Yes, 1.031 from dmd snapshot 0.6.2 - my projects compile and run successfully.
>
> I also have a problem that dsss build "fall asleep" during build process, every time at different sample. Maybe it's Vista's DEP, I'll check it now.
Hm, yesterday in IRC a user called "krishna" had exactly the same problem on Vista too.
If I "see" him again, i will try to find out what was the exact solution.
|
July 15, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | using ddbg for text editor sample: dwt\graphics\TextLayout.d 2757: text=' ' dwt\graphics\TextLayout.d 2266: segmentsText=' ' chars=' ' dwt\graphics\TextLayout.d 2271: pcItems=1 chars.length=4 segmentsText.length=4 dwt\graphics\TextLayout.d 2275: utf8idx=0 utf16idx=0 si.iCharPos=0 dwt\graphics\TextLayout.d 2275: utf8idx=1 utf16idx=1 si.iCharPos=4 dwt\graphics\TextLayout.d 2275: utf8idx=2 utf16idx=2 si.iCharPos=4 dwt\graphics\TextLayout.d 2275: utf8idx=3 utf16idx=3 si.iCharPos=4 dwt\graphics\TextLayout.d 2298: itemCount=1 stylesCount=5 dwt\graphics\TextLayout.d 2302: start=0 end=4 dwt\graphics\TextLayout.d 2307: count=0 dwt\graphics\TextLayout.d 2336: start=1 end=4 dwt\graphics\TextLayout.d 2307: count=1 dwt\graphics\TextLayout.d 2336: start=2 end=4 dwt\graphics\TextLayout.d 2307: count=2 dwt\graphics\TextLayout.d 2336: start=3 end=4 dwt\graphics\TextLayout.d 2307: count=3 dwt\graphics\TextLayout.d 2336: start=4 end=4 dwt\graphics\TextLayout.d 2342: count=4 dwt\graphics\TextLayout.d 2757: text=' ' dwt\graphics\TextLayout.d 2266: segmentsText=' ' chars=' ' dwt\graphics\TextLayout.d 2271: pcItems=1 chars.length=4 segmentsText.length=4 dwt\graphics\TextLayout.d 2275: utf8idx=0 utf16idx=0 si.iCharPos=0 dwt\graphics\TextLayout.d 2275: utf8idx=1 utf16idx=1 si.iCharPos=4 dwt\graphics\TextLayout.d 2275: utf8idx=2 utf16idx=2 si.iCharPos=4 dwt\graphics\TextLayout.d 2275: utf8idx=3 utf16idx=3 si.iCharPos=4 dwt\graphics\TextLayout.d 2298: itemCount=1 stylesCount=2 dwt\graphics\TextLayout.d 2302: start=0 end=4 dwt\graphics\TextLayout.d 2307: count=0 dwt\graphics\TextLayout.d 2336: start=4 end=4 dwt\graphics\TextLayout.d 2342: count=1 dwt\graphics\TextLayout.d 2266: segmentsText='' chars='' dwt\graphics\TextLayout.d 2271: pcItems=0 chars.length=0 segmentsText.length=0 dwt\graphics\TextLayout.d 2298: itemCount=0 stylesCount=2 dwt\graphics\TextLayout.d 2302: start=0 end=0 dwt\graphics\TextLayout.d 2342: count=0 Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwt.custom.Styled Text.StyledText.installListeners.__anonclass68.handleEvent.dwt.widgets.Event.Eve nt (0x0042ea59) thread(2476) |
July 15, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | Digited schrieb: > using ddbg for text editor sample: > ... > Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwt.custom.Styled > Text.StyledText.installListeners.__anonclass68.handleEvent.dwt.widgets.Event.Eve > > nt (0x0042ea59) thread(2476) Can you please repeat the same with recompile and debug symbols enabled? Option -g Then there would be line numbers. The installListenersMethod is kind of long. When the debugger then stopps, you can use the "us" command to get a stacktrace which is also interresting. |
July 15, 2008 Re: latest dwt samples with dmd snapshot 0.6.2: link errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Digited | Digited schrieb:
> using ddbg for text editor sample:
>
> dwt\graphics\TextLayout.d 2757: text=' '
> dwt\graphics\TextLayout.d 2266: segmentsText=' ' chars=' '
> dwt\graphics\TextLayout.d 2271: pcItems=1 chars.length=4 segmentsText.length=4
> dwt\graphics\TextLayout.d 2275: utf8idx=0 utf16idx=0 si.iCharPos=0
> dwt\graphics\TextLayout.d 2275: utf8idx=1 utf16idx=1 si.iCharPos=4
> dwt\graphics\TextLayout.d 2275: utf8idx=2 utf16idx=2 si.iCharPos=4
> dwt\graphics\TextLayout.d 2275: utf8idx=3 utf16idx=3 si.iCharPos=4
> dwt\graphics\TextLayout.d 2298: itemCount=1 stylesCount=5
> dwt\graphics\TextLayout.d 2302: start=0 end=4
> dwt\graphics\TextLayout.d 2307: count=0
> dwt\graphics\TextLayout.d 2336: start=1 end=4
> dwt\graphics\TextLayout.d 2307: count=1
> dwt\graphics\TextLayout.d 2336: start=2 end=4
> dwt\graphics\TextLayout.d 2307: count=2
> dwt\graphics\TextLayout.d 2336: start=3 end=4
> dwt\graphics\TextLayout.d 2307: count=3
> dwt\graphics\TextLayout.d 2336: start=4 end=4
> dwt\graphics\TextLayout.d 2342: count=4
> dwt\graphics\TextLayout.d 2757: text=' '
> dwt\graphics\TextLayout.d 2266: segmentsText=' ' chars=' '
> dwt\graphics\TextLayout.d 2271: pcItems=1 chars.length=4 segmentsText.length=4
> dwt\graphics\TextLayout.d 2275: utf8idx=0 utf16idx=0 si.iCharPos=0
> dwt\graphics\TextLayout.d 2275: utf8idx=1 utf16idx=1 si.iCharPos=4
> dwt\graphics\TextLayout.d 2275: utf8idx=2 utf16idx=2 si.iCharPos=4
> dwt\graphics\TextLayout.d 2275: utf8idx=3 utf16idx=3 si.iCharPos=4
> dwt\graphics\TextLayout.d 2298: itemCount=1 stylesCount=2
> dwt\graphics\TextLayout.d 2302: start=0 end=4
> dwt\graphics\TextLayout.d 2307: count=0
> dwt\graphics\TextLayout.d 2336: start=4 end=4
> dwt\graphics\TextLayout.d 2342: count=1
> dwt\graphics\TextLayout.d 2266: segmentsText='' chars=''
> dwt\graphics\TextLayout.d 2271: pcItems=0 chars.length=0 segmentsText.length=0
> dwt\graphics\TextLayout.d 2298: itemCount=0 stylesCount=2
> dwt\graphics\TextLayout.d 2302: start=0 end=0
> dwt\graphics\TextLayout.d 2342: count=0
> Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwt.custom.Styled
> Text.StyledText.installListeners.__anonclass68.handleEvent.dwt.widgets.Event.Eve
>
> nt (0x0042ea59) thread(2476)
You have used once the DMD 1.029/30, haven't you?
Have you recompiled the DD-dwt.lib after upgrading?
This error would match this problem.
|
Copyright © 1999-2021 by the D Language Foundation