harmonia & build

Andrew Fedoniouk news at terrainformatica.com
Sun Mar 12 00:49:22 PST 2006


"Hasan Aljudy" <hasan.aljudy at gmail.com> wrote in message 
news:dv0luu$2to5$1 at digitaldaemon.com...
> Hasan Aljudy wrote:
>> I noticed a comment in the make file ..
>> #native\win32.d - do not compile it as it is just a 'header'
>>
>> so I looked in the build documentation, and found that inserting
>> version(build) { pragma(nolink); }
>> will tell build to not link this file, so I added it to
>> harmonia/native/win32.d
>>
>> and it compiled fine .. BUT
>> When I run it, I get an "access voilation" messege and then the program 
>> exits.
>>
>
> When I turn on the -debug switch, the messege becomes:
>
> >ERROR: Access Voilation
> >while processing win message #0x0
>
> Here's the stack frame from windbg
>
> 00 
> image00400000!D8harmonia2ui6window6Window10childStyleFE8harmonia2ui11definitions11ControlTypeZC8harmonia6themes5theme5Style+0x17 
> [C:\dmd\src\other\harmonia\ui\window.d @ 303]

It is here:
  return Theme.defaultTheme.themeStyle(id);

Seems like module harmonia.themes.pathfinder;
was not included by build.exe.

It has:
static this()
  {
    // install this as a default theme
    defaultTheme = new PathfinderTheme();
  }

module harmonia.themes.pathfinder; is theme implementation
and has no direct external references.

You need to tell to build.exe somehow that it must include it.




> 01 
> image00400000!D8harmonia2ui6widget6Widget5styleFZC8harmonia6themes5theme5Style+0x3f 
> [C:\dmd\src\other\harmonia\ui\widget.d @ 187]
> 02 
> image00400000!D8harmonia2ui7widgets97__T10ScrollableTC8harmonia4html4view46__T10HtmlPanelTTC8harmonia2ui7widgets7WidgetsZ10HtmlPanelTZ10Scrollable11clientPlaceFZS8harmonia2gx8geometry4rect+0x48 
> [C:\dmd\src\other\harmonia\html\view.d @ 385]
> 03 
> image00400000!D8harmonia4html4view46__T10HtmlPanelTTC8harmonia2ui7widgets7WidgetsZ10HtmlPanelT4htmlFAaAuZb+0x8f 
> [C:\dmd\src\other\harmonia\html\view.d @ 143]
> 04 
> image00400000!D7samples7testbed7MyFrame5_ctorFZC7samples7testbed7MyFrame+0x91 
> [browser.d @ 48]
> 05 image00400000!D7samples7testbed11_staticCtorFZv14__funcliteral1FZv+0x20 
> [browser.d @ 33]
> 06 
> image00400000!D8harmonia2ui6native16win32application17NativeApplication10initializeFAuZv+0x80 
> [C:\dmd\src\other\harmonia\ui\native\win32application.d @ 100]
> 07 image00400000!WinMain+0xb7 
> [C:\dmd\src\other\harmonia\ui\native\win32application.d @ 496]
> 08 image00400000!WinMainCRTStartup+0xaa
> WARNING: Stack unwind information not available. Following frames may be 
> wrong.
> 09 kernel32!RegisterWaitForInputIdle+0x49 





More information about the Digitalmars-d-dwt mailing list