Sign in Join

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

Mailing lists / lazarus / 2002-12

lazarus debuging???

18 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author
to Unknown author: What is the simplest way to debug lazarus? GTK2 interface is finished and it compiles…

Quoting Mattias Gaertner :

Show quoted text 7 lines
On Sun, 22 Dec 2002 22:33:07 +0100 (CET) wrote: > What is the simplest way to debug lazarus? gdb is quite simple for me.

maybe you're just used to it. it's first time I tryed gdb in cli mode. Haiiiaiiiaiii.

Show quoted text 11 lines
> GTK2 interface is finished and it compiles without problem. Most of the > interface shows up properly (at least all controls are antialiased so it > has to be GTK2 :-), except that sometimes after app is almost completely > drawn, app crashes. Want to have. Plz send me the patch, so we can all help you debugging.

Where do I upload or should I put on one of my servers and send patch. But that's not my server yet so please be gentle and download just once.

I'll do that tommorow and address and un<pw>.

But it would be nice if you'd tell me few more things and I would upload a decent version to start from.

1. TGdkAtom was cardinal now pointer? just corrections please. URGENT!!!
2. TGdkRegion has a record, where did you find that record, even in Gdk API guide says it has only one visible var user_data: pointer so it should be either
PGdkRegion = TGdkRegion;
TGdkRegion = record

  user_data: pointer;

end;
3. Accelerators are thrown out, beats me, but I really don't know how to handle them, some old functions have no equivalents.
4. All is made as I said in one of my last "maybe,... gtk2" messages, so in basic, one source for gtk1 and gtk2 with conditional defines. That's why I would need symlinks, same source diff makefile:-)
5. I will post a little readme with it so you'd understand my remarks and unfinished things
6. That's why I need another day and this answer.

Show quoted text 21 lines
> As I debuged with gdb it crashes when applying region to DC (getmem tried > to allocate really big figure of memory when calling > gdk_region_intersect). But I wasn't able to figure out wich control has > uninitialized ClipRegion. > > Suggestions or help with debugging are welcome. > > By the way, would it be possible for lazarus to check if edited file is a > symlink or real file. Sometimes I edit symlinked files and lazarus > overwrites them with a new file (doesn't follow symlinks). I added it to my ToDo list. Mattias

m.

P.S. what's with datasource and db. Since M$ seems to be buying Borland, I need Lazarus urgently in more finished base. So if no one has done yet I'll be available in about two weeks, but I think there is a better way to do it than Borland did it.

-------------------
http://www.email.si

Reply by email

Unknown author
to Unknown author: Quoting nope, as I did it. TBaseDatasource is just a dummy datasource (no db connection…
Show quoted text 74 lines
Quoting > > > On Mon, 23 Dec 2002 wrote: > > > Quoting > > > > > > > > > > > On Mon, 23 Dec 2002 wrote: > > > > > > > > > > > m. > > > > > > > > P.S. what's with datasource and db. Since M$ seems to be buying > > > Borland, I need > > > > Lazarus urgently in more finished base. So if no one has done yet > I'll > > > be > > > > available in about two weeks, but I think there is a better way to > do > > > it than > > > > Borland did it. > > > > > > Basic TDataset/TDataSource is functioning. TDataset decsendents > exist > > > for > > > Mysql,Interbase and DBase; Oracle,PostGreSQL and ODBC should be easy > to > > > add as well as we have 'plain' interfaces for them. > > > > > > The code is tested - rudely. I would be very happy if you could do > > > stress-testing and communicate with me so we can fix or improve > > > things if needed. > > > > > > I've started a design based on TDatabase/TTransaction/TQuery, but I > > > haven't > > > been able to finish that yet. I hope to start this in a month or > two. > > > > > > Also, I recently found an open source alternative to MIDAS > (HyperBase) > > > - > > > and this is a gem which still needs including. Meaning that a > > > TClientDataset > > > descendent of TDataset should be written. > > > > > > As for a 'better way' than Borland did it: As long as you don't > break > > > compatibility, please. But there is tons of DB-aware code out there > > > (just search Torry's pages or DSP) and it would be a shame not to > be > > > > However you things are a real shame to embrace them. > I just > > don't understand why TEdit, TDBEdit, TXXXEdit... (but maybe is that > just me) and > > so on. Borland has just made Datalinks one step too late. Wouldn't it > be easier > > if one component could be data-aware, simple or anything aware. Not > needing to > > change component if you'd need a little different purpose. > > Maybe, but then this would force all DB code in each and every > application, > even if they don't use it. This is the VB approach. > nope, as I did it. TBaseDatasource is just a dummy datasource (no db connection at all), just dummy fieldlinks, that connect to datasource functionality. no dbdatasource, no dbcode. That's the mistake I said datasource is DBOnly??? why when it could be used as any structure source.

