Sounds like a good description of my dayly job :-) Met vriendelijke groet,
Pieter Valentijn Delphidreams http://www.delphidreams.nl <http://www.delphidreams.nl/> -----Oorspronkelijk bericht----- Van: Alex Smirnov [mailto:[EMAIL PROTECTED] Verzonden: woensdag 11 april 2007 20:47 Aan: [EMAIL PROTECTED] Onderwerp: Re: [lazarus] Ring-Watch crashes on GTK2 and works on GTK Felipe Monteiro de Carvalho пишет: I have no idea what is wrong, but I advice you to find yourself what is wrong with the component and later send us a fixed version =) Gtk is quite hard to work with, so don´t dispair if it seams impossible to make things work at first. Just debug the problem, raise hipotesis about what could be wrong and test them until you find the problem. Check if all parameters are correct, check all the values that go to the function, etc... Just debug until you find out what is wrong. Hello, Felipe! So the problem is solved. I had fixed two files - intfbaselcl.inc and graphmath.pp. Now Ring-Chart is working both in GTK and in GTK2. New files with fixes applied are in .ZIP file that is added to the letter. The main problem was in intfbaselcl.inc. In graphmath.pp I had rewrote PolyBezierArcPoints function - I think it is a good solution - it seems that it is faster and more logical in code. Several checks were removed and some important added. Also, I think it is a good idea to check all graphmath.pp - to move some widely used constants to the top of the file and to cleanup some code. It seems that there may be some "double checking" inside of it (as it was in BezierArcPoints function). Should I do this work? Best regards, Alexey.
