Re: [GD-DEVEL] Problems using the .dll

[email protected] (Pierre)
Newsgroups php.gd.devel
Message-ID <[email protected]>
On 4/17/07, Pierre <[email protected]> wrote:
> Hi Nuno,
>
> On 4/17/07, Nuno Centeio <[email protected]> wrote:
> > Hi!
> >
> > I'm new to GD and I want to test it.
> >
> > I've downloaded gd-2.0.34-win32.zip so that I can use it on my project.
> > I've created a new project on Visual Studio 2005.
> >
> > Add the gd include/ directory to my project and also the lib/ directory.
> >
> > It all compiles and links fine.
> >
> >
> > When I'm running the application I get the error:
> >
> > (...)
> > 'Teste2.exe': Loaded 'E:\MyProjects\Teste2\debug\bgd.dll', Binary was
> > not built with debug information.
> > (...)
> > First-chance exception at 0x7c918fea in Teste2.exe: 0xC0000005: Access
> > violation writing location 0x00000010.
> > Unhandled exception at 0x7c918fea in Teste2.exe: 0xC0000005: Access
> > violation writing location 0x00000010.
> >
> >
> > This exception happens somewhere in this line:
> >   gdImagePng(im, pngout);
>
> Do you use VC6 or a later version? These binaries are built using VC6,
> it may cause troubles if they are used with a different runtime
> (msvcrt).

I misread your first paragraph. It is the cause of this problem.
Building gd yourself should solve this problem.

--Pierre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.