Recent

Author Topic: App freeze on Win10 - Win7 ok  (Read 4214 times)

griebold

  • Newbie
  • Posts: 3
App freeze on Win10 - Win7 ok
« on: August 31, 2017, 12:58:33 am »
My App freeze in time of inactivity and throw irregular memory errors on Win10 Clients. Everything works well on Win7.

My application is a Client-Server programm  64bit which is installed on a Windows Server 2012. Two Clients are Win10 Clients, the rest are Win7 Clients. For one of the Win10 client only freezes happens on the other Win10 client freezes and memory errors occur.

A different customer told me the same on a standalone Win10 System. The app is a 32bit app. Only freezes happened. On two other Win10 standalone clients everything works (i hope).

I have no idea how to analyze and fix the problem. I do a lot of testing, the admin checked the PCs, Netzwork etc. but from point of hardware everything seems to be o.k.

Both Apps are developed and compiled with Lazarus 1.6.4 on a Win10 64bit VM and PC. External Libs are IBX for Lazarus (MWA) and Fortes Report. Database is a Firebird DB 2.5.7.

Perhaps you have an idea.

Best regards from Germany
Gernot
« Last Edit: August 31, 2017, 01:10:24 am by griebold »

RAW

  • Hero Member
  • *****
  • Posts: 871
Re: App freeze on Win10 - Win7 ok
« Reply #1 on: August 31, 2017, 02:09:29 am »
Create your own Exception-Handling or Log-file... the first thing I would do, I think it's in general a good idea to do that if the program is bigger than 2000 lines... It's nice to know what procedure or function causes the problem...  :)

I guess there are ready to use libraries out there for such tasks, but I don't know if there's something for free...

Thaddy

  • Hero Member
  • *****
  • Posts: 18953
  • Glad to be alive.
Re: App freeze on Win10 - Win7 ok
« Reply #2 on: August 31, 2017, 09:23:57 am »
Is any of your clients or servers writing to:
c:\    (I mean root of c:\ not subdirs)

Windows 10 does not allow that for the current user. Windows 7 does allow that.

Are you eating exceptions? try....except //nothing here.. end;
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

ttomas

  • Sr. Member
  • ****
  • Posts: 250
Re: App freeze on Win10 - Win7 ok
« Reply #3 on: August 31, 2017, 03:46:40 pm »
Do you use Firebird Events in App?
Old Delphi IBX Events component is buggy TThread based

Thaddy

  • Hero Member
  • *****
  • Posts: 18953
  • Glad to be alive.
Re: App freeze on Win10 - Win7 ok
« Reply #4 on: August 31, 2017, 04:39:06 pm »
Do you use Firebird Events in App?
Old Delphi IBX Events component is buggy TThread based
Explain, plz?
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

griebold

  • Newbie
  • Posts: 3
[Solved] App freeze on Win10 - Win7 ok
« Reply #5 on: September 01, 2017, 07:39:07 am »
After a lot of examination the problem is another program written in Java toghether with an antivirus programm. Something happenes in the main memory because when my App died you get only the default windows error report, no exception from Fpc or Lazarus.

I know now the source of the problem and will try to fix the problem with the admin.

Thank you all for helping me to solve the problem.

Best regards
Gernot from Germany

ttomas

  • Sr. Member
  • ****
  • Posts: 250
Re: App freeze on Win10 - Win7 ok
« Reply #6 on: September 01, 2017, 09:15:11 am »
Do you use Firebird Events in App?
Old Delphi IBX Events component is buggy TThread based
Explain, plz?
You don't answer my question  >:(
Do you use Firebird Events in App?
If Yes then
10 years ago i have problem with IBEvent (IBX) component in Delphi, events are triggered in different thread (not main thread) and any VCL manipulation is not safe. VCL and LCL is not thread safe and anything can happen.
I don't know IBX for Lazarus (MWA) implementation, just a hint to check.

griebold

  • Newbie
  • Posts: 3
Re: App freeze on Win10 - Win7 ok
« Reply #7 on: September 02, 2017, 01:07:06 am »
To answer your question: No, i don't use firebird events. I don't need them in my applications.
Thank you for your hint with the events.

Best regards
Gernot

 

TinyPortal © 2005-2018