Questions tagged [lazarus]

Lazarus is an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

Lazarus is a an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

See http://lazarus.freepascal.org

1306 questions
-2
votes
1 answer

Delphi sorting with 2 while loops, need to get rid of a variable

Good morning, couldn't recover my old account so here's the new one. I'm following lessons for Lazarus/Delphi development and one assignement is about sorting an array of integers using 2 nested loops (no functions allowed). Here's my working…
RingK
  • 1
  • 1
-2
votes
1 answer

How to use arccos in Lazarus (pascal)

I have to write a program to find out the angles of a triangle. For some reason I always get the message 'INVALID OPERATION' which results in the program crashing. Can someone help me? function Winkela(a,b,c:real):float; var alpha:real; begin …
-2
votes
2 answers

Lazarus compiler stops everytime a procedure or a constructor of a class is called

I've created a "Border" class in delphi. When i call the constructor of the class "Create" the compiler stops and shows me the constructor with a green arrow. After this i can debug the program again and the compiler will go on. So my question here…
yungboi22
  • 35
  • 3
-2
votes
1 answer

SQLite3connection: near "(": Syntax error in Lazarus

I have a SQL deviation statement, but I found the error when running. I have researched many related topics to come up with solutions, but I have not yet solved it. SQLite3connection: near "(": Syntax error I hope to get help from…
-2
votes
1 answer

Hiding Taskbar Button works, but not when second form is shown

I managed to hide my winforms application taskbar button using ShowWindow(GetParent(Form1.Handle),SW_HIDE); This i call on timer 1 second after the form is created. The taskbar button remain hidden through out the application usage, but until I…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
-2
votes
3 answers

My program bounces back and forth between for and if, I have no idea why

I'm doing some homework and there's this problem where I have to make a program that tells me how many prime numbers there are between two numbers given by the user. For some reason, when I test the program with F8 I can see the program bounces back…
Ticko
  • 3
  • 3
-2
votes
1 answer

Program behaving differently in FPC and ObjFPC

Following is a program in lazarus to perform RC4 encryption and decryption when given a string. When the compiler directive {$mode fpc} is used and the string 123 is entered it crashes with External: SIGSEGV. However there is no crash when inputting…
HabibC
  • 19
  • 5
-2
votes
2 answers

Pascal recursive summation function school practice problem

This function is a school practice problem (it is running but does not work properly). My task is to call for a integer from the user. When the number arrives, my task is to write out (with a recursive algorithm) what is the sum of the number with…
Erik
  • 1
  • 2
-2
votes
2 answers

How do I run an external application with Free Pascal/Lazarus?

How do I run an external application with Free Pascal/Lazarus (using Windows)? I found the "official" reference page, with several implementations and examples. Although I'm sure it works for many people, I, with my current knowledge level, am some…
Albin
  • 1,000
  • 1
  • 11
  • 33
-2
votes
1 answer

Find & Extract hashtags in text

I'm looking for an easy/quick way to identify and extract hashtags from a string, and temporarily store them separately - e.g.: If I have the following string: 2017-08-31 This is a useless sentence being used as an example. #Example…
Marius
  • 13
  • 1
-2
votes
1 answer

Second unit does not find TImage

so I have some work to do using lazarus and one of my procedures is written in a second unit but also used in the first. The problem is, I want to give the procedure a TImage from the Form connected to unit 1, but unit 2 can't find an identifier…
-2
votes
1 answer

Lazarus function to find 8 digit numbers in a string

I have e-mail subject lines and I want to find ticket references in them it could be the TT ref is like 12345678. One subject line (string) can have multiple 8 digit numbers! I have been using the below code but it is merely stripping out the first…
modzsi
  • 185
  • 2
  • 12
-2
votes
1 answer

server linux - Unable to initialize OpenSSL library

I have a problem with running my application on vps server. I have there Ubuntu. On my personal computer I install ubuntu too. On my computer my application runs and work but on server I got this: An unhandled exception occurred at $080C9936…
Mlody87
  • 425
  • 1
  • 7
  • 19
-2
votes
1 answer

lazarus/pascal write filename with current date

i need to write a file with the filename containing the current date.. everything works besides the date, it gives a class exception 'run error(3)' (the importo.text is the text of a TEdit.. but i guess it's irrelevant) uses Classes, SysUtils,…
user5208539
-2
votes
1 answer

Exception class 'External: SIGSEGV '

I am making simple encrypt/decrypt program in Lazarus with 2 buttons, one for encrypt and one for decrypt. I also have two memo boxes (or just two memos ). I tested my algorithm and it works but when i tried implementing it in user friendly app i…
user6948476