I think I see what you're aiming at. I've been playing along similar lines. (Think TEventSource instead of TBaseDataSource, to catch and react to general events.) Send me some code and I'll have a we can maintain source compatibility, no problem; I'm open to suggestions.

Michael.

Reply by email

Unknown author
to Unknown author: Maybe, but then this would force all DB code in each and every application, even if they…

Quoting

Show quoted text 66 lines
On Mon, 23 Dec 2002 wrote: > Quoting > > > > > > > On Mon, 23 Dec 2002 wrote: > > > > > > > > m. > > > > > > P.S. what's with datasource and db. Since M$ seems to be buying > > Borland, I need > > > Lazarus urgently in more finished base. So if no one has done yet I'll > > be > > > available in about two weeks, but I think there is a better way to do > > it than > > > Borland did it. > > > > Basic TDataset/TDataSource is functioning. TDataset decsendents exist > > for > > Mysql,Interbase and DBase; Oracle,PostGreSQL and ODBC should be easy to > > add as well as we have 'plain' interfaces for them. > > > > The code is tested - rudely. I would be very happy if you could do > > stress-testing and communicate with me so we can fix or improve > > things if needed. > > > > I've started a design based on TDatabase/TTransaction/TQuery, but I > > haven't > > been able to finish that yet. I hope to start this in a month or two. > > > > Also, I recently found an open source alternative to MIDAS (HyperBase) > > - > > and this is a gem which still needs including. Meaning that a > > TClientDataset > > descendent of TDataset should be written. > > > > As for a 'better way' than Borland did it: As long as you don't break > > compatibility, please. But there is tons of DB-aware code out there > > (just search Torry's pages or DSP) and it would be a shame not to be > > However you things are a real shame to embrace them. I just > don't understand why TEdit, TDBEdit, TXXXEdit... (but maybe is that just me) and > so on. Borland has just made Datalinks one step too late. Wouldn't it be easier > if one component could be data-aware, simple or anything aware. Not needing to > change component if you'd need a little different purpose. Maybe, but then this would force all DB code in each and every application, even if they don't use it. This is the VB approach.

nope, as I did it.
TBaseDatasource is just a dummy datasource (no db connection at all), just dummy fieldlinks, that connect to datasource functionality. no dbdatasource, no dbcode. That's the mistake I said datasource is DBOnly??? why when it could be used as any structure source.

Show quoted text 10 lines
The Delphi approach is more modular and easier to understand. > Stupid component hierarchy is the main reason why all of my friends that used > Btrieve can't change to anything other than that (or they ever will, but believe > me they would like). I don't see the connection.

only connection to I/O is datasource, and using specialized datasources makes you available to change access in runtime. But I'd probably better make a demo someday in this month and send, it would explain more

Show quoted text 27 lines
If you use standard Delphi controls, the DB engine used has nothing to do with the GUI layer used. If you use some proprietary format type IBObjects, then you have problems of course. At work we switched from Btrieve to Access to Interbase, without problem. > > plus if you need a DB equivalent you would probably need just a name compatibility. > > type > TDBEdit = class(TEdit); > end; The name is not the issue, of course. And anyway for each 'big' application that has 20 or more forms, I would recommend making a private descendent of each and every control used and only use these controls. Besides being able to introduce customized behaviour, his allows you to switch to another set of underlying controls at any later time without loosing properties or methods. One recompile should be sufficient to use the new set of controls.

