Sign in Join

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

Mailing lists / lazarus / 1999-05

Shane's Self Problem detected!

14 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Cliff Baeseman

Shane.
Tom sent me a mail message that said we should look at the objpas unit something about self being commented out where it should be pointing to a memory table....

Cliff

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

Reply by email

Mike Z.
to Cliff Baeseman

Hello:

Thanks for the previous help with my gtk/path problem!

I'm interested in cross-platform development so for kicks I tried to compile lazarus under win32. It seemed to go okay except for some references to the linux unit. I know your goal is to get this working under linux but if you plan on making lazarus cross-platform in the future you might want to keep that in mind during development. Most of the functions in the linux unit look like they can be replaced with functions from the system unit anyway.

I'm not exactly a linux guru but in my limited experience I've liked installing software from tarballs and install scripts better than rpm's. The scripts seem more flexible about where things are installed and you can see exactly what's being installed and where. Also, don't rpm's need to be distribution specific? I recognize the advantages of rpm's but I hope you still provide the old tarball for those that don't want to use rpm's. Just my 2 cents.

mz.

Reply by email

Shane Miller

Well, if you look in objpas.pp you'll notice that the constant vtmselfptr = -32 is commented out. Is this going to be a problem? Is this the problem that we've encountered?

This also seems consistent with what Payne has mentioned.

I can get around the problem of opening files without crashing. It's not proper Delphi-like code but it works. The issue is that I can't SAVE the files because of this problem (I think that's why).

We really need to look at this issue. It's slowing us up a ton. Who created the objpas file or who could look into it?

Shane

>> Cliff Baeseman 05/13 8:59 AM >>>

Shane.
Tom sent me a mail message that said we should look at the objpas unit something about self being commented out where it should be pointing to a memory table....

Cliff

- "If you kiss me, I'll turn into a beautiful princess."
- "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool."

_________________________________________________________________ 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,

I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server.
My comments are from the .zip file on cliff's web page.

The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it.

This time I get an unhandled exception after 'In OPENFILE' (not 'Creating
the MEmo');

Tom

btw: I have not updated FPC since yesterday (via CVS).

Show quoted text 82 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 10:10 AM To: Subject: Re: RE: [lazarus] Shane's Self Problem detected! Payne, I'm not sure what code your working off, so this may not work. Make sure that your global.pp file has a reference to unitlist and ActivePage. If so this will work. The reason it crashes is because fmEditor does not contain anything so assigning the Memo1's parent to fmeditor crashes. What I did was add a local variable called fmeditor in the OPENFILE procedure and assign it to TEditor(UnitList.Objects[ActivePage]); Then, fmeditor is assigned to something. Try that and let me know if it works. Shane >>> Payne Thomas E CNIN 05/13 9:43 AM >>> Problem: Lazarus halt with an unhandled exception after choosing a file from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line 278 'Memo1 := TMemo.Create(fmEditor);' ) Possible Cause: Object TMemo's create method is the constructor and should pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = -36; {not implemented yet}) Background: I have not tested this theory, but it seems right. Object Pascal liturature states that you can send an app into the 'wild blue yonder' by using an object's method without calling the constructor to intialize the link to the virtual method table of the object. The editor problem seems related to tha t, even though you are calling the constructor. Solution: It beyond my capability to suggest one. Tom > -----Original Message----- > From: > Sent: Thursday, May 13, 1999 8:58 AM > To: > Subject: [lazarus] Shane's Self Problem detected! > > Shane. > Tom sent me a mail message that said we should look at the objpas unit > something about self being commented out where it should > be pointing to a memory table.... > > > Cliff > > - "If you kiss me, I'll turn into a beautiful princess." > - "Look, I'm a computer programmer. I don't have time for girls, > but a talking frog is very very cool." > > > _________________________________________________________________ > 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

Payne Thomas E CNIN

Problem: Lazarus halt with an unhandled exception after choosing a file from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line 278 'Memo1 := TMemo.Create(fmEditor);' )

Possible Cause: Object TMemo's create method is the constructor and should pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = -36; {not implemented yet})

Background:
I have not tested this theory, but it seems right. Object Pascal liturature states that you can send an app into the 'wild blue yonder' by using an object's method without calling the constructor to intialize the link to the virtual method table of the object. The editor problem seems related to tha t, even though you are calling the constructor.

Solution:
It beyond my capability to suggest one.

Tom

Show quoted text 23 lines
-----Original Message----- From: Sent: Thursday, May 13, 1999 8:58 AM To: Subject: [lazarus] Shane's Self Problem detected! Shane. Tom sent me a mail message that said we should look at the objpas unit something about self being commented out where it should be pointing to a memory table.... Cliff - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

What line is it crashing on? What's after the IN OPENFILE in your source?

Shane

>> Payne Thomas E CNIN 05/13 10:32 AM >>>

Shane,

I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server.
My comments are from the .zip file on cliff's web page.

The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it.

This time I get an unhandled exception after 'In OPENFILE' (not 'Creating
the MEmo');

Tom

btw: I have not updated FPC since yesterday (via CVS).

Show quoted text 82 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 10:10 AM To: Subject: Re: RE: [lazarus] Shane's Self Problem detected! Payne, I'm not sure what code your working off, so this may not work. Make sure that your global.pp file has a reference to unitlist and ActivePage. If so this will work. The reason it crashes is because fmEditor does not contain anything so assigning the Memo1's parent to fmeditor crashes. What I did was add a local variable called fmeditor in the OPENFILE procedure and assign it to TEditor(UnitList.Objects[ActivePage]); Then, fmeditor is assigned to something. Try that and let me know if it works. Shane >>> Payne Thomas E CNIN 05/13 9:43 AM >>> Problem: Lazarus halt with an unhandled exception after choosing a file from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line 278 'Memo1 := TMemo.Create(fmEditor);' ) Possible Cause: Object TMemo's create method is the constructor and should pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = -36; {not implemented yet}) Background: I have not tested this theory, but it seems right. Object Pascal liturature states that you can send an app into the 'wild blue yonder' by using an object's method without calling the constructor to intialize the link to the virtual method table of the object. The editor problem seems related to tha t, even though you are calling the constructor. Solution: It beyond my capability to suggest one. Tom > -----Original Message----- > From: > Sent: Thursday, May 13, 1999 8:58 AM > To: > Subject: [lazarus] Shane's Self Problem detected! > > Shane. > Tom sent me a mail message that said we should look at the objpas unit > something about self being commented out where it should > be pointing to a memory table.... > > > Cliff > > - "If you kiss me, I'll turn into a beautiful princess." > - "Look, I'm a computer programmer. I don't have time for girls, > but a talking frog is very very cool." > > > _________________________________________________________________ > 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

Payne,
I'm not sure what code your working off, so this may not work.

Make sure that your global.pp file has a reference to unitlist and ActivePage.  If so this will work.
The reason it crashes is because fmEditor does not contain anything so assigning the Memo1's parent to fmeditor crashes.  What I did was add a local variable called fmeditor in the OPENFILE procedure and assign it to TEditor(UnitList.Objects[ActivePage]);

Then, fmeditor is assigned to something.
Try that and let me know if it works.
Shane

>> Payne Thomas E CNIN 05/13 9:43 AM >>>

Problem: Lazarus halt with an unhandled exception after choosing a file from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line 278 'Memo1 := TMemo.Create(fmEditor);' )

Possible Cause: Object TMemo's create method is the constructor and should pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = -36; {not implemented yet})

Background:
I have not tested this theory, but it seems right. Object Pascal liturature states that you can send an app into the 'wild blue yonder' by using an object's method without calling the constructor to intialize the link to the virtual method table of the object. The editor problem seems related to tha t, even though you are calling the constructor.

Solution:
It beyond my capability to suggest one.

Tom

Show quoted text 23 lines
-----Original Message----- From: Sent: Thursday, May 13, 1999 8:58 AM To: Subject: [lazarus] Shane's Self Problem detected! Shane. Tom sent me a mail message that said we should look at the objpas unit something about self being commented out where it should be pointing to a memory table.... Cliff - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ 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

Payne Thomas E CNIN

Shane,

Writeln('In OPENFILE');
fmEditor := TEditor(UnitList.Objects[ActivePage]); <---This was commented
out before
{ PageControl1 := TPageControl.Create(self);
...
 TabSheet1.Show;
}
Writeln('Creating the MEmo....');

Tom

Show quoted text 124 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 12:16 PM To: Subject: Re: RE: RE: [lazarus] Shane's Self Problem detected! What line is it crashing on? What's after the IN OPENFILE in your source? Shane >>> Payne Thomas E CNIN 05/13 10:32 AM >>> Shane, I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server. My comments are from the .zip file on cliff's web page. The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it. This time I get an unhandled exception after 'In OPENFILE' (not 'Creating the MEmo'); Tom btw: I have not updated FPC since yesterday (via CVS). > -----Original Message----- > From: Shane Miller > Sent: Thursday, May 13, 1999 10:10 AM > To: > Subject: Re: RE: [lazarus] Shane's Self Problem detected! > > Payne, > I'm not sure what code your working off, so this may not work. > > Make sure that your global.pp file has a reference to unitlist and > ActivePage. If so this will work. > The reason it crashes is because fmEditor does not contain anything so > assigning the Memo1's parent to fmeditor crashes. What I did was add a > local variable called fmeditor in the OPENFILE procedure and assign it to > TEditor(UnitList.Objects[ActivePage]); > > Then, fmeditor is assigned to something. > Try that and let me know if it works. > Shane > > > >>> Payne Thomas E CNIN 05/13 9:43 AM >>> > Problem: Lazarus halt with an unhandled exception after choosing a file > from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line > 278 'Memo1 := TMemo.Create(fmEditor);' ) > > Possible Cause: Object TMemo's create method is the constructor and > should > pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not > implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = > -36; {not implemented yet}) > > Background: > I have not tested this theory, but it seems right. Object Pascal > liturature > states that you can send an app into the 'wild blue yonder' by using an > object's method without calling the constructor to intialize the link to > the > virtual method table of the object. The editor problem seems related to > tha > t, even though you are calling the constructor. > > Solution: > It beyond my capability to suggest one. > > Tom > > > -----Original Message----- > > From: > > > Sent: Thursday, May 13, 1999 8:58 AM > > To: > > Subject: [lazarus] Shane's Self Problem detected! > > > > Shane. > > Tom sent me a mail message that said we should look at the objpas > unit > > something about self being commented out where it should > > be pointing to a memory table.... > > > > > > Cliff > > > > - "If you kiss me, I'll turn into a beautiful princess." > > - "Look, I'm a computer programmer. I don't have time for girls, > > but a talking frog is very very cool." > > > > > > _________________________________________________________________ > > 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 _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

I am reloading my system with 1.2.1 gtk and glib so hopefully I can compile and run the software here. Otherwise I'll have to answer you when I get to my home system.

thought: Make sure fmeditor is being declared localy and make sure that in MAIN.PP ActivePage is being set to NUm (I think).

If you see what I am doing, feel frfee to rewrite it so it works.

Shane

>> Payne Thomas E CNIN 05/13 12:43 PM >>>

Shane,

Writeln('In OPENFILE');
fmEditor := TEditor(UnitList.Objects[ActivePage]); <---This was commented
out before
{ PageControl1 := TPageControl.Create(self);
...
 TabSheet1.Show;
}
Writeln('Creating the MEmo....');

Tom

Show quoted text 124 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 12:16 PM To: Subject: Re: RE: RE: [lazarus] Shane's Self Problem detected! What line is it crashing on? What's after the IN OPENFILE in your source? Shane >>> Payne Thomas E CNIN 05/13 10:32 AM >>> Shane, I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server. My comments are from the .zip file on cliff's web page. The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it. This time I get an unhandled exception after 'In OPENFILE' (not 'Creating the MEmo'); Tom btw: I have not updated FPC since yesterday (via CVS). > -----Original Message----- > From: Shane Miller > Sent: Thursday, May 13, 1999 10:10 AM > To: > Subject: Re: RE: [lazarus] Shane's Self Problem detected! > > Payne, > I'm not sure what code your working off, so this may not work. > > Make sure that your global.pp file has a reference to unitlist and > ActivePage. If so this will work. > The reason it crashes is because fmEditor does not contain anything so > assigning the Memo1's parent to fmeditor crashes. What I did was add a > local variable called fmeditor in the OPENFILE procedure and assign it to > TEditor(UnitList.Objects[ActivePage]); > > Then, fmeditor is assigned to something. > Try that and let me know if it works. > Shane > > > >>> Payne Thomas E CNIN 05/13 9:43 AM >>> > Problem: Lazarus halt with an unhandled exception after choosing a file > from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line > 278 'Memo1 := TMemo.Create(fmEditor);' ) > > Possible Cause: Object TMemo's create method is the constructor and > should > pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not > implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = > -36; {not implemented yet}) > > Background: > I have not tested this theory, but it seems right. Object Pascal > liturature > states that you can send an app into the 'wild blue yonder' by using an > object's method without calling the constructor to intialize the link to > the > virtual method table of the object. The editor problem seems related to > tha > t, even though you are calling the constructor. > > Solution: > It beyond my capability to suggest one. > > Tom > > > -----Original Message----- > > From: > > > Sent: Thursday, May 13, 1999 8:58 AM > > To: > > Subject: [lazarus] Shane's Self Problem detected! > > > > Shane. > > Tom sent me a mail message that said we should look at the objpas > unit > > something about self being commented out where it should > > be pointing to a memory table.... > > > > > > Cliff > > > > - "If you kiss me, I'll turn into a beautiful princess." > > - "Look, I'm a computer programmer. I don't have time for girls, > > but a talking frog is very very cool." > > > > > > _________________________________________________________________ > > 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 _________________________________________________________________ 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

Cliff Baeseman
to Shane Miller: Well, if you look in objpas.pp you'll notice that the constant vtmselfptr = -32 is…

I like to get dirty so I will try to have a look at it so we can move on.

I think we need to implement a child list in Tcontrol also to track child pointers...

Cliff

Earlier message 46 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 10:06 AM To: Subject: Re: [lazarus] Shane's Self Problem detected! Well, if you look in objpas.pp you'll notice that the constant vtmselfptr = -32 is commented out. Is this going to be a problem? Is this the problem that we've encountered? This also seems consistent with what Payne has mentioned. I can get around the problem of opening files without crashing. It's not proper Delphi-like code but it works. The issue is that I can't SAVE the files because of this problem (I think that's why). We really need to look at this issue. It's slowing us up a ton. Who created the objpas file or who could look into it? Shane >>> Cliff Baeseman 05/13 8:59 AM >>> Shane. Tom sent me a mail message that said we should look at the objpas unit something about self being commented out where it should be pointing to a memory table.... Cliff - "If you kiss me, I'll turn into a beautiful princess." - "Look, I'm a computer programmer. I don't have time for girls, but a talking frog is very very cool." _________________________________________________________________ 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

Cliff Baeseman
to Payne Thomas E CNIN: I am working off of both as of this morning. I just figured out that I can checkout…

This seems to be because of Shane's problem with Passing Self as the owner of a control. You see we use a procedure
called addcontrol in the TControl object at the top of the component tree. This has to have a owner or a crash will occur. Whoever is the controls owner is where tcomponent gets placed using gtk_table_attach. A Table is placed on the parent and the widget is added based on it's height and width properites..

Cliff

Earlier message 110 lines
-----Original Message----- From: Payne Thomas E CNIN Sent: Thursday, May 13, 1999 10:35 AM To: '' Subject: RE: RE: [lazarus] Shane's Self Problem detected! Shane, I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server. My comments are from the .zip file on cliff's web page. The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it. This time I get an unhandled exception after 'In OPENFILE' (not 'Creating the MEmo'); Tom btw: I have not updated FPC since yesterday (via CVS). > -----Original Message----- > From: Shane Miller > Sent: Thursday, May 13, 1999 10:10 AM > To: > Subject: Re: RE: [lazarus] Shane's Self Problem detected! > > Payne, > I'm not sure what code your working off, so this may not work. > > Make sure that your global.pp file has a reference to unitlist and > ActivePage. If so this will work. > The reason it crashes is because fmEditor does not contain anything so > assigning the Memo1's parent to fmeditor crashes. What I did was add a > local variable called fmeditor in the OPENFILE procedure and assign it to > TEditor(UnitList.Objects[ActivePage]); > > Then, fmeditor is assigned to something. > Try that and let me know if it works. > Shane > > > >>> Payne Thomas E CNIN 05/13 9:43 AM >>> > Problem: Lazarus halt with an unhandled exception after choosing a file > from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line > 278 'Memo1 := TMemo.Create(fmEditor);' ) > > Possible Cause: Object TMemo's create method is the constructor and > should > pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not > implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = > -36; {not implemented yet}) > > Background: > I have not tested this theory, but it seems right. Object Pascal > liturature > states that you can send an app into the 'wild blue yonder' by using an > object's method without calling the constructor to intialize the link to > the > virtual method table of the object. The editor problem seems related to > tha > t, even though you are calling the constructor. > > Solution: > It beyond my capability to suggest one. > > Tom > > > -----Original Message----- > > From: > > > Sent: Thursday, May 13, 1999 8:58 AM > > To: > > Subject: [lazarus] Shane's Self Problem detected! > > > > Shane. > > Tom sent me a mail message that said we should look at the objpas > unit > > something about self being commented out where it should > > be pointing to a memory table.... > > > > > > Cliff > > > > - "If you kiss me, I'll turn into a beautiful princess." > > - "Look, I'm a computer programmer. I don't have time for girls, > > but a talking frog is very very cool." > > > > > > _________________________________________________________________ > > 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

Cliff Baeseman
to Mike Z.: Hello: Thanks for the previous help with my gtk/path problem! I'm interested in…

Mike,

Our absolute first goal is to get a limited IDE working. The only reason for using the linux unit for now is so that I can read and write to files. We are having problems with TStrings.SaveToFile under linux so I had to revert to this for now. I plan on replacing this in the future.

I will include any code you may send for compilation under win32 in any case.

Send Away ;)

Cliff

Earlier message 33 lines
-----Original Message----- From: Mike Z. Sent: Thursday, May 13, 1999 10:32 AM To: Subject: [lazarus] thanks, lazarus/win32, rpm's Hello: Thanks for the previous help with my gtk/path problem! I'm interested in cross-platform development so for kicks I tried to compile lazarus under win32. It seemed to go okay except for some references to the linux unit. I know your goal is to get this working under linux but if you plan on making lazarus cross-platform in the future you might want to keep that in mind during development. Most of the functions in the linux unit look like they can be replaced with functions from the system unit anyway. I'm not exactly a linux guru but in my limited experience I've liked installing software from tarballs and install scripts better than rpm's. The scripts seem more flexible about where things are installed and you can see exactly what's being installed and where. Also, don't rpm's need to be distribution specific? I recognize the advantages of rpm's but I hope you still provide the old tarball for those that don't want to use rpm's. Just my 2 cents. mz. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

BTW, lets change the subject of this message. When I see it I think the subject is about my problem with my "self" image or something.

:-)

Shane

>> Payne Thomas E CNIN 05/13 12:43 PM >>>

Shane,

Writeln('In OPENFILE');
fmEditor := TEditor(UnitList.Objects[ActivePage]); <---This was commented
out before
{ PageControl1 := TPageControl.Create(self);
...
 TabSheet1.Show;
}
Writeln('Creating the MEmo....');

Tom

Show quoted text 124 lines
-----Original Message----- From: Shane Miller Sent: Thursday, May 13, 1999 12:16 PM To: Subject: Re: RE: RE: [lazarus] Shane's Self Problem detected! What line is it crashing on? What's after the IN OPENFILE in your source? Shane >>> Payne Thomas E CNIN 05/13 10:32 AM >>> Shane, I am working off of both as of this morning. I just figured out that I can checkout lazarus from the FPC CVS server. My comments are from the .zip file on cliff's web page. The .zip version has unitlist and ActivePage in global.pp. I found the commented out line you referenced and uncommented it. This time I get an unhandled exception after 'In OPENFILE' (not 'Creating the MEmo'); Tom btw: I have not updated FPC since yesterday (via CVS). > -----Original Message----- > From: Shane Miller > Sent: Thursday, May 13, 1999 10:10 AM > To: > Subject: Re: RE: [lazarus] Shane's Self Problem detected! > > Payne, > I'm not sure what code your working off, so this may not work. > > Make sure that your global.pp file has a reference to unitlist and > ActivePage. If so this will work. > The reason it crashes is because fmEditor does not contain anything so > assigning the Memo1's parent to fmeditor crashes. What I did was add a > local variable called fmeditor in the OPENFILE procedure and assign it to > TEditor(UnitList.Objects[ActivePage]); > > Then, fmeditor is assigned to something. > Try that and let me know if it works. > Shane > > > >>> Payne Thomas E CNIN 05/13 9:43 AM >>> > Problem: Lazarus halt with an unhandled exception after choosing a file > from FILE OPEN pulldown menu dialog box reference (lazarus/editor.pp line > 278 'Memo1 := TMemo.Create(fmEditor);' ) > > Possible Cause: Object TMemo's create method is the constructor and > should > pass a pointer back to Memo1 variable, but... the vmtSelfPtr is not > implemented in FPC (reference rtl/objpas/objpas.pp line 27 '//vmtSelfPtr = > -36; {not implemented yet}) > > Background: > I have not tested this theory, but it seems right. Object Pascal > liturature > states that you can send an app into the 'wild blue yonder' by using an > object's method without calling the constructor to intialize the link to > the > virtual method table of the object. The editor problem seems related to > tha > t, even though you are calling the constructor. > > Solution: > It beyond my capability to suggest one. > > Tom > > > -----Original Message----- > > From: > > > Sent: Thursday, May 13, 1999 8:58 AM > > To: > > Subject: [lazarus] Shane's Self Problem detected! > > > > Shane. > > Tom sent me a mail message that said we should look at the objpas > unit > > something about self being commented out where it should > > be pointing to a memory table.... > > > > > > Cliff > > > > - "If you kiss me, I'll turn into a beautiful princess." > > - "Look, I'm a computer programmer. I don't have time for girls, > > but a talking frog is very very cool." > > > > > > _________________________________________________________________ > > 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 _________________________________________________________________ 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