Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-02

Loading OpenGL error

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aradeonas

Hi,

I have a new Laptop and with new Windows 10 and tried my old working demos and I tried it with Last Lazarus Trunk 1.7 and FPC 3.1.1?and just tried to run it and its happen :

A dynamic link library (DLL) initialization routine failed

It is because OpenGL loading error and I dont have clue how to solve it. I already update all drivers and windows but nothing. Any one know how can I solve this or faced it before?

And I tried it with Lazarus 1 and FPC 2.6.2 and it works good and it seems OpenGL units changed but I dont know what changes break it.

Regards, Ara

http://www.fastmail.com - mmm... Fastmail... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160210/7f213c03/attachment.html>

Reply by email

Aradeonas
to Aradeonas

I done two more tests: Get Lazarus 1.6 RC2 and still have problem. Copy and recompile OpenGL package from 1.0 to 1.7 and still have problem.

So it seems problem is not because of?OpenGL package.

Any idea?

Regards, Ara

http://www.fastmail.com - Access your email from home and the web -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160210/a3ff25d2/attachment.html>

Reply by email

Michalis Kamburelis
to Aradeonas: I have a new Laptop and with new Windows 10 and tried my old working demos and I tried it…
Aradeonas wrote 15 lines
Hi, I have a new Laptop and with new Windows 10 and tried my old working demos and I tried it with Last Lazarus Trunk 1.7 and FPC 3.1.1 and just tried to run it and its happen : A dynamic link library (DLL) initialization routine failed It is because OpenGL loading error and I dont have clue how to solve it. I already update all drivers and windows but nothing. Any one know how can I solve this or faced it before? And I tried it with Lazarus 1 and FPC 2.6.2 and it works good and it seems OpenGL units changed but I dont know what changes break it.

Are you sure it's in the OpenGL units initialization?

Can you test the Lazarus examples/openglcontrol/ demo, and see does it crash too?

Base FPC units are part of FPC (trunk/packages/opengl/src/), they are outside the Lazarus "OpenGL component" package. In Castle Game Engine we're using FPC OpenGL units on many platforms, including Windows 10, and we often test with latest FPC from trunk. And everything seems to work cool. Also, the FPC OpenGL units did not have any "critical" change since a long time, so I doubt something broke there.

And since you already tested that reverting old Lazarus version doesn't help, it does indicate the problem is somewhere else...

Regards,
Michalis

Reply by email

Aradeonas
to Michalis Kamburelis
Are you sure it's in the OpenGL units initialization?

Yes.

Can you test the Lazarus examples/openglcontrol/ demo, and see does it

crash too? Yes.

we're using FPC OpenGL units on many platforms, including Windows 10,

and we often test with latest FPC from trunk. And everything seems to work cool. And me too but in this Laptop its different and only with FPC 3 and above.

FPC OpenGL units did not have any "critical" change

since a long time, so I doubt something broke there. But something break it for some computers.

And since you already tested that reverting old Lazarus version doesn't

help, it does indicate the problem is somewhere else...

Old FPC (2.6.4) with Lazarus 1 works OK.

I tried to replace old Lazarus and FPC OpenGl components with new one and clean and recompile but problem is still there.

Can any one help me to debug this?

Regards, Ara

http://www.fastmail.com - The professional email service -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160211/f6fa8e2d/attachment.html>

Reply by email

Aradeonas
to Aradeonas
I tried to replace old Lazarus and FPC OpenGl components with new one and clean and recompile but problem is still there.

It seemed taht it not used new FPC OpenGL package units because they are precompiled so I tried and delete compiled opengl units from units folder but not Lazarus says it cant find gl unit but gl.pp exists but not compiled and I tried to recompile Lazarus or cleanup but it wont compile FPC files.

What should I do?

Regards, Ara

http://www.fastmail.com - IMAP accessible web-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160211/efad4d90/attachment.html>

Reply by email

Aradeonas
to Aradeonas

I reinstall everything and tried a new test :
1. add lazopenglcontext
2. add?OpenGLContext unit
3. type O:=TOpenGLControl.Create(self);
4. run and no problem.
5. type??o.Parent:=self;
6. run and that error again.

Regards, Ara

http://www.fastmail.com - Accessible with your email software or over the web -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160212/4f3339f4/attachment.html>

Reply by email