That's an option too, but I stopped using it long ago, perhaps demo will provide better explanation

Michael.

m.

-------------------
http://www.email.si

Reply by email

Marc Weustink
to Mattias Gaertner: On Sun, 22 Dec 2002 22:33:07 +0100 (CET) gdb is quite simple for me. Want to have. Plz…
Show quoted text 12 lines
Quoting Mattias Gaertner : > On Sun, 22 Dec 2002 22:33:07 +0100 (CET) > wrote: > > > What is the simplest way to debug lazarus? > > gdb is quite simple for me. > maybe you're just used to it. it's first time I tryed gdb in cli mode. Haiiiaiiiaiii.

Maybe you can try a frontend like ddd.

and use the latest version (at least a 5.x version) of gdb. It "understands" pascal, so evaluations are a bit easier.

BTW, when using ddd, force the language to C otherwise ddd wont undersand the output.

Marc

Reply by email

Unknown author
to Unknown author: Quoting Mattias Gaertner : maybe you're just used to it. it's first time I tryed gdb in…
Show quoted text 7 lines
m. P.S. what's with datasource and db. Since M$ seems to be buying Borland, I need Lazarus urgently in more finished base. So if no one has done yet I'll be available in about two weeks, but I think there is a better way to do it than Borland did it.

Basic TDataset/TDataSource is functioning. TDataset decsendents exist for Mysql,Interbase and DBase; Oracle,PostGreSQL and ODBC should be easy to add as well as we have 'plain' interfaces for them.

The code is tested - rudely. I would be very happy if you could do stress-testing and communicate with me so we can fix or improve things if needed.

I've started a design based on TDatabase/TTransaction/TQuery, but I haven't been able to finish that yet. I hope to start this in a month or two.

Also, I recently found an open source alternative to MIDAS (HyperBase) - and this is a gem which still needs including. Meaning that a TClientDataset descendent of TDataset should be written.

As for a 'better way' than Borland did it: As long as you don't break compatibility, please. But there is tons of DB-aware code out there (just search Torry's pages or DSP) and it would be a shame not to be able to use it by breaking compatibility.

Plenty of work, just take a pick. :-)

Michael.

Reply by email

Unknown author
to Unknown author: What is the simplest way to debug lazarus? GTK2 interface is finished and it compiles…

Quoting Mattias Gaertner :

Show quoted text 21 lines
On Mon, 23 Dec 2002 16:08:15 +0100 (CET) wrote: > Quoting Mattias Gaertner : > > > On Mon, 23 Dec 2002 00:52:01 +0100 (CET) > > wrote: > > > > > Where do I upload or should I put on one of my servers and send patch. > > But > > > that's not my server yet so please be gentle and download just once. > > > > You can send me the patch. > > > > where? tell and it shall be done To me personally as tgz/zip.

somewhere tommorow, and it will be complete /lcl/interfaces/gtk2, today I'm not at home, so after I get back

Show quoted text 40 lines
> > > I'll do that tommorow and address and un<pw>. > > > > > > But it would be nice if you'd tell me few more things and I would > > upload a > > > decent version to start from. > > > > > > 1. TGdkAtom was cardinal now pointer? just corrections please. > > URGENT!!! > > > > It is defined as > > typedef struct _GdkAtom *GdkAtom; > > AFAIK it was changed oktober 2001 in gtk1. > > > > Yeah but I wasn't able to get what struct _GdkAtom is. ? ?? ????? Or am I > missing something AFAIK this is an OS dependent type. Simply ignore it. > > > 2. TGdkRegion has a record, where did you find that record, even in > > Gdk > > > API guide says it has only one visible var user_data: pointer > > > so it should be either > > > PGdkRegion = TGdkRegion; > > > TGdkRegion = record > > > user_data: pointer; > > > end; > > > > This record has a different size. > > It was auto translated by h2pas from gtk+/gdk/gdkregion-generic.h. > > > > ??? funny, no file in my /usr/include with that name It's in cvs.

I've got devel-rpms, so that should be the difference

Mattias

m.

-------------------
http://www.email.si

Reply by email

Unknown author
to Unknown author: Quoting However you things are a real shame to embrace them. I just don't understand why…
Show quoted text 45 lines
Quoting > > > On Mon, 23 Dec 2002 wrote: > > > > > m. > > > > P.S. what's with datasource and db. Since M$ seems to be buying > Borland, I need > > Lazarus urgently in more finished base. So if no one has done yet I'll > be > > available in about two weeks, but I think there is a better way to do > it than > > Borland did it. > > Basic TDataset/TDataSource is functioning. TDataset decsendents exist > for > Mysql,Interbase and DBase; Oracle,PostGreSQL and ODBC should be easy to > add as well as we have 'plain' interfaces for them. > > The code is tested - rudely. I would be very happy if you could do > stress-testing and communicate with me so we can fix or improve > things if needed. > > I've started a design based on TDatabase/TTransaction/TQuery, but I > haven't > been able to finish that yet. I hope to start this in a month or two. > > Also, I recently found an open source alternative to MIDAS (HyperBase) > - > and this is a gem which still needs including. Meaning that a > TClientDataset > descendent of TDataset should be written. > > As for a 'better way' than Borland did it: As long as you don't break > compatibility, please. But there is tons of DB-aware code out there > (just search Torry's pages or DSP) and it would be a shame not to be However you things are a real shame to embrace them. I just don't understand why TEdit, TDBEdit, TXXXEdit... (but maybe is that just me) and so on. Borland has just made Datalinks one step too late. Wouldn't it be easier if one component could be data-aware, simple or anything aware. Not needing to change component if you'd need a little different purpose.

Maybe, but then this would force all DB code in each and every application, even if they don't use it. This is the VB approach.

The Delphi approach is more modular and easier to understand.

Stupid component hierarchy is the main reason why all of my friends that used Btrieve can't change to anything other than that (or they ever will, but believe me they would like).

I don't see the connection.
If you use standard Delphi controls, the DB engine used has nothing to do with the GUI layer used. If you use some proprietary format type IBObjects, then you have problems of course.

At work we switched from Btrieve to Access to Interbase, without problem.

Show quoted text 6 lines
plus if you need a DB equivalent you would probably need just a name compatibility. type TDBEdit = class(TEdit); end;

The name is not the issue, of course.

And anyway for each 'big' application that has 20 or more forms, I would recommend making a private descendent of each and every control used and only use these controls. Besides being able to introduce customized behaviour, his allows you to switch to another set of underlying controls at any later time without loosing properties or methods.
One recompile should be sufficient to use the new set of controls.

Michael.

Reply by email

Unknown author

What is the simplest way to debug lazarus?

GTK2 interface is finished and it compiles without problem. Most of the interface shows up properly (at least all controls are antialiased so it has to be GTK2 :-), except that sometimes after app is almost completely drawn, app crashes.

As I debuged with gdb it crashes when applying region to DC (getmem tried to allocate really big figure of memory when calling gdk_region_intersect). But I wasn't able to figure out wich control has uninitialized ClipRegion.

Suggestions or help with debugging are welcome.

By the way, would it be possible for lazarus to check if edited file is a symlink or real file. Sometimes I edit symlinked files and lazarus overwrites them with a new file (doesn't follow symlinks).

m.

-------------------
http://www.email.si

Reply by email

Mattias Gaertner
to Unknown author
Show quoted text 13 lines
Quoting Mattias Gaertner : > On Mon, 23 Dec 2002 00:52:01 +0100 (CET) > wrote: > > > Where do I upload or should I put on one of my servers and send patch. > But > > that's not my server yet so please be gentle and download just once. > > You can send me the patch. > where? tell and it shall be done

To me personally as tgz/zip.

Show quoted text 16 lines
> > I'll do that tommorow and address and un<pw>. > > > > But it would be nice if you'd tell me few more things and I would > upload a > > decent version to start from. > > > > 1. TGdkAtom was cardinal now pointer? just corrections please. > URGENT!!! > > It is defined as > typedef struct _GdkAtom *GdkAtom; > AFAIK it was changed oktober 2001 in gtk1. > Yeah but I wasn't able to get what struct _GdkAtom is. ? ?? ????? Or am I missing something

AFAIK this is an OS dependent type. Simply ignore it.

Show quoted text 14 lines
> > 2. TGdkRegion has a record, where did you find that record, even in > Gdk > > API guide says it has only one visible var user_data: pointer > > so it should be either > > PGdkRegion = TGdkRegion; > > TGdkRegion = record > > user_data: pointer; > > end; > > This record has a different size. > It was auto translated by h2pas from gtk+/gdk/gdkregion-generic.h. > ??? funny, no file in my /usr/include with that name

It's in cvs.

Mattias

Show quoted text 39 lines
> > 3. Accelerators are thrown out, beats me, but I really don't know how > to > > handle them, some old functions have no equivalents. > > 4. All is made as I said in one of my last "maybe,... gtk2" messages, > so > > in basic, one source for gtk1 and gtk2 with conditional defines. > That's > > why I would need symlinks, same source diff makefile:-) > > I'm not sure, why you need symlinks. Probably I will understand, when I > see > your patch... > > simple one source in two places, gtk an gtk2, edit one > edit both, but now I'm editing it with mc>editor anyway > > > 5. I will post a little readme with it so you'd understand my remarks > and > > unfinished things > > 6. That's why I need another day and this answer. > > [...] > > > Mattias > m. ------------------- http://www.email.si _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Unknown author
to Mattias Gaertner: On Sun, 22 Dec 2002 22:33:07 +0100 (CET) gdb is quite simple for me. Want to have. Plz…

Quoting Marc Weustink :

Show quoted text 16 lines
At 00:52 23-12-2002 +0100, wrote: >Quoting Mattias Gaertner : > > > On Sun, 22 Dec 2002 22:33:07 +0100 (CET) > > wrote: > > > > > What is the simplest way to debug lazarus? > > > > gdb is quite simple for me. > > > >maybe you're just used to it. it's first time I tryed gdb in cli mode. >Haiiiaiiiaiii. Maybe you can try a frontend like ddd.

ThanX, downloading now.

and use the latest version (at least a 5.x version) of gdb. It "understands" pascal, so evaluations are a bit easier.

Since the same gdb is working perfectly in Lazarus I think it should not be a problem.

Show quoted text 7 lines
BTW, when using ddd, force the language to C otherwise ddd wont undersand the output. Marc

m.

-------------------
http://www.email.si

Reply by email

Unknown author
to Unknown author: I think I see what you're aiming at. I've been playing along similar lines. (Think…

Quoting

Show quoted text 8 lines
I think I see what you're aiming at. I've been playing along similar lines. (Think TEventSource instead of TBaseDataSource, to catch and react to general events.) Send me some code and I'll have a we can maintain source compatibility, no problem; I'm open to suggestions. Michael.

That's exactly what I'm aiming at:-). It would provide to use the same dialog for different purposes.
example:
Some edit dialog is connected to DBDataSource(master), ClipboardSource(slave) and XMLSource(slave). (p.s. in this case after putting these three sources app would get larger for xml, db and clip, but then again, if you wouldn't DBDataSource, db wouldn't be compiled in)
First is used for general purpose editing, second one to put entire dialog contents into clipboard and thrird let's say saves or loads a template for data. So instead of bunch of code there's only automatism provided with datasources and base (dummy if datasources aare not used) data-aware components.

I'll just rewrite my datasource so it will not compromise compatibility (now it does that seriously) and send demo. In a month (in worst case) there should be almost finished result

Benefit (as I think you get it now):
You don't need to inherit all visual components, all you do is write inherited DataSource (and that's the only one that needs rewrite) for (some new type) Data handling and job is done.

