* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
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.
2
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.
3
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.
4
General / Re: DLL crash
« Last post by cappe on Today at 11:06:58 am »
Based on the few DLL functions that I have written in my life, your function's header would have looked like this:

Code: Pascal  [Select]
  1. type
  2.   PcsRec = ^csRec;
  3.  
  4. function GetA (S1: PChar; v1: PChar; A: integer; info: PcsRec): integer; stdcall;

Where an integer=0 is False and an integer<>0 is true.

And the call would be:

Code: Pascal  [Select]
  1. GetA(PChar('pale33'), PChar('0000'), 1, @info);

But I'm not an expert at all.

same problem as with the first solution
5
General / WinCE target broken?
« Last post by LacaK on Today at 10:59:17 am »
Hi,
I would like to put into attention that WinCE target is broken. There are bug reports like:
https://bugs.freepascal.org/view.php?id=32366
https://bugs.freepascal.org/view.php?id=33571
(about 1.8 version)

Also combinations:
FPC 3.0.4 + Lazarus 1.6.4 and FPC 3.0.4 + Lazarus 1.9 (trunk) does not works for me as far as I am not able to compile any project. See: http://forum.lazarus.freepascal.org/index.php/topic,41615.msg289194.html#msg289194

IMO it is serious problem. It seems, that up to Lazarus 1.6.4 it worked, so something happens after that.
Can somebody look at it please or at least increase severity on mentioned bug reports ?
6
Third party / Re: FPCUPdeluxe and arm/WinCE
« Last post by LacaK on Today at 10:45:28 am »
Thank you very much. Now FPCUPdeluxe completes without errors but later when I am doing to compile "one-form" project I get:

  • FPC 3.0.4 + Lazarus 1.6.4: wincewsmenus.pp(1139,0) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
  • FPC 3.0.4 + Lazarus 1.9 (trunk): wincewsimglist.pp(94,17) Error: Identifier not found "TWinCEWSCustomImageList"

So I am not able to use WinCE at all. Also current stable version is broken: http://forum.lazarus.freepascal.org/index.php/topic,41604.0.html
7
General / Re: Error: Duplicate identifier "Forms"
« Last post by RayoGlauco on Today at 10:36:49 am »
Hi, LinNan,

There is a unit called forms. Probably you cannot declare a variable with the same name.
8
Third party / Re: Online Package Manager
« Last post by wp on Today at 10:15:18 am »
@wp
I'm on hollidays for a few weeks with a small break on Saturday, I will try to add it then. Sorry for the inconvenience.
No problem. Have nice holidays!
9
General / Error: Duplicate identifier "Forms"
« Last post by LinNan2002 on Today at 10:04:09 am »
"var
  FormS: TFormS; "

"units.pas(24,3) Error: Duplicate identifier "Forms""  What's Wrong With That?
10
Android / LAMW: Suggestion jTCPSocketClient.java add TimeOut
« Last post by tr3e on Today at 10:04:03 am »
This is the code that I use for when there are connection failures it does not lengthen too much. I usually use timeout = 300ms

Code: Pascal  [Select]
  1. private Socket mSocket;
  2.  
  3. public void Connect(String _serverIP, int _serverPort, int _timeOut) {
  4.  
  5.           SERVER_IP   = _serverIP;         //IP address
  6.           SERVER_PORT = _serverPort;       //port number;
  7.           Boolean connected = false;
  8.  
  9.           if (mSocket != null) {
  10.                   try {
  11.                                 mSocket.close();
  12.                                 mSocket = null;
  13.                           } catch (IOException e) {
  14.                                 // TODO Auto-generated catch block
  15.                                 e.printStackTrace();
  16.                           }
  17.           }
  18.  
  19.           try {
  20.                    mSocket = new Socket();
  21.                    mSocket.connect( new InetSocketAddress(SERVER_IP, SERVER_PORT), _timeOut);
  22.                    connected = true;
  23.                   } catch (IOException e) {
  24.                           // TODO Auto-generated catch block
  25.                       e.printStackTrace();
  26.                   }
  27.  
  28.           if( connected ){
  29.            new TCPSocketClientTask().execute();
  30.            controls.pOnTCPSocketClientConnected(pascalObj);
  31.           }
  32.       }
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