Recent

Author Topic: After upgrade to Laz 2.2.2. from 2.2.0, project can't run  (Read 829 times)

Gald

  • Full Member
  • ***
  • Posts: 105
After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« on: May 24, 2022, 04:56:07 pm »
I've done nothing, just upgraded the Lazarus and tried to compile any project.

I'm getting this message on debugging:

Execution stopped with -code -1173741515 ($C0000135)

What i have to do?
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

wp

  • Hero Member
  • *****
  • Posts: 9923
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #1 on: May 24, 2022, 05:46:33 pm »
Did you try a "Clean up and build" (in the "Run" menu)?

Thaddy

  • Hero Member
  • *****
  • Posts: 11774
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #2 on: May 24, 2022, 07:44:45 pm »
The error is a Microsoft provided error message which basically says it is unable to load a - Windows - component.
Has nothing to do with Lazarus, but with your Windows configuration, amongst other things, possibly the path.

If it is the path, Lazarus should have left that alone during install and it does not even use it. I can't check that, because I almost never have problems upgrading.
« Last Edit: May 24, 2022, 07:49:01 pm by Thaddy »
Black themes should be banned.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 8102
  • Debugger - SynEdit - and more
    • wiki
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #3 on: May 24, 2022, 08:09:36 pm »
Apparently Windows? Which version of Windows? 64 or 32 bit?

Any packages installed in Lazarus?

Any packages that need dll?

Quote
Execution stopped with -code -1173741515 ($C0000135)
This is in the "messages window" ? That is, the compilation is aborted?
If you check the project folder there is no exe file generated (check the timestamp, in case your old exe is still there)?

Or this is when your app starts to run?

Thaddy

  • Hero Member
  • *****
  • Posts: 11774
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #4 on: May 24, 2022, 09:45:15 pm »
Google on C0000135 or 0xC0000135 for more information. There are many results. I relied on msdn.
I only checked win64. IMHO there is no point in checking for win32 since it is phased out from mainstream windows (like win95) and has already a 10 years+ grace period. Which is about to expire... >:D after win11 which is already 32 bit unfriendly.

Oh well, FPC supports more legacy platforms, let's add one.... O:-)

Can those 32bit Windows adepts finally keep their mouth shut?
https://www.youtube.com/watch?v=vZw35VUBdzo

Get the point?
« Last Edit: May 24, 2022, 10:00:52 pm by Thaddy »
Black themes should be banned.

440bx

  • Hero Member
  • *****
  • Posts: 2935
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #5 on: May 24, 2022, 11:07:00 pm »
Get the point?
Anyone who can read got the point: you're in a bad mood... a 64bit bad mood...  congratulations on your upgrade from 32bit.

@OP

That message indicates a missing dll, did the message include the dll name ?... that information would be useful.

FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

Gald

  • Full Member
  • ***
  • Posts: 105
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #6 on: May 25, 2022, 01:34:55 am »
Now you guys talking, I just remembered that these days I set to off of some Windows components.
I have no idea why QT5 needs something like that to run, while native Lazarus remains OK.

As far as I remember, I had deactivated the following:

  • MS Print in PDF
    XPS Writer
    Media Resource (Win Media Player)
    Internet Client Print

I did it because I was having some lag on System, and it does fix the problem.

Unfortunately, I've tried to activate it again with no results.

Nothing in this list looks like something QT needs to run.
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

Gald

  • Full Member
  • ***
  • Posts: 105
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #7 on: May 25, 2022, 02:00:34 am »
Just realized that another projects ask for Qt5Pas1.dll.

I found one in C:\WindowsSysWOW64 and another on Git.

I tried both in the application folder with both projects and now the error message has changed:

Execution Stopped with exit-code -107371701 ($C000007B).
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

440bx

  • Hero Member
  • *****
  • Posts: 2935
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #8 on: May 25, 2022, 03:00:54 am »
Execution Stopped with exit-code -107371701 ($C000007B).
That means the system considered the dll "bad".  Most commonly a dll is considered "bad" when it doesn't match the bitness of the program that causes it to load, e.g, a 32bit program attempting to load a 64bit dll or viceversa.

It seems you could benefit from a tool that lists all the values of NTSTATUS (which is what that number you got is) and what they mean, you can find one at https://forum.lazarus.freepascal.org/index.php/topic,46911.msg335125.html#msg335125

along with a tool that lists all the Win32 LastError (from GetLastError) and their textual meaning.

To determine the bitness of the dll and the program, there are a number of tools that will do that for you, among them Dumpbin, PeView, CFF explorer (one of my favorites) and PeBytesF (my personal PE viewer which is available here in the forums as a download) and quite a few others that Google will serve on a silver platter to you.

HTH.
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

Gald

  • Full Member
  • ***
  • Posts: 105
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #9 on: May 25, 2022, 04:23:33 am »
I saw this on the wiki:

Quote
Windows
There is a Q5Pas1.dll binary available.

x86: https://gitlab.com/freepascal.org/lazarus/binaries/-/raw/main/i386-win32/qt5/Qt5Pas1.dll?inline=false
no 64-bit version yet.

So the problem seems to be that I'm using Lazarus 64 bit.
Gonna install 32x now.

Thank you all!  :D
Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64/Manjaro KDE 21
AMD Ryzen 3 1300X Quad-Core Processor 3.50 GHz / 8,00 GB RAM / GTX 1500 TI / 2TB M.2 NVMe

Thaddy

  • Hero Member
  • *****
  • Posts: 11774
Re: After upgrade to Laz 2.2.2. from 2.2.0, project can't run
« Reply #10 on: May 25, 2022, 10:47:02 am »
Anyone who can read got the point: you're in a bad mood... a 64bit bad mood...  congratulations on your upgrade from 32bit.
[/quote]
Not a bad mooed, but I suddenly changed to sarcastic mood.

I suspect that OP's issue boils down to inactivated printer drivers, but it can be something else. Lazarus needs the printer drivers.
The correct ones, for 64 bit.
« Last Edit: May 25, 2022, 10:50:08 am by Thaddy »
Black themes should be banned.

 

TinyPortal © 2005-2018