m.

-------------------
http://www.email.si

Reply by email

Mattias Gaertner
to Unknown author: What is the simplest way to debug lazarus? GTK2 interface is finished and it compiles…
Where do I upload or should I put on one of my servers and send patch. But that's not my server yet so please be gentle and download just once.

You can send me the patch.

Show quoted text 6 lines
I'll do that tommorow and address and un<pw>. But it would be nice if you'd tell me few more things and I would upload a decent version to start from. 1. TGdkAtom was cardinal now pointer? just corrections please. URGENT!!!

It is defined as
typedef struct _GdkAtom *GdkAtom;
AFAIK it was changed oktober 2001 in gtk1.

Show quoted text 7 lines
2. TGdkRegion has a record, where did you find that record, even in Gdk API guide says it has only one visible var user_data: pointer so it should be either PGdkRegion = TGdkRegion; TGdkRegion = record user_data: pointer; end;

This record has a different size.
It was auto translated by h2pas from gtk+/gdk/gdkregion-generic.h.

Show quoted text 5 lines
3. Accelerators are thrown out, beats me, but I really don't know how to handle them, some old functions have no equivalents. 4. All is made as I said in one of my last "maybe,... gtk2" messages, so in basic, one source for gtk1 and gtk2 with conditional defines. That's why I would need symlinks, same source diff makefile:-)

I'm not sure, why you need symlinks. Probably I will understand, when I see your patch...

5. I will post a little readme with it so you'd understand my remarks and unfinished things 6. That's why I need another day and this answer. [...]

Mattias

Reply by email

Unknown author
to Unknown author: Basic TDataset/TDataSource is functioning. TDataset decsendents exist for Mysql,Interbase…

Quoting

Show quoted text 37 lines
On Mon, 23 Dec 2002 wrote: > > m. > > P.S. what's with datasource and db. Since M$ seems to be buying Borland, I need > Lazarus urgently in more finished base. So if no one has done yet I'll be > available in about two weeks, but I think there is a better way to do it than > Borland did it. Basic TDataset/TDataSource is functioning. TDataset decsendents exist for Mysql,Interbase and DBase; Oracle,PostGreSQL and ODBC should be easy to add as well as we have 'plain' interfaces for them. The code is tested - rudely. I would be very happy if you could do stress-testing and communicate with me so we can fix or improve things if needed. I've started a design based on TDatabase/TTransaction/TQuery, but I haven't been able to finish that yet. I hope to start this in a month or two. Also, I recently found an open source alternative to MIDAS (HyperBase) - and this is a gem which still needs including. Meaning that a TClientDataset descendent of TDataset should be written. As for a 'better way' than Borland did it: As long as you don't break compatibility, please. But there is tons of DB-aware code out there (just search Torry's pages or DSP) and it would be a shame not to be

However you things are a real shame to embrace them. I just don't understand why TEdit, TDBEdit, TXXXEdit... (but maybe is that just me) and so on. Borland has just made Datalinks one step too late. Wouldn't it be easier if one component could be data-aware, simple or anything aware. Not needing to change component if you'd need a little different purpose. Stupid component hierarchy is the main reason why all of my friends that used Btrieve can't change to anything other than that (or they ever will, but believe me they would like).

plus if you need a DB equivalent you would probably need just a name compatibility.

type
  TDBEdit = class(TEdit);
  end;
Show quoted text 6 lines
able to use it by breaking compatibility. Plenty of work, just take a pick. :-) Michael.

I'll try to make equiv.

m.

Show quoted text 5 lines
_________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

-------------------
http://www.email.si

Reply by email

Mattias Gaertner
to Unknown author: What is the simplest way to debug lazarus? GTK2 interface is finished and it compiles…
What is the simplest way to debug lazarus?

gdb is quite simple for me.

GTK2 interface is finished and it compiles without problem. Most of the interface shows up properly (at least all controls are antialiased so it has to be GTK2 :-), except that sometimes after app is almost completely drawn, app crashes.

Want to have. Plz send me the patch, so we can all help you debugging.

