* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
Mac OS X / Re: No 32-bit apps on macOS after Mojave
« Last post by MISV on Today at 01:48:31 pm »
Thank you - works for me as well now! Thank you so much - I can now finally start finding / reporting issues (already found one with TPageControl and menus but otherwise I can see Cocoa seems quite close)
2
Cocoa / Re: PageControls pages - some pages have content hidden?
« Last post by MISV on Today at 01:47:18 pm »
First way to reproduce:

If I set all tabs *TabVisible := False* in a tpagecontrol that will hide the content as well (even if PageControl.ActivePageIndex > -1)

I think I can create a test case for bug tracker. I will try make one that tracks TabIndex as well - maybe there is some logic there which hides content when tabs are set invisible.

...

(I do not believe above explains most of the cases I have with page content being hidden, but the above is at least one way to duplicate the issue - maybe that will help solve the issue more broadly)
3
General / Re: Please make your language more freedom
« Last post by RayoGlauco on Today at 01:23:14 pm »
When I was 20, many years ago, I liked the C style code because you can do many things with very few code. But now, I appreciate more readability, clarity and avoiding mistakes. I prefer a little more code if it's easier to maintain. That's why I like freepascal.  :)
4
General / Re: Please make your language more freedom
« Last post by giahung1997 on Today at 01:08:49 pm »
There's PascalABC.NET too. I liked it more from Object Free Pascal, not because it can use the full power of .NET but because I found their Pascal Dialect to be more modern and freedom than yours (just my own opinion).

(I still fail to see what "modern" has to do with imitating 1970s C syntax. The two years that Pascal is older than C can't matter that much?)

Because all other languages support this (declare variables everywhere in function body) nowaday. Only Borland C++ 5.5 has the same behavior when the C language not yet standardized, and this product is old (around 2000), that is what I mean when I said "outdated" and "modern"  :-*

@Thaddy: Thanks. FreePascal is really strict  :)
5
General / Re: DLL crash
« Last post by RayoGlauco on Today at 12:54:36 pm »
I think we need to see the code inside this dll function.
If it was my code, I would debug step by step until the error.

Edit: to debug a DLL, create a program that uses it, and set it in menu Run / Run parameters --> Local --> Host application (see image).
6
FPSpreadsheet / Re: user define function
« Last post by wp on Today at 12:50:18 pm »
At times, heaptrc shows there is unfreed memory block, but I am yet to find the way to reproduce this.
I fixed a memory leak related to the new handling of formulas.
7
For what it is worth - I have only seen this issue once sofar... so maybe just ignore this
8
Third party / Re: FPCUPdeluxe and arm/WinCE
« Last post by LacaK on Today at 11:56:15 am »
Strange think is, that when I build cross compiler arm/WinCE for FPC 3.0.2 + Lazarus 1.6.4 (which was official release) then I also get:

Warning: windres: preprocessing failed.
wincewsmenus.pp(1139,0) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.

When I am compiling simple project for WinCE. So probably there is still something wrong with building FPC + Lazarus environment.
9
General / Re: How reliable is HeapTrc?
« Last post by totya on Today at 11:52:37 am »
Hi there, how reliable is HeapTrc in detecting memory leaks?

Very useful as I see.
10
FPSpreadsheet / Re: user define function
« Last post by kjteng on Today at 11:40:59 am »
(0)
Quote
- Use the in-place editor of the grid to type an erroneous formula (e.g. '=A')
- Navigate to another cell by click, arrow keys, or complete editing by ENTER key --> the incorrect formula is detected, the parser's error message is displayed, and navigation is reverted, the grid is in the erroneous cell in edit mode again.

- I got the same result here


(1)
Quote
-  Use the in-place editor of the grid, type an erroneous formula
- Click into the TsCellEdit box. The error message appears, but the cell is erased - this is not good.

I got the same result here

Note that the cell is not erased but reverted to its original value. If the cell contains 123 before the errorneous formula is entered,  it will revert to 123 after the error message appears. i.e. the user will be editing the cell containing 123 now.  If the cell was empty, it would revert to empty cell (thus the formula appeared to be erased).

This above test result is consistent with the following cases:
(1a)
Goto cell A1, in tsEdit key in =aa then click into cell A1 in the grid. Click OK when error message appears. The cell will revert to the original value of A1. 

(1b)
Goto cell A1, in tsEdit key in =aa then click into cell C1 in the grid. Click OK when error message appears. The cell will revert to the original value of C1.
 
I think the above behaviour is acceptable.

(2)
Quote
- Use the TsCellEdit box to type an erroneous formula
- When the error message comes up, press ENTER to close it (don't click "OK") -> the box comes up again and again (However, if you click OK with the mouse, the message box does not appear again.

I got the same result here


(3)
Quote
- Use the TsCellEdit box to type an erroneous formula
- After typiing don't press ENTER, but click into the cell. The formula is erased. The error message box comes up. Press ENTER or click OK to close the error message. A selection rectangle appears in the grid which follows the mouse. You must click anywhere to return to normal operation.
Same result but see my comment in (1) above


(4) Goto cell A1, do steps in (0) above. When the erroneous cell is back to edit mode, change the formula to =B1
Now we can see the formula B1 in tsEdit whenever we are in cell A1, however cell A1 would not show any value even if B1 contains a valid number.

Same thing would happen if you key in erroneous formula in TsCellEdit then changed it to a valid formula.

(5) At times, heaptrc shows there is unfreed memory block, but I am yet to find the way to reproduce this.
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus