Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-10

reallocmem in heap implemented

14 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess
to Peter Vreman: allocmem/reallocmem are now implemented in the heapmanager. Can someone please test it in…
Jeffrey A. Wormsley wrote 10 lines
When trying to compile the Win32 RTL, I get the following error... bits.inc(110,61) Error: Wrong amount of parameters specified The line this is in is as follows... ReAllocMem(FBits, FSize * SizeOf(longint), newSize * SizeOf(longint)); Is this a result of the fix?

Yup. TBits is the reason I had realloc added in the first place. This will need to be changed to conform to the new ReallocMem procedure.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Jeffrey A. Wormsley
to Peter Vreman: allocmem/reallocmem are now implemented in the heapmanager. Can someone please test it in…
PM Peter Vreman wrote
allocmem/reallocmem are now implemented in the heapmanager. Can someone please test it in a real program.

When trying to compile the Win32 RTL, I get the following error...

bits.inc(110,61) Error: Wrong amount of parameters specified

The line this is in is as follows...

ReAllocMem(FBits, FSize * SizeOf(longint), newSize * SizeOf(longint));

Is this a result of the fix?

Jeff.

Reply by email

Marc Weustink
to Shane Miller: I downloaded it, buit now I can't get it to install. I downloaded the font set you need…

If you are using Redhat, you maybe want this:
http://rufus.w3.org/linux/RPM/powertools/6.1/i386/ddd-3.1.5-3.i386.html

Marc

you wrote
I downloaded it, buit now I can't get it to install. I downloaded the

font set you need with it but during the make it gave me some so I had to do the ./configure with the additional parameters so it knew where the Motif lib was.

Show quoted text 37 lines
Now, I do a make and I get a bunch of If file included from ddd.C:195 LabelH.h:50: Xm/Xm.h: No such file or directory If file included from ddd.C:198 SourceView.h:55: Xm/Xm.h: No such file or directory Any hints? It seems to be looking for Xm.h I guess... Shane >>> Curtis White 10/31/99 11:05PM >>> You can get DDD at http://www.cs.tu-bs.de/softech/ddd/ Curtis On 01-Nov-99 Shane Miller wrote: > Fixed it. Was the reallocmem problem. Where can I download DDD? > ------------------------------------------------------------ > Shane Miller > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Shane Miller: We can test this with the mwedit component and see if it compiles. We will have to get…
Shane wrote 8 lines
We can test this with the mwedit component and see if it compiles. We will have to get someone to actually test to make sure it's freeing enough memory, etc. I would do it but I still don't know how to debug under linux. Can someone give me an idea on how to set up the debugger, and use it? Is there a page somewhere with info that I can look at? I think this would help alot!

I just installed the gdb and ddd rpms, went to the project dir and typed ddd.

Marc

Reply by email

Shane Miller

What do you fix in bits.inc to fix the compiling error? ------------------------------------------------------------ Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------

Earlier message 21 lines
-----Original Message----- From: Marc Weustink To: Date: Sunday, October 31, 1999 5:40 PM Subject: [lazarus] Update: HandleNeeded/CreateHandle/CreateWnd >Implemented HandleNeeded/CreateHandle/CreateWND. >Now controls are created on demand. In most cases there is no reasen to >call CreateComponent/AddChild directly. It is now handled by CreateWnd. >Lazarus compiles and shows a form. The menu isn't there yet, but will be in >a few days. > >Marc > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Marc Weustink
to Payne Thomas E CNIN: Before seeing Marc's response, I got the following files: ddd-3.1.1.tar.gz from…

Correction
the one I use is:
http://rufus.w3.org/linux/RPM/contrib/libc6/i386/ddd-static-3.1.6-1.i386.html

Didn't get the dynamic version to work (needed to upgrade to much)

Marc

Payne wrote 87 lines
Shane, Before seeing Marc's response, I got the following files: ddd-3.1.1.tar.gz from ftp://metalab.unc.edu/pub/Linux/devel/debuggers/ddd/ lesstif-0.88.9-linux-libc5.tar.gz from ftp://ftp.lesstif.org/pub/hungry/lesstif/bindist/ and put them in /usr/local in /usr/local/ddd-3.1.1 I did a ./configure --with-motif-library /usr/local/lesstif/lib the configure and make went OK. The make check complained about not finding a library so I went to /usr/lib and make a link to the lib in /usr/local/lesstif/lib That is as far as I got. Marc's info looks much easier. Tom > -----Original Message----- > From: Marc Weustink > Sent: Wednesday, November 03, 1999 5:16 PM > To: > Subject: Re: [lazarus] Finding DDD > > If you are using Redhat, you maybe want this: > http://rufus.w3.org/linux/RPM/powertools/6.1/i386/ddd-3.1.5-3.i386.html > > Marc > > > At 08:14 03-11-99 -0600, you wrote: > >I downloaded it, buit now I can't get it to install. I downloaded the > font set you need with it but during the make it gave me some so I had to > do the ./configure with the additional parameters so it knew where the > Motif lib was. > > > >Now, I do a make and I get a bunch of > >If file included from ddd.C:195 > >LabelH.h:50: Xm/Xm.h: No such file or directory > >If file included from ddd.C:198 > >SourceView.h:55: Xm/Xm.h: No such file or directory > > > >Any hints? It seems to be looking for Xm.h I guess... > > > >Shane > > > > > > > >>>> Curtis White 10/31/99 11:05PM >>> > >You can get DDD at > > > >http://www.cs.tu-bs.de/softech/ddd/ > > > > > >Curtis > > > >On 01-Nov-99 Shane Miller wrote: > >> Fixed it. Was the reallocmem problem. Where can I download DDD? > >> ------------------------------------------------------------ > >> Shane Miller > >> > > > >_________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > > >_________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

I downloaded it, buit now I can't get it to install. I downloaded the font set you need with it but during the make it gave me some so I had to do the ./configure with the additional parameters so it knew where the Motif lib was.

Now, I do a make and I get a bunch of
If file included from ddd.C:195
LabelH.h:50: Xm/Xm.h: No such file or directory
If file included from ddd.C:198
SourceView.h:55: Xm/Xm.h: No such file or directory

Any hints? It seems to be looking for Xm.h I guess...

Shane

>> Curtis White 10/31/99 11:05PM >>>

You can get DDD at

http://www.cs.tu-bs.de/softech/ddd/

Curtis

On 01-Nov-99 Shane Miller wrote
Fixed it. Was the reallocmem problem. Where can I download DDD? ------------------------------------------------------------ Shane Miller

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Payne Thomas E CNIN

Shane,

Before seeing Marc's response, I got the following files:

ddd-3.1.1.tar.gz from ftp://metalab.unc.edu/pub/Linux/devel/debuggers/ddd/ lesstif-0.88.9-linux-libc5.tar.gz from
ftp://ftp.lesstif.org/pub/hungry/lesstif/bindist/

and put them in /usr/local
in /usr/local/ddd-3.1.1 I did a
./configure --with-motif-library /usr/local/lesstif/lib

the configure and make went OK. The make check complained about not finding a library so I went to /usr/lib and make a link to the lib in /usr/local/lesstif/lib

That is as far as I got.

Marc's info looks much easier.

Tom

Show quoted text 59 lines
-----Original Message----- From: Marc Weustink Sent: Wednesday, November 03, 1999 5:16 PM To: Subject: Re: [lazarus] Finding DDD If you are using Redhat, you maybe want this: http://rufus.w3.org/linux/RPM/powertools/6.1/i386/ddd-3.1.5-3.i386.html Marc At 08:14 03-11-99 -0600, you wrote: >I downloaded it, buit now I can't get it to install. I downloaded the font set you need with it but during the make it gave me some so I had to do the ./configure with the additional parameters so it knew where the Motif lib was. > >Now, I do a make and I get a bunch of >If file included from ddd.C:195 >LabelH.h:50: Xm/Xm.h: No such file or directory >If file included from ddd.C:198 >SourceView.h:55: Xm/Xm.h: No such file or directory > >Any hints? It seems to be looking for Xm.h I guess... > >Shane > > > >>>> Curtis White 10/31/99 11:05PM >>> >You can get DDD at > >http://www.cs.tu-bs.de/softech/ddd/ > > >Curtis > >On 01-Nov-99 Shane Miller wrote: >> Fixed it. Was the reallocmem problem. Where can I download DDD? >> ------------------------------------------------------------ >> Shane Miller >> > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Shane Miller: We can test this with the mwedit component and see if it compiles. We will have to get…

Hi
Am I missing something? When I try the following, I get an runtime error: enter WriteRect
pointer $0806EC18 does not point to valid memory block

It seems that you can't reference the variable whose adress is passed as a pointer.

Since we use this contruction a lot, I get errors at the most unexpecting places.

Marc

-------------------------------------------
program test2;
uses
  Classes, SysUtils;
type
  PRect = ^TRect;
procedure WriteRect(p: pointer);
begin
  WriteLN('enter WriteRect');
  PRect(p)^.Left := PRect(p)^.Left + 1;
  WriteLN(Format('%d, %d, %d,%d',
   [PRect(p)^.Left, PRect(p)^.Top, PRect(p)^.Right, PRect(p)^.Bottom]));
end;
var
  R: TRect;
begin
  R.Left := 0;
  R.Top := 10;
  R.Left := 20;
  R.Bottom := 30;
  WriteRect(@R);
end.

Reply by email

Shane Miller

Fixed it. Was the reallocmem problem. Where can I download DDD? ------------------------------------------------------------ Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------

Earlier message 21 lines
-----Original Message----- From: Marc Weustink To: Date: Sunday, October 31, 1999 5:40 PM Subject: [lazarus] Update: HandleNeeded/CreateHandle/CreateWnd >Implemented HandleNeeded/CreateHandle/CreateWND. >Now controls are created on demand. In most cases there is no reasen to >call CreateComponent/AddChild directly. It is now handled by CreateWnd. >Lazarus compiles and shows a form. The menu isn't there yet, but will be in >a few days. > >Marc > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Shane Miller

We can test this with the mwedit component and see if it compiles. We will have to get someone to actually test to make sure it's freeing enough memory, etc. I would do it but I still don't know how to debug under linux.

Can someone give me an idea on how to set up the debugger, and use it? Is there a page somewhere with info that I can look at? I think this would help alot!

Thanks
------------------------------------------------------------ Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------

Earlier message 19 lines
-----Original Message----- From: Peter Vreman To: Date: Saturday, October 30, 1999 9:33 AM Subject: [lazarus] reallocmem in heap implemented > >allocmem/reallocmem are now implemented in the heapmanager. Can someone >please test it in a real program. > >Peter > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email