digitalmars.D.dwt - latest dwt samples with dmd snapshot 0.6.2: link errors
- Digited <digited yandex.ru> Jul 13 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 13 2008
- Digited <digited yandex.ru> Jul 13 2008
- Digited <digited yandex.ru> Jul 13 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 13 2008
- Digited <digited yandex.ru> Jul 13 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 13 2008
- "Chris R. Miller" <lordSaurontheGreat gmail.com> Jul 15 2008
- Digited <digited yandex.ru> Jul 15 2008
- Digited <digited yandex.ru> Jul 15 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 15 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 15 2008
- Frank Benoit <keinfarbton googlemail.com> Jul 15 2008
- yidabu <yidabu.spam gmail.com> Jul 15 2008
- "Chris R. Miller" <lordSaurontheGreat gmail.com> Jul 15 2008
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?
Jul 13 2008
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.
Jul 13 2008
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.
Jul 13 2008
I get "Object.Exception: access violation" at launch of text editor sample, custom control sample and while pressing any boxes/checkers in control sample...
Jul 13 2008
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
Jul 13 2008
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.
Jul 13 2008
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.
Jul 13 2008
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Digited wrote:Frank Benoit =D0=BF=D0=B8=D1=88=D0=B5=D1=82:Digited schrieb:I get "Object.Exception: access violation" at launch of text editor=20 sample, custom control sample and while pressing any boxes/checkers=20 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=20 successfully.
That snapshot uses DMD 1.030, since 1.031 was not stable and had several = bugs. Did you upgrade the snapshot to a newer compiler?I also have a problem that dsss build "fall asleep" during build=20 process, every time at different sample. Maybe it's Vista's DEP, I'll=20 check it now.
Happens to me too. I just kill it and try again, then it works. I=20 haven't found the root cause, so I haven't tried reporting the bug.
Jul 15 2008
Chris R. Miller пишет:Digited wrote: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.
That snapshot uses DMD 1.030, since 1.031 was not stable and had several bugs. Did you upgrade the snapshot to a newer compiler?
Hmmm... No. Just pure 0.6.2
Jul 15 2008
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)
Jul 15 2008
Digited schrieb:using ddbg for text editor sample: ... Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at dwt.custom.Styled Text.StyledText.installListeners.__anonclass68.handleEvent.d t.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.
Jul 15 2008
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.d t.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.
Jul 15 2008
yidabu schrieb:I recommend to use DMD 1.031. (I encounter anonclass problem with dmd 1.028)
Yes, the problem in 29/30 where cause by trying to fix a reported problem. DMD 1.031 is better, but still there are problems with anon classes. But i lack a simple testcase to report.
Jul 15 2008
On Tue, 15 Jul 2008 13:54:03 +0500 Digited <digited yandex.ru> wrote: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)
I recommend to use DMD 1.031. (I encounter anonclass problem with dmd 1.028) -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D ÓïÑÔ-ÖÐÎÄ(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Jul 15 2008
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Digited wrote: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 _GetSystemDefaultUILangua=
=20 What to do?
Chances are that it's linking against a duplicate library from DMC,=20 which is older than the library that DWT needs to link against. Take=20 the contents from dwt\lib from the DWT trunk directory from Hg and=20 overwrite everything in DMC's lib\ directory. It's a quick and dirty=20 fix, but it works. I see you found a work around by passing the libdir to DSSS directly. I = suppose that works too, though I get a little antsy when different=20 library sets are fighting for control of the linker.
Jul 15 2008









Digited <digited yandex.ru> 