Re: [Lazarus] Lazarus - Disk Full error
On Thu, 18 Jun 2015 11:05:34 +0100 Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: [...] Why would Lazarus report such an issue? And where does it do such a disk check? Normally IDE error messages contain more than just E.Message. Maybe this is from an unhandled exception. Can you reproduce it an create a stack trace? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus - Disk Full error
Il 18/06/2015 12:45, Graeme Geldenhuys ha scritto: On 2015-06-18 11:35, zeljko wrote: AFAIK, that message comes from fpc. How can it? I get the error at a time when I'm not compiling a project. Simply opening or navigating a project - that is all Lazarus IDE right? To be more exact, this message comes from the fpc RTL file handling routines, called by the Lazarus IDE. Basically Lazarus IDE asks to open a file for write, or attempts to write to an open file, the OS rises a Disk full exception and the file handling routines just returns the error. Or the file handling routine misinterprets as a Disk full another exception, such as not having the appropriate rights for the directory/file involved, and returns a misleading message :-( Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On Thu, 18 Jun 2015 13:20:53 +0100 Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: Hi, I've come across a relatively recent project of mine that has project defined macros in the LPI file, but for the life of me I can't see where in the Project Options dialog that is defined. See the MacroValues shown below. The Wiki also doesn't mention it. Macros are now under Additions and Overrides. http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Additions_and_Overrides I will update the wiki paragraphs you found. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On Thu, Jun 18, 2015 at 3:26 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: I thought maybe it is the IDE macros as can be seen in this screenshot. That wiki page is badly outdated. Somebody should fix it ... IDE macros were replaced with Additions and Overrides which is more versatile and its settings affect dependent packages, too. Build Modes are now managed in a separate dialog window. You see its GUI at the top of the Options window when some of compiler options pages is selected. Thus it is now more obvious that all compiler options are saved in Build Modes. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On 2015-06-18 13:20, Graeme Geldenhuys wrote: I've come across a relatively recent project of mine that has project defined macros in the LPI file, but for the life of me I can't see where in the Project Options dialog that is defined. See the MacroValues shown below. The Wiki also doesn't mention it. Ah... The mystery is solved! The wiki is well out of date (another reason Lazarus IDE needs versioned help!). Contratry to so many screenshots and text in the wiki, the Build Modes node doesn't exist any more in Compiler Options. I found similar functionality well hidden in Additions and Overrides. Open that sceen, then you have to click on the down arrow next to Add, then select IDE Macros. New macro entries are then created under the odd looking grid under Stored in project (.lpi). Define your Name=Value pairs there, and they generate the MacroValues seen in the LPI file. So, how old is the wiki text and screenshots then? I just checked, and the release Lazarus v1.4 doesn't have the Build modes under Compiler Options, and obviously neither does v1.5 (trunk). Feature Request: Please, please add versioned documentation (docs per release) as a priority for Lazarus. The wiki is currently a mess, and from what I experienced, definitely not very helpful at all. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On 2015-06-18 13:26, Graeme Geldenhuys wrote: I thought maybe it is the IDE macros as can be seen in this screenshot. http://wiki.freepascal.org/IDE_Window:_Project_Options#Project_macros Here it shows that Build modes node too... http://wiki.lazarus.freepascal.org/Macros_and_Conditionals#Add_a_release.2Fdebug_mode Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On Thu, 18 Jun 2015 13:53:31 +0100 Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-06-18 13:46, Juha Manninen wrote: IDE macros were replaced with Additions and Overrides which is more versatile and its settings affect dependent packages, too. Thanks for the info Juha (and Mattias). Which Lazarus release added the new Additions and Overrides functionality? 1.2 http://wiki.freepascal.org/New_IDE_features_since#Project_Additions_and_Overrides Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On 2015-06-18 14:02, Juha Manninen wrote: When you look at the New_IDE_features_since page, Glad to see that page is still going. :) you may notice that your EditorToolbar is now part of BigIde (installed by default). We are the Borg. You will be assimilated. Resistance is futile. :-D Yes, I'm a big Star Trek fan. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Project defined Macros?
Hi, I've come across a relatively recent project of mine that has project defined macros in the LPI file, but for the life of me I can't see where in the Project Options dialog that is defined. See the MacroValues shown below. The Wiki also doesn't mention it. I just updated my Lazarus to the latest Trunk, but it doesn't seem to have such an option either. I remember trying out CodeTyphon a couple weeks back, so not sure if that is maybe a feature they added, and it modified my LPI in the process? This project doesn't define dependency packages, so it seems to have used the Project Macros instead to find the correct source code. The Compiler Options - Paths also use these macros. For example: $(tiopf)UnitTests/Common; $(tiopf)UnitTests/Tests; $(tiopf)Core; $(tiopf)Options; $(tiopf)GUI/fpGUI; $(fpgui)src; ...snip.. I'm a bit puzzled here. :-) == ?xml version=1.0? CONFIG ProjectOptions Version Value=9/ General Flags MainUnitHasCreateFormStatements Value=False/ MainUnitHasTitleStatement Value=False/ /Flags SessionStorage Value=InProjectDir/ MainUnit Value=0/ UseAppBundle Value=False/ ResourceType Value=res/ /General i18n EnableI18N LFM=False/ /i18n VersionInfo StringTable ProductVersion=/ /VersionInfo MacroValues Count=4 Macro1 Name=fpgui Value=/data/devel/fpgui// Macro2 Name=tiopf Value=/data/devel/tiopf// Macro3 Name=fblib Value=/data/devel/opensource/FBLib// Macro4 Name=fptest Value=/data/devel/fptest// /MacroValues BuildModes Count=1 Item1 Name=Default Default=True/ /BuildModes ...snip... Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On 06/18/2015 02:46 PM, Graeme Geldenhuys wrote: I found similar functionality well hidden in Additions and Overrides. I already often used this new kind of Build modes. Seemingly I am the only one ;-) . (I am always focused on ARCH/OS/GUI-System portability.) For my degenerating mind it's by far too hidden and not really easy to use. I'd like the build modes to be more obvious. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On 2015-06-18 13:46, Juha Manninen wrote: IDE macros were replaced with Additions and Overrides which is more versatile and its settings affect dependent packages, too. Thanks for the info Juha (and Mattias). Which Lazarus release added the new Additions and Overrides functionality? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On Thu, Jun 18, 2015 at 3:53 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: Which Lazarus release added the new Additions and Overrides functionality? Lazarus 1.2. http://wiki.freepascal.org/New_IDE_features_since#Project_Additions_and_Overrides When you look at the New_IDE_features_since page, you may notice that your EditorToolbar is now part of BigIde (installed by default). The next development step is to remove the whole package and integrate the code directly in IDE. In fact I am doing that right now. The configuration dialog will be shared between the new IDE Coolbar. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
On 2015-06-18 15:40, aradeonas wrote: Yes but its not even beautiful and you should know specially as a Mac user we are not living in that time when people care about memory and size.For example chrome is a memory hunter and download all of it again in every update but small count of people care about it. I don't buy software so I can stare at their beauty, design all day - and not to work. I buy a product because it is functional and I can get my work done. Yes, I am well aware not everybody is that that. EditPad Pro might not win a beautify contest, but it is a hidden gem when it comes to editors. Extremely versatile, amazing features As for Mac users not caring about memory, cpu usage etc. Umm, think again. Do a quick Google search for chrome draining battery mac. There are tons of Mac users complaining for some time now about Chrome reducing the Macbook Air and Pro's battery by almost half!! Many have moved to Firefox or back to Safari because Google is not supplying a solution. I'm sure they would be happy with more desktop applications behaving like that - only for the sake of some eye-candy of course. ;-) Also I didnt said make Lazarus with this system, Neither did I. ;) I was simply giving examples of companies that use browser engines to build desktop applications. Coincidently two of them were editors and both using Chromium. I think this way of making an app is good for apps that need beauty and animation far more that menus and speed and this is most of apps today. Qt manages to do all that with no embedded browser engine as far as I know. I believe it is called QML. It is influenced by JavaScript and uses CSS to define many attributes (text and widgets). Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
Bo Berglund wrote: Concerning Safenet I tried to access their support portal (which I have used frequently in the past) only to discover that they have moved to a new portal and apparently NOT migrated the registered users... So now I have to wait a while for my login to be created before I can ask for FreePascal support. Remember that in general FPC can link to C (but not necessarily C++) libraries. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
EditPad Pro is a fraction of the size, uses MUCH less memory and with a lot more feature. Yes but its not even beautiful and you should know specially as a Mac user we are not living in that time when people care about memory and size.For example chrome is a memory hunter and download all of it again in every update but small count of people care about it. Also I didnt said make Lazarus with this system,as I you I didnt like these system for a professional user but most of the users don't click or type as fast as you and not even find out how much memory it use. I think this way of making an app is good for apps that need beauty and animation far more that menus and speed and this is most of apps today. I didnt even like JS but just a take look of massive libraries and components for it,times I tried to make web components for my app and sure I could but how much time it costs to make wheel again? We are working on this, but it takes time. If you are talking about converting Pascal to JS yes it takes a lot of times and I think maybe we can write JS exactly as web developers and later converter do that for us.so we have a web site that run on a FreePascal core as a offline/online web server that do system,db,file .. works . I think all of you know Brook from Silvio ,It can be a Server+Embeded Browser. I like to know others thoughts and if any one like this idea maybe we could work on it together. Regards, Ara -- http://www.fastmail.com - Send your email first class -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
Dear Graeme,you said all I know :D I don't buy software so I can stare at their beauty Most of the people are like this but you care more because you are a developer. Consider count of chrome users. http://www.w3schools.com/browsers/browsers_stats.asp Also lovely browser like Opera is going chrome way. I love our native apps simplicity,all I want is to use this HUGE web tools for desktop apps (not as a replacement for sure,but as a new way of building app) so I can make more beautiful apps with less coding. Regards, Ara -- http://www.fastmail.com - The way an email service should be -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Wed, 17 Jun 2015 10:34:32 +0200, Michael Schnell mschn...@lumino.de wrote: On 06/16/2015 06:14 PM, Graeme Geldenhuys wrote: Being open source and allowing me to customise things the way I like is a brilliant feature. He also wants to use closed source 3rd party stuff and want to impose copy protection to his projects. All that is rather queer with an open source IDE. This is unfair! We had a PhD hired for 8 years to complete the data analysis and presentation software for tomographic analysis. He was brilliant at his science but not so good at programming, I have discovered. Now I need to maintain the software suite while we try to get back the investment. Doing so with Embarcadero's software is progressively harder all the time due to their miserable support policy. That is why I am investigating the possibilities to port the applications to FPC and Lazarus. Should it be possible then I will probably have to spend a number of months doing it (hopefully less).' But in the end we still need the dongled protection because the package is a scientific analysis software suite and it is sold in maybe 100 copies yearly. The dongles ensure we at least get paid from official customers. This has nothing whatsoever to do with the way the developmemnt is done or which compiler is used. Back to my technical discussion: Concerning Safenet I tried to access their support portal (which I have used frequently in the past) only to discover that they have moved to a new portal and apparently NOT migrated the registered users... So now I have to wait a while for my login to be created before I can ask for FreePascal support. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
On 2015-06-18 16:29, aradeonas wrote: Consider count of chrome users. http://www.w3schools.com/browsers/browsers_stats.asp I always take such stats with a pinch of salt. Most new browsers are based on Chromium, so do the stats count that as Chrome? eg: Opera v12, Vivaldi, Sleipnir just to name a few. Interesting that the stats show Opera going up. Also I believe the Chrome count is getting a *massive* boost from the billion plus Android phones out there. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project defined Macros?
On Thu, Jun 18, 2015 at 4:30 PM, Michael Schnell mschn...@lumino.de wrote: I found similar functionality well hidden in Additions and Overrides. I already often used this new kind of Build modes. Seemingly I am the only one ;-) . (I am always focused on ARCH/OS/GUI-System portability.) For my degenerating mind it's by far too hidden and not really easy to use. I'd like the build modes to be more obvious. Is it possible that your degenerating mind now confuses Build modes with Additions and Overrides somehow? Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Mon, 15 Jun 2015 08:21:49 +0200, Bo Berglund bo.bergl...@gmail.com wrote: 1) We have created a number of non-visual components that are dropped on the forms to supply various kinds of functionality. Some of these are handlers for language dependent texts, software protection dongles, communications interfaces like RS232 serial components, logging functions etc. Seems like non-visual components are not handled by Lazarus according to wiki texts I have read. 6) An important non-visual component on almost all of our applications is a handler I wrote a long time ago (about 2000) for the Safenet Sentinel Superpro software protection dongle. It is mostly my own code but it uses pas and an obj file supplied from Safenet. If Lazarus does not work with this obj file then I would be dead in the water... How can I find out? I might add that the solution was created a long time ago when the concept of using components to be dropped on datamodules was what we used. However, this dongle component can equally well be used without being dropped anywhere, it is just another class really. I would not have a problem using it as a general purpose object and changing my programs accordingly, that would be pretty easy, provided I can make it work in Lazarus/FPC. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Thu, 18 Jun 2015 15:08:19 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: Concerning Safenet I tried to access their support portal (which I have used frequently in the past) only to discover that they have moved to a new portal and apparently NOT migrated the registered users... So now I have to wait a while for my login to be created before I can ask for FreePascal support. Remember that in general FPC can link to C (but not necessarily C++) libraries. I have their API decription and I have an obj file SPROMEPS.OBJ, which I think contains the interface towards the actual driver. But how can I find out if this can be used with FPC? In the pas file referencing the obj file I have this: IMPLEMENTATION USES Windows; {$L SPROMEPS.OBJ} { LINK WITH THE SUPERPRO OBJECT FILE } { External functions } FUNCTION RNBOsproFormatPacket( ApiPacket : RB_SPRO_APIPACKET_PTR; thePacketSize : WORD ) : WORD; STDCALL; EXTERNAL; Any ideas? -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
Yes maybe.I guess both of us right but we look at this subject from different angle and if making beautiful new age app was easy with Lazarus or your library for sure I didn't looking for slow way. I want to know others thoughts too. Regards, Ara -- http://www.fastmail.com - Access your email from home and the web -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
Am 2015-06-18 um 18:22 schrieb aradeonas: and if making beautiful new age app was easy with Lazarus or your library for sure I didn't looking for slow way. Beauty is very subjective. I see the beauty in programs that respond and process data with high speed and have a clear minimalistic user interface without any distractions. I would not want a toy program that is meant for kids in the first place so that it looks more like a game than like a serious tool. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Different packages for different usage
On 18.06.2015 23:48, aradeonas wrote: Hi, I made package including some units that some of them need LCL but some of them will be need in server tools and they should not use LCL or graphical stuff so I want to make 2 package one for client app and other one for server with some of tools and without any dependency on graphical stuff so for server apps I will add server package. But I have units share with these two package that used TPicture in some parts but they can be removed with compiler condition. I want to know what is the best way to declare these two package and compiler condition so I will have two package with shared units but for different usage case. In my opinion the best approach would be to put the shared units into their own package and have the code of those units /really/ be shared. This means no compiler defines that influence its behavior. And then the server and the client package depend on that package. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On 2015-06-18 17:48, Bo Berglund wrote: I would not have a problem using it as a general purpose object and changing my programs accordingly, that would be pretty easy, provided I can make it work in Lazarus/FPC. (never tried, never used .obj files since Turbo Pascal days) If all else fails with using the .obj file directly with FPC, what about using the .obj file in Delphi and create a DLL, which you can then use from FPC. Could that work? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Thu, 18 Jun 2015 20:02:02 +0100, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: On 2015-06-18 17:48, Bo Berglund wrote: I would not have a problem using it as a general purpose object and changing my programs accordingly, that would be pretty easy, provided I can make it work in Lazarus/FPC. (never tried, never used .obj files since Turbo Pascal days) If all else fails with using the .obj file directly with FPC, what about using the .obj file in Delphi and create a DLL, which you can then use from FPC. Could that work? It might... I have thought that if I start out with Lazarus (installed but not yet started) by creating a small application where I include the sources for the dongle component after stripping out the component related stuff, then I could have a minimalistic project to figure out... Of course I could create a Delphi DLL exporting the important functions (basically those published by the component) and use that. Did not think about that kind of solution, but it would probably work. There could be a vulnerability for hacking, though, since someone couls create a fake dll with the same interface and this way circumvent our protection... -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Different packages for different usage
Il 18/06/2015 23:48, aradeonas ha scritto: Hi, I made package including some units that some of them need LCL but some of them will be need in server tools and they should not use LCL or graphical stuff so I want to make 2 package one for client app and other one for server with some of tools and without any dependency on graphical stuff so for server apps I will add server package. But I have units share with these two package that used TPicture in some parts but they can be removed with compiler condition. I want to know what is the best way to declare these two package and compiler condition so I will have two package with shared units but for different usage case. I'd suggest to avoid sharing units between packages. But different units may include a .inc file which contains the shared code. Sort of: server.pas: Unit server; {$DEFINE IS_SERVER} {$INCLUDE common.inc} .end client.pas: Unit client; {$INCLUDE common.inc} .end common.inc: Interface {$IFDEF IS_SERVER} . server uses, etc. {$ELSE} . client uses,etc {$ENDIF} common uses,etc. Implementation {$IFDEF IS_SERVER} . server stuff {$ELSE} . client stuff {$ENDIF} common stuff One package uses the "server" unit, the other the "client" unit, but all of your source is in common.inc for easier maintnance. That way the compiler will never be confused about which units to compile, and with which conditionals. Maybe there's a better way, but that's what I'd do. Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On 2015-06-18 23:32, Bo Berglund wrote: There could be a vulnerability for hacking, though, since someone couls create a fake dll with the same interface and this way circumvent our protection... You could add another function to that DLL and do an authentication handshake (to check that the DLL is genuine) before calling anything else in that DLL. I know this isn't waterproof but if someone is determined/talented enough, they can bypass your dongle component too even if it was embedded in your exe. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Different packages for different usage
Hi, I made package including some units that some of them need LCL but some of them will be need in server tools and they should not use LCL or graphical stuff so I want to make 2 package one for client app and other one for server with some of tools and without any dependency on graphical stuff so for server apps I will add server package. But I have units share with these two package that used TPicture in some parts but they can be removed with compiler condition. I want to know what is the best way to declare these two package and compiler condition so I will have two package with shared units but for different usage case. Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On 2015-06-18 21:32, Bo Berglund wrote: for the dongle component after stripping out the component related stuff, then I could have a minimalistic project to figure out... That is exactly what we did back in 2006/7 when we evaluated the possibility of moving our Delphi code to FPC. We noted all the component requirements from our various projects. Then created many small tests to see what would be needed, and what works and what doesn't. In the end this process worked out very well for us. It was also a good time for us to get rid of some components, and replace them with standard components, our own custom components, or open source alternatives. Having less 3rd party dependencies was a huge plus point, but I do know sometimes it is unavoidable. Would you believe it, we still have a Visual Basic 6 machine we can't replace or reinstall. This system was originally setup 13 years ago. The hardware finally started to fail, but just before the hard drives gave up, we cloned it to a VMWare VM. We couldn't create a new VM from scratch because we can't find all the required 3rd party (closed source) components, and don't know where the licensing keys are for them either. VM's to the rescue!! :) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus - Disk Full error
Hi, For some reason I keep getting a Disk Full error (see attached screenshot) in Lazarus this morning. I have two hard drives in my system. One has 51GB free, and the other has 2.8TB free. So I am definitely NOT out of disk space. The error occurs at different times, but not consistent. For example: - When I open a project (even a simple console only project) - When I Ctrl+Click to navigate. I haven't updated my lazarus in recent days. My system has been running 24/7 for the last 38 days, and there are no issues with my system otherwise. I've restarted Lazarus, checked for any runaway Lazarus, FPC or GDB processes. Everything seems fine. I'm using Lazarus 1.5 r48878 FPC 2.6.4 x86_64-freebsd-gtk 2 Why would Lazarus report such an issue? And where does it do such a disk check? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
On 2015-06-18 10:26, aradeonas wrote: Imagine a desktop app that UI (graphic,animation and other stuff) written in HTML, CSS and JS and working with internet,file,system native menus and dialogs come from FreePascal. I don't have to imagine it - I've already seen developers do that with Kylix 3. They developed a commercial framework do design application UI with the help of a web browser engine. The released a CHM-like help viewer as a free example. Some of the UI was built with the Gecko (browser) engine. It was low, memory hungry and huge to deploy (all the runtime libraries, browser engine etc). No thank you. DocView is 1MB, very low memory and very fast. Github Inc (Atom project) and Microsoft (Visual Studio Code project) have also done similar in recent times - creating a programmer editor with the Chromium browser at the heard of the desktop application. Again, massive, not very fast, and complex build system (can only comment on open source projects of course). EditPad Pro is a fraction of the size, uses MUCH less memory and with a lot more feature. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Thu, 18 Jun 2015, aradeonas wrote: fun enough Sure. exciting ? yes. But enough for doing what you can do with Native tools? No. Even Delphi with XE series and advertising about Android and iOS is not good choice. I agree if you want to make a professional tool for multi platform including Android ,Lazarus is very good but I like to see for example Material UI app made with Lazarus too. I agree, but it takes manpower to do all this. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
fun enough Sure. exciting ? yes. But enough for doing what you can do with Native tools? No. Even Delphi with XE series and advertising about Android and iOS is not good choice. I agree if you want to make a professional tool for multi platform including Android ,Lazarus is very good but I like to see for example Material UI app made with Lazarus too. Regards, Ara -- http://www.fastmail.com - Email service worth paying for. Try it for free -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
Exactly and I said that because a new user can decide better. Regards, Ara -- http://www.fastmail.com - IMAP accessible web-mail -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I have some custom components, can I convert Delphi - Lazarus?
On Thu, 18 Jun 2015, aradeonas wrote: Exactly and I said that because a new user can decide better. Without context, I have no idea what you are replying on ? Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
Another way to make new style apps is using web technologies for desktop. For example using web browser to display app content but use FreePascal and Lazarus for backend and preparing system usage and ... . Example of this is : http://electron.atom.io/ Imagine a desktop app that UI (graphic,animation and other stuff) written in HTML, CSS and JS and working with internet,file,system native menus and dialogs come from FreePascal. Maybe we can prepare even JS with FreePascal like p2js, also there are new libraries like React that use component style building that is similar to over habits. With this way we can prepare a website,desktop and maybe mobile app with one base. Write ones,Run Anywhere + new design. Also consider count of libraries and components for web and JS that we can use in our apps. What you think? Regards, Ara -- http://www.fastmail.com - A no graphics, no pop-ups email service -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Ways of making new style design
On Thu, 18 Jun 2015, aradeonas wrote: Another way to make new style apps is using web technologies for desktop. For example using web browser to display app content but use FreePascal and Lazarus for backend and preparing system usage and ... . Example of this is : http://electron.atom.io/ Imagine a desktop app that UI (graphic,animation and other stuff) written in HTML, CSS and JS and working with internet,file,system native menus and dialogs come from FreePascal. Maybe we can prepare even JS with FreePascal like p2js, also there are new libraries like React that use component style building that is similar to over habits. With this way we can prepare a website,desktop and maybe mobile app with one base. Write ones,Run Anywhere + new design. Also consider count of libraries and components for web and JS that we can use in our apps. What you think? We are working on this, but it takes time. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus - Disk Full error
On 06/18/2015 12:05 PM, Graeme Geldenhuys wrote: Hi, For some reason I keep getting a Disk Full error (see attached screenshot) in Lazarus this morning. I have two hard drives in my system. One has 51GB free, and the other has 2.8TB free. So I am definitely NOT out of disk space. The error occurs at different times, but not consistent. For example: - When I open a project (even a simple console only project) - When I Ctrl+Click to navigate. I haven't updated my lazarus in recent days. My system has been running 24/7 for the last 38 days, and there are no issues with my system otherwise. I've restarted Lazarus, checked for any runaway Lazarus, FPC or GDB processes. Everything seems fine. I'm using Lazarus 1.5 r48878 FPC 2.6.4 x86_64-freebsd-gtk 2 Why would Lazarus report such an issue? And where does it do such a disk check? AFAIK, that message comes from fpc. Seen many times but only when rebuilding some project (yes, there's enough free space on disk), never spotted it with your examples. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus - Disk Full error
On 2015-06-18 11:35, zeljko wrote: AFAIK, that message comes from fpc. How can it? I get the error at a time when I'm not compiling a project. Simply opening or navigating a project - that is all Lazarus IDE right? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus