[Lazarus] httpWebServer does not show images for some users

2012-07-08 Thread John Repucci
(Sorry about that - I forgot to change the Subject line.)

On Sun, Jul 8, 2012 at 9:01 AM, John Repucci  wrote:
>> The file serving module is also a module.
>>
>> It is 'hidden', as there is no visible data module for you to put components 
>> on,
>> but in the background there is a module nonetheless.
>>
>>> 'img' is suppose to be the location for my image files.  (in this
>>> case, in the same directory as the application)
>>
>> Well, img is the location of all files, including the index.html file ?
>>
>> Which is why I put it as the default module: it first serves the index.html
>> file (implicitly, because there is no path, and hence the default is used),
>> and then the img file (explicitly, since it's URL starts with /img/).
>>
>> I used the sources you sent to the mailing list, which I expect to be the
>> same as you are using ?
>>
>> I cannot do more than explain how it works :-)
>>
>> Michael.

re: source - yes I am using the same source files.  I removed all of
my previous files and used just the contents from the file I supplied
plus the additional lines you suggested.

Explanations are good, because I do not have a good idea how this
works and there is little documentation on http server application.
RegisterFileLocation, AllowDefaultModule and AllowDefaultModule are
not found in the chm help files and googling for them does not find
anything useful.  If any documentation exists, please provide a link.
I would love to RTFM ("read the FINE manual").

Assuming that one module is better than two, I removed the
RegisterHTTPModule('Main', TMain);  &
Application.DefaultModuleName:='main';  lines, but that did not help.
I was unable to get the http server to provide anything.

For this simple example, should I have two modules or should I only
the default module? If using only the default module is acceptable,
how would I use it?

re: the images directory - once I get this working (making an
assumption), I want to have all of my images located in a secondary
directory and all of my html files in the main (server root)
directory.
Eventually:  ImageDir  := GetCurrentDir + DirectorySeparator + 'image';

Do you (or anyone) have a working example of one or two http server
applications, preferable with images on the web page?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus Digest, Vol 54, Issue 11

2012-07-08 Thread John Repucci
> The file serving module is also a module.
>
> It is 'hidden', as there is no visible data module for you to put components 
> on,
> but in the background there is a module nonetheless.
>
>> 'img' is suppose to be the location for my image files.  (in this
>> case, in the same directory as the application)
>
> Well, img is the location of all files, including the index.html file ?
>
> Which is why I put it as the default module: it first serves the index.html
> file (implicitly, because there is no path, and hence the default is used),
> and then the img file (explicitly, since it's URL starts with /img/).
>
> I used the sources you sent to the mailing list, which I expect to be the
> same as you are using ?
>
> I cannot do more than explain how it works :-)
>
> Michael.

re: source - yes I am using the same source files.  I removed all of
my previous files and used just the contents from the file I supplied
plus the additional lines you suggested.

Explanations are good, because I do not have a good idea how this
works and there is little documentation on http server application.
RegisterFileLocation, AllowDefaultModule and AllowDefaultModule are
not found in the chm help files and googling for them does not find
anything useful.  If any documentation exists, please provide a link.
I would love to RTFM ("read the FINE manual").

Assuming that one module is better than two, I removed the
RegisterHTTPModule('Main', TMain);  &
Application.DefaultModuleName:='main';  lines, but that did not help.
I was unable to get the http server to provide anything.

For this simple example, should I have two modules or should I only
the default module? If using only the default module is acceptable,
how would I use it?

re: the images directory - once I get this working (making an
assumption), I want to have all of my images located in a secondary
directory and all of my html files in the main (server root)
directory.
Eventually:  ImageDir  := GetCurrentDir + DirectorySeparator + 'image';

Do you (or anyone) have a working example of one or two http server
applications, preferable with images on the web page?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] httpWebServer does not show images for some users

2012-07-07 Thread John Repucci
> Message: 2
> Date: Sat, 7 Jul 2012 09:31:44 +0200 (CEST)
> From: Michael Van Canneyt 
> Subject: Re: [Lazarus] httpWebServer does not show images for some
> users
> To: Lazarus mailing list 
> Message-ID: 
> Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
>
>
>
> On Fri, 6 Jul 2012, John Repucci wrote:
>
>> I've been playing around with the httpwebserver and having problems
>> getting it to display images.
>> see: http://www.lazarus.freepascal.org/index.php/topic,17296.0.html
>> for some history on this.
>>
>> I've added the project if you care to look at it.
>>
>> Neither Reinier or I see the image when we compile the app, but
>> Leledumbo does see the image.
>
> I also could see the image, but the URL I had to use is:
>
> http://localhost:8081/img/index.html
>
> The reason for this is that you have 2 modules in your application.
>
> If you do not specify a path, the webserver has no way of determining
> what module it should invoke. There is a property 'AllowDefaultModule'
> which will allow to select a default module if no module name is found.
>
> Then, if you have multiple modules, you need to tell the webserver which
> is the default module to use. You can do this by setting DefaultModuleName.
>
> So, I set up the project file by adding
>
>Application.AllowDefaultModule:=True;
>Application.DefaultModuleName:='img';
>
> before
>Application.initialize;
>
> and then everything worked fine with the URL:
>
> http://localhost:8081/index.html
>
> Michael.

Michael,

After adding the above lines (thank you) and using
http://localhost:8081/index.html, I get a blank page (and nothing on
the source page).  (tested using both FF and Chrome)

The only way I am able to see the expected web page is by using:
http://localhost:8081/main/default (still no image).

When I use Application.DefaultModuleName:='main', then going to
http://localhost:8081/ I see the expected page (still no image).

re: Modules - I have two modules?  I see the Main module (
RegisterHTTPModule('Main', TMain)), but where is the 2nd module?
'img' is suppose to be the location for my image files.  (in this
case, in the same directory as the application)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Debugger Error: "PC register is not available"

2012-03-17 Thread John Repucci
I just encountered the below pop-up error message when debugging.

Within that one session of Laz, I was able to reproduce the message,
but once I existed / restarted Lazarus, it did not reoccur.

Any suggestions for the next time I encounter it?

code segment:  sA,sB are strings; I was able to step past the sA line
and sA evaluated correctly.  Every time I attempted to step over the
sB line, I received the error.
  sA := KeyStrings.Strings[0];
  sB := KeyStrings.Strings[1];

---
Debugger Error
The debugger encountered an error when trying to run/step the application:
PC register is not available
Press "OK"  [etc ...]
The more button gives ",msg="PC register is not available""
---

Laz: 0.9.31-35589, 2.6.1, win32, running on a Win7-64 bit system.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing Documentation

2012-02-29 Thread John Repucci
Duh - ignore me - Index shows the results STARTING AT the entered value string.

> I agree - the results are strange.
> I used index to search for "VST" and the first links ("Var", "Varies") did
> not contain "VST".

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing Documentation

2012-02-29 Thread John Repucci
>
> Date: Thu, 01 Mar 2012 01:22:34 +0100
> From: Hans-Peter Diettrich 
> Subject: Re: [Lazarus] Missing Documentation
> To: Lazarus mailing list 
> Message-ID: <4f4ec14a.9080...@aol.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Marc Santhoff schrieb:
>
> > A complete index, yes. To the right on
> >
> >   http://wiki.lazarus.freepascal.org/
> >
> > under the headline "Navigation" there is a link to it.
>
> The results are very strange. Entering "documentation" finds almost all
> pages, because these have this keyword in the headline and navigation menu.
>
> I agree - the results are strange.
I used index to search for "VST" and the first links ("Var", "Varies") did
not contain "VST".
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Wiki Search vs Index

2012-02-29 Thread John Repucci
>
> Date: Wed, 29 Feb 2012 21:40:01 +0100
> From: Marc Santhoff 
> Subject: Re: [Lazarus] Missing Documentation
> To: Lazarus mailing list 
> Message-ID: <1330548001.57395.66.ca...@zaphod.das.netz>
>
> A complete index, yes. To the right on
>
>  http://wiki.lazarus.freepascal.org/
>
> under the headline "Navigation" there is a link to it. But you have to
> type in at least one char to see something, because there are so much
> pages that a full a-z index would be far too huge to show in one page.
>
>
> Thanks Marc,

Ah - silly me.  All this time I have been using "Wiki Search".
Search for "virtual"
Index returned: 11
Wiki Search returned: 186
(after several The connection has timed out. The server at
wiki.lazarus.freepascal.org is taking too long to respond.)
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Missing Documentation

2012-02-29 Thread John Repucci
>
> Date: Wed, 29 Feb 2012 19:32:47 +0100
> From: Marc Santhoff 
> Subject: Re: [Lazarus] Missing Documentation
> To: Lazarus mailing list 
> Message-ID: <1330540367.57395.61.ca...@zaphod.das.netz>
> Content-Type: text/plain
>
> Am Mittwoch, den 29.02.2012, 18:15 +0100 schrieb Hans-Peter Diettrich:
> > Marc Santhoff schrieb:
>
> That's what I was saying, there could be some index pages. But after
> looking ati those index pages are already there, you named one. No idea
> of a better organization of the wiki yet ...
>
>
(Not that I'm volunteering, mind you, but ...)
Is it possible to get a listing of all of the wiki pages?

Every time I search the wiki or get terse responses to my questions (ie:
RTFW - read the FINE wiki), I suspect there is a lot more info in the wiki
than I find with my search queries.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project management

2012-02-28 Thread John Repucci
> From: Hans-Peter Diettrich 
> Subject: Re: [Lazarus] Project management
>
> Everton Vieira schrieb:
> > And
> > to elegantly show the contributor who did the examples and so on.
>
> Right, sometimes it would be nice to know whom to ask specific questions.
>
> DoDi
>

As much as I would like to get answers directly (and promptly) from the
source experts, I would prefer that the developers be allowed to focus on
development (if that is their passion).  I would rather have a set of SMEs
(subject matter experts) as a buffer.  Yes, they will have to ask the
developers questions, but they can act as intelligent filters and
translators (meanings of questions, not language). This would also help
develop the next set of developers or documentation writers, as they will
develop systems to help the inexperienced help themselves.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] SourceEditor: strange "gap" on right hand side

2012-02-28 Thread John Repucci
>
> Date: Tue, 28 Feb 2012 15:53:38 +0100
> From: Bart 
> Subject: [Lazarus] SourceEditor: strange "gap" on right hand side
> To: Lazarus mailing list 
> Message-ID:
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> After upgrading from r34833 to r35612 I noticed that the SourceEditor
> now had a strange "gap" on the right hand side, see attached
> screenshot.
> Anybody knwos what it is, or why it is there?
>
> Bart
>
It shows (with a little dash within that vert space) where your changes
have been made.
I also saw that recently and wondered, but I do find it useful.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-stl / thashset question

2012-02-27 Thread John Repucci
>
> From: Sven Barth 
>
> I did a quick test by manually building and installing FPC 2.7.1 on
> i386-win32. There fcl-stl is included in the installation. But you are
> indeed right that it is not included in the snapshot download. Please
> file a bug report.
>
> Regards,
> Sven
>
>
> Done:  bug #: 0021384 

Sven (or others), can you point me to a reference document on how to build
fpc on a windows system?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fcl-stl / thashset question

2012-02-27 Thread John Repucci
>
> Date: Mon, 27 Feb 2012 13:20:02 +0400
> From: Alexander Shishkin 
> Subject: Re: [Lazarus] fcl-stl / thashset question
> To: lazarus@lists.lazarus.freepascal.org
> Message-ID: <4f4b4ac2.4070...@mail.ru>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> 27.02.2012 12:19, Mattias Gaertner ?:
> > On Mon, 27 Feb 2012 06:18:59 +0100
> > Hans-Peter Diettrich  wrote:
> >
> >> John Repucci schrieb:
> >>> I'm attempting to use thashset from the fcl-stl unit.
> >>>
> >>> It appears that fcl-stl is not compiled with the fpc that comes with
> >>> Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32.
> >
> > 2.6.1 does not install them.
> > 2.7.1 does. At least under Linux and OS X.
> >
> > I don't know why 2.6.1 does not install them. Maybe they were not
> > stable. You could ask on the fpc list.
> >
> >
>
> A bug, #19916, fixed in 2.7.1
>
Bug #19916 was closed ~ 6 months ago.
I downloaded 2.7.1 yesterday and it did not include fcl-stl.
I'll ask on the fpc list.
Thanks all.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] fcl-stl / thashset question

2012-02-26 Thread John Repucci
I'm attempting to use thashset from the fcl-stl unit.

It appears that fcl-stl is not compiled with the fpc that comes with
Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32.

While fcl-stl is in the source, it is not found in the units directory
tree.  (this is also true of fpc-2.7.1.i386-win32 that I downloaded
yesterday).

Any suggestions how I might get a version of fpc that includes fcl-stl?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] App Seg Faults when -gh is unchecked

2011-09-03 Thread John Repucci
I've had this happen to me twice now.

I'm developing the app in the Lazarus IDE and all is well.  Then I uncheck
the -gh option ("Use Heaptrc Unit"), run my program and I get a Segmentation
Fault before any of the program shows up.  This happens both within the IDE
(via F9) and when I run the program outside of the IDE.

When I remove heaptrc from my uses clause AND uncheck -gh, all is well.

Thoughts?  Is this a bug which I should report?

0.9.31-31848-2.5.1, win32-Vista.

Here is the gdb output.

(gdb) file rim.exe
Reading symbols from C:\Programming\RIM/rim.exe...done.
(gdb) run
Starting program: C:\Programming\RIM/rim.exe
[New Thread 2996.0x1468]

Program received signal SIGSEGV, Segmentation fault.
0x005b4a3f in HEAPTRC_UPDATECRC32$LONGWORD$formal$LONGWORD$$LONGWORD ()
(gdb) info stack
#0  0x005b4a3f in HEAPTRC_UPDATECRC32$LONGWORD$formal$LONGWORD$$LONGWORD ()
#1  0x002b3508 in ?? ()
#2  0x0040e2f8 in SYSTEM_REALLOCMEM$POINTER$LONGWORD$$POINTER ()
#3  0x0043f999 in CLASSES_TFPLIST_$__SETCAPACITY$LONGINT ()
#4  0x002229e8 in ?? ()
#5  0x005bb7e0 in DBCTRLS_init () at lcl_dbnav_images.lrs:101
#6  0x0040d9f4 in fpc_initializeunits ()
#7  0x7ffd9000 in ?? ()
#8  0x00412421 in SYSTEM_EXE_ENTRY$TENTRYINFORMATION ()
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where is the documentation for powtils?

2011-08-14 Thread John Repucci
>
>
> On 14 August 2011 16:02, Thierry Coq  wrote:
> > I'm trying to use powtils to build an embedded web server. Powtils looks
> > useful, but all links pointing to documentation are stale. Could anyone
>
> Powtils has been abandoned by the original author for about 2+ years
> already. I still us a stable "working" release (v1.6.0.2), but trunk
> never worked or compiled for me. My copy works as-is, and I haven't
> found any really problems, but I also don't like using abandoned
> software - though I could fix one or two issues if they did come up.
> So I might suggest (and I'll probably follow my own advice soon),
> rather used something like fcl-web which is well maintained and used
> by many.
>
>
> --
> Regards,
> ? - Graeme -
>
>
> Thierry,
See:  http://code.google.com/p/powtils/  - It appears that changes have been
made as recently as Aug 06, 2011.

http://code.google.com/p/powtils/downloads/list - this link leads to v1.7.1,
last updated Feb 2008

The above is not a recommendation - I have not attempted to use powutils and
as Graeme suggests, the version I found might not compile.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?

2011-08-02 Thread John Repucci
>
> Date: Tue, 2 Aug 2011 13:36:20 +0200
> From: t.wieckow...@gmail.com
> Subject: Re: [Lazarus] Should StringGrid1.Clear clear the fixed rows /
>columns?
> To: Lazarus mailing list 
> Message-ID:
> >
> Content-Type: text/plain; charset=UTF-8
>
>
> I don't see the problem, current behavior of the Clear method is ok for me.
> This problem can be easily solved by setting StringGrid1.RowCount or
> StringGrid1.Rows[i].Clear.
>
> Regards,
> Tomek
>
> The above works well for header ROWs, but not for a header COLUMN and will
not work in the case where both FixedRow and FixedColumn are being used and
the user wishes to preserve them rather than rebuilding them everytime they
want to clean up the SG.
- John
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?

2011-08-01 Thread John Repucci
>
> From: Jesus Reyes 
>
>
> ... Delphi grids do not implement a clear method :D so this is not a
> compatibility problem, or is it?.
>
> The add-on component VirtualStringView/Tree does implment a clear method
that does not delete the headers.

I can envision cases where I would like a completely empty SG and cases
where I would like the fixed rows / columns to survive.
ex 1: Instead of creating a 2nd SG with a completely different header
structure and purpose, wipe the original, add in the desired new fixed cells
and start to fill it.
ex: 2: (my current case...) Load in data, process it and then I need to
purge the data, so I clear the SG and load in more data.

John


>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?

2011-07-31 Thread John Repucci
I have a fixed row in my SG with the titles for the columns, but when I do a
SG.clear, the fixed rows are deleted.
I understand why that is happening (the so-called fixed rows are just row
[0] within the SG).

However, it would be nice if the fixed rows were not affected by the clear.
Am I missing something in the setup of the SG which would prevent the fixed
row from being cleared or is this a bug or a potential enhancement request?

I could implement something like VirtualStringView/Tree and I am using that
elsewhere in my program for another purpose, but I was looking for a
lightweight grid.

0.9.31-31292-2.4.4-win32-Vista
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] [again] Can't take the address of constant expressions

2011-06-09 Thread John Repucci
I was testing the below code from the fpc documentation and I get the "Can't
take the address of constant expressions" error, with the cursor positioned
just after "(S)" in the 2nd WriteLn statement.

I do not understand how to fix this.  I did search for the error, but it
none of it makes sense.
I'll solve my issue another way, but I'm wondering if this example should be
fixed.

0.9.31-30142, 2.4.2, win32-Vista

Any suggestions?


source:
http://www.freepascal.org/docs-html/rtl/sysutils/ansiextractquotedstr.html

Program Example51;
{ This program demonstrates the AnsiQuotedStr function }
Uses sysutils;

Var S : AnsiString;

Begin
 S:='He said "Hello" and walked on';
 S:=AnsiQuotedStr(Pchar(S),'"');
 Writeln (S);
 Writeln(AnsiExtractQuotedStr(Pchar(S),'"'));
End.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] IDE Options implementation question

2011-05-21 Thread John Repucci
I would like to mimic the Lazarus IDE Options window for my program.
Can anyone point me to an example with a similar implementation?
What object is used on the left side and how is it populated?
Is there a way I could open the editor or the IDE Options inside the Lazarus
editor?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] OnGuard component: CreateMachineID not working?

2011-04-27 Thread John Repucci
I'm seeing an oddity with the CreateMachineID function within the OnGuard
component.
Is there anyone who has used this component in depth?
Any idea who I would submit a ticket to or who can tell me if I'm doing
something wrong?

I'm using the CreateMachineID code to pull an id for networking, drives and
then Networking + Drives and the values I'm getting do not seem correct:

Network,Drives,  Network + Drives
42312D6C, CA7CFA8F, 42312D6C

I would not expect that Network = Network + Drives?

I did see the conversation about OnGuard in early 2010 about drive ID's, so
I'm getting leery of using the drive ID information.


var
  InfoSet  : TEsMachineInfoSet;
  HWInfo   : LongInt;
  HWInfoNW : LongInt;  // the Network HWInfo
  HWInfoDr : LongInt;  // the Drive HWInfo
  sHWInfo, sHWInfoNW, sHWInfoDr : String;
Begin
try
  InfoSet := [];
  InfoSet := InfoSet + [midNetwork];
  HWInfoNW := CreateMachineID(InfoSet);  // Request just the Network Info
  sHWInfoNW := BufferToHex(HWInfoNW, SizeOf(LongInt));

  InfoSet := [];
  InfoSet := InfoSet + [midDrives];
  HWInfoDR := CreateMachineID(InfoSet);  // request just the Drive Info
  sHWInfoDr := BufferToHex(HWInfoDr, SizeOf(LongInt));

  InfoSet := [];
  InfoSet := InfoSet + [midDrives] + [midNetwork];
  HWInfo := CreateMachineID(InfoSet);   //  Request both Network & Drive Info
  sHWInfo := BufferToHex(HWInfo, SizeOf(LongInt));

  Edit1.Text := sHWInfoNW + ', ' + sHWInfoDr + ', ' + sHWInfo;//
Display the HWInfo
  except on E:Exception do
   ShowMessage(E.Message);
  end;
end.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread John Repucci
> I believe that currently it is necessary to use the menu "View / Units..." 
> for each unit then do a "File / Save as..." for each of the units. I also 
> think that when a unit is saved that it's form is automatically saved... 
> someone please correct me if this is wrong.
>> Only the lpi and lpr files are copied to the new location and the
>> search paths are adapted. Normal projects will still compile.
>> If you want a copy of the whole project directory you can use your
>> favorite file browser.
>>
>>
>> > OnGuard example program: "codegen"  - If I compile it, it works just fine.
>> > When I do a Project Save As ...into a different directory, I only find
>> > two files in the new directory - NewCodeGen.lpi and NewCodeGen.lpr.
>> > And (duh...), the application fails to compile, complaining it cannot
>> > find a unit (codegenu, in this case).
>>
>> Please create a bug report and give a simple example with a directory
>> layout.
>>
>> Mattias

Mattias,
I tried this with a simple blank form project and it worked perfectly
and as expected.  All of the files (.lpi, .lpr, pas, lrm, etc... )
files moved to the new folder and compiled.  I'll try again with the
OnGuard examples to see if I continue to have issues.

I've copied the example from OnGuard to a new directory via my (not so
favorite windows explorer) file manager, but I am unable to get a
clean compile.  sigh.  More time to spend on this.

All, Thanks for the comments and suggestions.
John

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project / Save Project As ... - expected behavior?

2011-04-02 Thread John Repucci
>> > On Fri, 1 Apr 2011 20:54:11 -0500
>> > John Repucci  wrote:
>> >
>> > > If I have a project that works (ie: compiles correctly...) and I do a
>> > > Project / Save Project As ... into a different directory with a
>> > > different name, should I expect that the new project should contain
>> > > all necessary files and compile correctly?
>> >
>> I believe that currently it is necessary to use the menu "View / Units..." 
>> for each unit then do a "File / Save as..." for each of the units. I also 
>> think that when a unit is saved that it's form is automatically saved... 
>> someone please correct me if this is wrong.
>
> Correct.
> If you want to move many units, it may be easier to edit the lpi file.
>
>
> Mattias
>

Ignoring the effort to make the changes ...

Is either of these procedures (move one file at a time or edit the lpi
file) the way this should ideally work?

I was expecting that Save Project As ... would allow me to clone the
project so I could start a spin-off.   Would "Project / Publish
Project do a clone?

Is there any reason I should not create an enhancement / feature
request to change this behavior?
John

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Project / Save Project As ... - expected behavior?

2011-04-01 Thread John Repucci
If I have a project that works (ie: compiles correctly...) and I do a
Project / Save Project As ... into a different directory with a
different name, should I expect that the new project should contain
all necessary files and compile correctly?

OnGuard example program: "codegen"  - If I compile it, it works just fine.
When I do a Project Save As ...into a different directory, I only find
two files in the new directory - NewCodeGen.lpi and NewCodeGen.lpr.
And (duh...), the application fails to compile, complaining it cannot
find a unit (codegenu, in this case).

0.9.31-29846, win32-Vista.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] OnGuard component question

2011-04-01 Thread John Repucci
Graeme (or others...)

Last year you (Graeme) mentioned that you had split the OnGuard
package in two.  Did you release any of your work?  tponguard_lcl.lpk
/ tponguard.lpk
(http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg06252.html)

I want to create a license manager using the "codegen" program as a
starting point and am struggling to untangle the example program from
the package.

I also need to fix a portion of codegen.  The "special data" is
defined as longint, but the special data field in the codegen form
does not accept negative numbers.  I am wondering if I can change that
to a longword or fix the code to accept a negative sign.

TIA.
John

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Undefined symbol errors after adding TOpenDialog

2010-10-16 Thread John Repucci
I added an OpenDialog to a form and started getting the following
errors, with the Source Editor pointing to the end of my .lpr file.
Remove the OpenDialog did not make the errors vanish.
Any thoughts or suggestions?
Windows 32, Vista, 0.9.29, SVN 27226, fpc: 2.4.0

John

IPUtility1.lpr(22,1) Error: Undefined symbol:
CONTROLS_TCONTROL_$__AUTOSIZECANSTART$$BOOLEAN
IPUtility1.lpr(22,1) Error: Undefined symbol:
CONTROLS_TCONTROL_$__CHANGEBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT
IPUtility1.lpr(22,1) Error: Undefined symbol:
CONTROLS_TCONTROL_$__SETALIGNEDBOUNDS$LONGINT$LONGINT$LONGINT$LONGINT
IPUtility1.lpr(22,1) Error: Undefined symbol:
FORMS_TCUSTOMFORM_$__GETCONTROLCLASSDEFAULTSIZE$$POINT
IPUtility1.lpr(22,1) Error: Undefined symbol:
FORMS_TCUSTOMFORM_$__NEEDPARENTFORAUTOSIZE$$BOOLEAN
IPUtility1.lpr(22,1) Error: Undefined symbol:
CONTROLS_TCONTROL_$__SETBOUNDSKEEPBASE$LONGINT$LONGINT$LONGINT$LONGINT$BOOLEAN
IPUtility1.lpr(22,1) Error: Undefined symbol:
CONTROLS_TWINCONTROL_$__RESIZEDELAYEDAUTOSIZECHILDREN
IPUtility1.lpr(22,1) Fatal: There were 7 errors compiling module, stopping

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus