Recent

Author Topic: Segfault at the very end of the program  (Read 30772 times)

TCH

  • Full Member
  • ***
  • Posts: 200
Re: Segfault at the very end of the program
« Reply #90 on: January 17, 2018, 10:17:45 pm »
That wasn't obvious from your previous code. Since you don't show more code we have to create hypothesis.
That's okay, but it seemed to me, that you two have made an assumption rather than a hypothesis...
1. If you remove all threads the error is still there
Yes, that's true.
2. The error is gone if you remove line infoimg[Self.CEI].Picture.Graphic := Png, which is an array of TImages?
Well, not PNG, but JPEG, but yes.

balazsszekely

  • Guest
Re: Segfault at the very end of the program
« Reply #91 on: January 17, 2018, 10:22:40 pm »
Quote
Well, not PNG, but JPEG, but yes.
Replace the array of TImage with array of TJPG, and draw the JPG to canvas. Use the OnPaint event. Initially just remove the TImage and see if the error is gone.

TCH

  • Full Member
  • ***
  • Posts: 200
Re: Segfault at the very end of the program
« Reply #92 on: January 17, 2018, 10:40:48 pm »
I cannot. TJPEGImage misses properties i need, like Visible or coordinates.

balazsszekely

  • Guest
Re: Segfault at the very end of the program
« Reply #93 on: January 17, 2018, 10:51:34 pm »
@TCH
Visible = draw the JPEG
Invisible = do not draw the JPEG
I'm not sure what are you trying to achieve with the coordinates and I'm too tired to guess.
Put yourself in our shoes for a moment. What would you suggest?
With the hope that you will solve the problem, I'm gonna leave this thread once more. Good luck with your project.

TCH

  • Full Member
  • ***
  • Posts: 200
Re: Segfault at the very end of the program
« Reply #94 on: January 17, 2018, 11:00:14 pm »
Draw directly to the TForm canvas? I cannot do that, i use the TImages' events.

You did not have to guess anything, since i gave a weblink to the binary in one of previous pages, if you start it, then you will see it immediately (after loaded a page), that what i use the TImages for. (But here it is again: http://oscomp.hu/depot/ytfe.dbg)

Thanks, i'll stick to the rewriting...
« Last Edit: January 17, 2018, 11:03:43 pm by TCH »

 

TinyPortal © 2005-2018