Show quoted text 10 lines
As I debuged with gdb it crashes when applying region to DC (getmem tried to allocate really big figure of memory when calling gdk_region_intersect). But I wasn't able to figure out wich control has uninitialized ClipRegion. Suggestions or help with debugging are welcome. By the way, would it be possible for lazarus to check if edited file is a symlink or real file. Sometimes I edit symlinked files and lazarus overwrites them with a new file (doesn't follow symlinks).

I added it to my ToDo list.

Mattias

Reply by email

Unknown author
to Unknown author: Quoting That's exactly what I'm aiming at:-). It would provide to use the same dialog for…
Show quoted text 31 lines
Quoting > I think I see what you're aiming at. I've been playing along similar > lines. > (Think TEventSource instead of TBaseDataSource, to catch and react to > general events.) > Send me some code and I'll have a we can maintain source > compatibility, no problem; I'm open to suggestions. > > Michael. That's exactly what I'm aiming at:-). It would provide to use the same dialog for different purposes. example: Some edit dialog is connected to DBDataSource(master), ClipboardSource(slave) and XMLSource(slave). (p.s. in this case after putting these three sources app would get larger for xml, db and clip, but then again, if you wouldn't DBDataSource, db wouldn't be compiled in) First is used for general purpose editing, second one to put entire dialog contents into clipboard and thrird let's say saves or loads a template for data. So instead of bunch of code there's only automatism provided with datasources and base (dummy if datasources aare not used) data-aware components. I'll just rewrite my datasource so it will not compromise compatibility (now it does that seriously) and send demo. In a month (in worst case) there should be almost finished result Benefit (as I think you get it now): You don't need to inherit all visual components, all you do is write inherited DataSource (and that's the only one that needs rewrite) for (some new type) Data handling and job is done.

We'll see. Compatibility may be a bigger issue than you imagine, it's why I dropped this line of thinking. But maybe you found something which I didn't :-)

Michael.

Reply by email

Unknown author
to Unknown author: What is the simplest way to debug lazarus? GTK2 interface is finished and it compiles…

Quoting Mattias Gaertner :

Show quoted text 9 lines
On Mon, 23 Dec 2002 00:52:01 +0100 (CET) wrote: > Where do I upload or should I put on one of my servers and send patch. But > that's not my server yet so please be gentle and download just once. You can send me the patch.

where? tell and it shall be done

Show quoted text 14 lines
> I'll do that tommorow and address and un<pw>. > > But it would be nice if you'd tell me few more things and I would upload a > decent version to start from. > > 1. TGdkAtom was cardinal now pointer? just corrections please. URGENT!!! It is defined as typedef struct _GdkAtom *GdkAtom; AFAIK it was changed oktober 2001 in gtk1.

Yeah but I wasn't able to get what struct _GdkAtom is. ? ?? ????? Or am I missing something

Show quoted text 13 lines
> 2. TGdkRegion has a record, where did you find that record, even in Gdk > API guide says it has only one visible var user_data: pointer > so it should be either > PGdkRegion = TGdkRegion; > TGdkRegion = record > user_data: pointer; > end; This record has a different size. It was auto translated by h2pas from gtk+/gdk/gdkregion-generic.h.

??? funny, no file in my /usr/include with that name

Show quoted text 15 lines
> 3. Accelerators are thrown out, beats me, but I really don't know how to > handle them, some old functions have no equivalents. > 4. All is made as I said in one of my last "maybe,... gtk2" messages, so > in basic, one source for gtk1 and gtk2 with conditional defines. That's > why I would need symlinks, same source diff makefile:-) I'm not sure, why you need symlinks. Probably I will understand, when I see your patch...

simple one source in two places, gtk an gtk2, edit one > edit both, but now I'm editing it with mc>editor anyway

Show quoted text 10 lines
> 5. I will post a little readme with it so you'd understand my remarks and > unfinished things > 6. That's why I need another day and this answer. > [...] Mattias

m.

-------------------
http://www.email.si

Reply by email