May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alexandr Druzhinin | On Saturday, 18 May 2013 at 08:46:40 UTC, Alexandr Druzhinin wrote:
> Your compiler is installed incorrectly and can not find phobos of appropriate version. Check it once again. In your case this error should appear with any other example. Check it too, if you want.
Okay, I've re-installed DMD, rebuilt GtkD, and installed GtkD. Now a Win32 app compiles but I get a sequence of error boxes that pop up before the program gets to main():
Unhandled exception at 0x75e3c41f in WindowsApp2.exe 0xE440001: 0xe0440001
(I hit continue)
Unhandled exception at 0x75e3c41f in WindowsApp2.exe: 0xE0440001: 0xe0440001.
(I hit continue)
Title: Entry Point Not Found
The procedure entry point deflateSetHeader could not be located in the dynamic link library zlib1.dll.
(I hit OK)
Unhandled exception at 0x75e3c41f in WindowsApp2.exe: 0xE0440001: 0xe0440001.
(I hit continue)
Title: Entry Point Not Found
The procedure entry point deflateSetHeader could not be located in the dynamic link library zlib1.dll.
(I hit OK)
Unhandled exception at 0x75e3c41f in WindowsApp2.exe: 0xE0440001: 0xe0440001.
(I hit continue)
Then main() is entered.
|
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | Then upon continuing I get an infinitely repeating Unhandled exception at 0x00000000 in WindowsApp2.exe: 0xC0000005: Access violation reading location 0x00000000. message box popping up. |
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | 18.05.2013 16:17, Enjoys Math пишет:
> Then upon continuing I get an infinitely repeating
>
> Unhandled exception at 0x00000000 in WindowsApp2.exe: 0xC0000005:
> Access violation reading location 0x00000000.
>
> message box popping up.
Did you check that path to Gtk runtime binaries is the first? I guess there is some other application in your path variable that is using different zlib1.dll and when you run your app it load incorrect version that results in what you get. Check you path once again.
|
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | On 05/18/2013 08:57 AM, Enjoys Math wrote: > On Saturday, 18 May 2013 at 05:26:45 UTC, Alexandr Druzhinin wrote: >> 18.05.2013 9:52, Enjoys Math пишет: >>> I'm on Windows 7 64-bit and using DMD2, compiling a regular 32-bit >>> windows app using Visual D "New Project > Windows App" and replacing >>> winmain.d with the code below: >>> >> > ... >>> >>> I'm using GtkD-2.2.0 from here: >>> https://code.google.com/p/gtkd-packages/downloads/list >>> >>> and also the 32-bit runtime from there. >>> >>> The output when I click "Start Debugging" in Visual D is to display a >>> stdout window with some text (that I can't read since it's too fast. >>> I've tried setting breakpoints to no avail), no window is ever >>> displayed. Then in Visual D the output log shows: >>> >>> <code> >>> First-chance exception at 0x76c6c41f in WindowsApp1.exe: 0xE0440001: >>> 0xe0440001. >>> The program '[3848] WindowsApp1.exe: Native' has exited with code 1 >>> (0x1). >>> </code> >>> >>> Thank you for any suggestions. >> Works fine on my box. You have problem with gtk installation. But I >> can't specify what's the reason - I downloaded previous binaries. Also >> I recommend you to experiment with paths - check it out. > > I installed 2.24 from here: > https://code.google.com/p/gtkd-packages/downloads/list > > And the windows 7 path is set correctly to the Gtk-Runtime\bin folder. > > But the same problem persists. GtkD 2.x wraps Gtk+ 3.x so you will need the 3.8 runtime from: https://code.google.com/p/gtkd-packages/downloads/list I will check out why it doesn't print the error message about not being able to find the Gtk3 dll. -- Mike Wey |
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | On Saturday, 18 May 2013 at 10:47:13 UTC, Mike Wey wrote:
> GtkD 2.x wraps Gtk+ 3.x so you will need the 3.8 runtime from: https://code.google.com/p/gtkd-packages/downloads/list
>
> I will check out why it doesn't print the error message about not being able to find the Gtk3 dll.
I get the same errors except for the zlib ones when all Gtk-runtimes are uninstalled, so it seems like you're right that the runtime is not being found.
Okay, I've installed that 3.8 runtime, set both the user and system path vars at the beginnings and ends to have the runtime/bin dir.
Restarted Vis D. Still have unhandled exceptions at run time.
|
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | Should I try removing everything gtk-using and related from my system? |
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | On Saturday, 18 May 2013 at 18:54:50 UTC, Enjoys Math wrote:
> On Saturday, 18 May 2013 at 10:47:13 UTC, Mike Wey wrote:
>> GtkD 2.x wraps Gtk+ 3.x so you will need the 3.8 runtime from: https://code.google.com/p/gtkd-packages/downloads/list
>>
>> I will check out why it doesn't print the error message about not being able to find the Gtk3 dll.
>
> I get the same errors except for the zlib ones when all Gtk-runtimes are uninstalled, so it seems like you're right that the runtime is not being found.
>
> Okay, I've installed that 3.8 runtime, set both the user and system path vars at the beginnings and ends to have the runtime/bin dir.
>
> Restarted Vis D. Still have unhandled exceptions at run time.
Try putting the path to the Gtk3 runtime at the start of the path, and then restart the machine and try again.
--
Mike Wey
|
May 18, 2013 Re: GtkD HelloWorld app crashes with exception | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Wey | On Saturday, 18 May 2013 at 20:45:41 UTC, Mike Wey wrote:
> Try putting the path to the Gtk3 runtime at the start of the path, and then restart the machine and try again.
>
> --
> Mike Wey
Okay, works now!
The last problem I had was with the path. Solution: place your runtime/bin dir (e.g. C:\Program Files (x86)\Gtk-Runtime\bin) at the beginning of the *System* path and not the *User* path variable.
Thanks all for the help, yo.
|
Copyright © 1999-2021 by the D Language Foundation