Search found 84 matches

by wallyg
Sep 19, 2018 20:00
Forum: General
Topic: How much information about a type is remembered at runtime?
Replies: 11
Views: 216

Re: How much information about a type is remembered at runtime?

I appreciate the information. I will read these together with studing the above example to help me understand the concepts better and apply them to my project.

Thanks again
by wallyg
Sep 17, 2018 23:41
Forum: General
Topic: How much information about a type is remembered at runtime?
Replies: 11
Views: 216

Re: How much information about a type is remembered at runtime?

Thank you for your help. I will study this and apply its principles to my needs. I appreciate your help.
by wallyg
Sep 17, 2018 21:50
Forum: General
Topic: How much information about a type is remembered at runtime?
Replies: 11
Views: 216

Re: How much information about a type is remembered at runtime?

Thank you.

I have not done anything like that before, so I will go back to the FB manual and try to work out how that works. Is there any other documents that go into more detail than the current standard FB manual?
by wallyg
Sep 17, 2018 21:12
Forum: General
Topic: How much information about a type is remembered at runtime?
Replies: 11
Views: 216

Re: How much information about a type is remembered at runtime?

Third question. Is there some way I can declare a variable "ObjType" in type OBJ that contains a FreeBasic type. So that I can store the type Car into it during the execution of the constructor for Car. Then in a routine declared in ObjI can cast the Obj pointer @This to a Car pointer If ...
by wallyg
Sep 16, 2018 21:42
Forum: General
Topic: How much information about a type is remembered at runtime?
Replies: 11
Views: 216

How much information about a type is remembered at runtime?

I have the following type definitions and code type Obj as ushort ObjType ' Type of this object ( 1- 317 see ObjTypes.xxx) as ushort RefCount ' Number of references to this object ... declare sub ReduceRefCount(n as long) ... end type type Car Extends Obj as Ulong Color as string Make ... declare fu...
by wallyg
Jun 01, 2018 6:02
Forum: General
Topic: Losing memory because of String usage
Replies: 21
Views: 580

Re: Losing memory because of String usage

Thank you all for trying to help. However given that this is a very large program almost 200,000 lines long and the best part is that it is working correctly. I do not want to make wholesale changes to my nearly 50 year programming style. I asked a simple question ( I am sorry I gave an overly simpl...
by wallyg
May 31, 2018 20:51
Forum: General
Topic: Losing memory because of String usage
Replies: 21
Views: 580

Re: Losing memory because of String usage

Thank you for your response. I have never looked into polymorphism or virtual functions. And overriding the destructor is something I need to think about. This was just a simple example. I have some structures that are many extend levels deep and trying to override and take care of the consequences ...
by wallyg
May 31, 2018 17:54
Forum: General
Topic: Losing memory because of String usage
Replies: 21
Views: 580

Losing memory because of String usage

As my program was running, I noticed the amount of memory used kept going up. After a long time tracing down all "Allocate" memory usage and fixing the holes, it still kept going up. I think I have tracked it down to the following situation. type xyz1 extends sysObject ... As String name ....
by wallyg
May 20, 2018 23:02
Forum: Libraries
Topic: Problem with GTK and new machine
Replies: 8
Views: 526

Re: Problem with GTK and new machine - RESOLVED

I have reloaded everything from scratch. Reinstalled GTK 3.22 via MSYS2 (32 bit version). Putting the def & lib directories on the path statement worked in the GTK 2 days and early 3.x days (years and years ago). It does not work for 3.22, I get the list of errors as described in the start of th...
by wallyg
May 20, 2018 22:38
Forum: Libraries
Topic: GladeToBac question
Replies: 8
Views: 443

Re: GladeToBac question

You obviously do not know how GladeToBac works. The code it generates uses GTKBUILDER. It is the auxiliary things it does to supplement GTKBUILDER that is why it is a great program to use. It reduces my work by 70%+ and most importantly my error rate by at least that much. And yes GTKBUILDER is a gr...
by wallyg
May 20, 2018 22:33
Forum: Libraries
Topic: GladeToBac question
Replies: 8
Views: 443

Re: GladeToBac question

for the signal button_release, GladeToBac generates a prototype with two args (widget,user-data) the documentation says 3 args (widget,gdkevent,user_data). If one signal prototype is wrong, how many others that I have not looked into in detail are wrong. The entire set of signals need to be checked ...
by wallyg
May 20, 2018 17:17
Forum: Libraries
Topic: GladeToBac question
Replies: 8
Views: 443

Re: GladeToBac question

Yes it looks like GTK 3.0. The world is up to 3.22 and many many changes have been made and the definitions in GladeToBac are wrong in places for current system. I think it reflects GTK as it was in 2012.

Wally
by wallyg
May 20, 2018 7:57
Forum: Libraries
Topic: GladeToBac question
Replies: 8
Views: 443

Re: GladeToBac question

GladeToBac has used this method for as long as I have used it. It however also automatically generates declarations for each widget so that you can reference that widget in your source code with out having to change your declarations every thing you add/subtract widgets from your model. It also auto...
by wallyg
May 19, 2018 20:43
Forum: Libraries
Topic: GladeToBac question
Replies: 8
Views: 443

GladeToBac question

I was just wondering if GladeToBac will ever be updated to meet the new GTK versions. The version that I got from the download site has some signal processors with the wrong argument lists (widget - button press is generated with two arguments, but documentation specifies 3 as an example). Thanks Wa...
by wallyg
May 19, 2018 20:39
Forum: Libraries
Topic: Problem with GTK and new machine
Replies: 8
Views: 526

Re: Problem with GTK and new machine

Finally I got GTK 3.22 (the latest version) to work properly??? The program seems to work. Some routines are not in the gtk.bi that comes with the standard FB download (it is 3.16) - not unexpected since FB has not been updated for way over 2 years. I made so many changes, updates, reloads, ... I am...

Go to advanced search