Search found 88 matches

by wallyg
Oct 29, 2010 20:55
Forum: Projects
Topic: GTK+tobac (Glade3 to FB code sketcher, GtkBuilder/libglade)
Replies: 42
Views: 11219

Question on FreeBasic warning and GTK+ 2.2

I have an involved glade 3.6.7 designed window and your 2.2.2 conversion. I wanted to search a vbox which contains 18 entries by default to see if a specific button existed. After playing with different code, I reduced the problem to the following Sub GtkCallback1(g1 As GtkWidget PTR, s1 As gpoi...
by wallyg
Oct 10, 2010 18:32
Forum: General
Topic: Question on losing memory when using strings / zstrings
Replies: 6
Views: 710

function abc(ByRef pzstrArg as Zstring Ptr,...) as Zstring Ptr dim pzstrA as Zstring ptr dim strB as String ..... if (...) then pzstrA = pzstrArg elseif (...) then strB = calculations & calculations..... pzstrA = StrPtr(strB) Elseif (...) then strB = &quo...
by wallyg
Oct 08, 2010 22:03
Forum: General
Topic: Question on losing memory when using strings / zstrings
Replies: 6
Views: 710

I appreciate your input, but that answer seems to simple. Maybe I am overthinking this. Suspose a function returns an address to a string (Zstring PTR) created by the system ie. the string created by the RETURN (StringA & StringB) or the value of an internal variable that goes away when the func...
by wallyg
Oct 08, 2010 20:31
Forum: General
Topic: Question on losing memory when using strings / zstrings
Replies: 6
Views: 710

Question on losing memory when using strings / zstrings

My question is am I responsible for returning memory in the following cases or does the system somehow return it instead. Function abc(...) as zstring ptr Dim a as string Dim b as string Dim c as string Dim z as ZString Ptr ... if (...) then Return strptr("abc") els...
by wallyg
Aug 12, 2009 16:48
Forum: Libraries
Topic: Portable GUI toolkit (IUP) version 3.0 (RC2)
Replies: 50
Views: 23452

Re: IUP

using iup.dll I'm going to replace the current package with a package containing static libraries and updated examples/updated .bi files. Using the new package should solve the problems. Do you have an estimated time frame? I have tried the suggestions in the post(s) and it compiles ok but when I t...
by wallyg
Jul 05, 2009 22:08
Forum: Beginners
Topic: Proper way to stop memory leak
Replies: 5
Views: 783

Proper way to stop memory leak

I have a type definition Type Person dim as string PersonName ... Declare Destructor End Type The question is: What is the proper way to not lose track of the memory used for the storage of the String variable in the Destructor. I assume the default Destructor reclaims the memory used by the string ...
by wallyg
May 29, 2009 23:36
Forum: General
Topic: Complex macros
Replies: 8
Views: 1060

Complex Macros

Thank you for your help. It seems the error is caused by the placement of the symbol __Line__ immediately after the ## in the macro definition. In your case I think the __Line__ is replace by a sequence of digits prior to being placed next to the ## as a replacement for the parameter "ln", and then ...
by wallyg
May 29, 2009 21:04
Forum: General
Topic: Complex macros
Replies: 8
Views: 1060

Complex Macros

Thank you all for your suggestions. The "asm" comments generate nothing in the .asm file. the -g -R does not put any of the #Define statements in the .asm file. The #print with a -maxerr of 2 works. without the -maxerr option, the compiler gets into an infinite loop complaining about the same unreas...
by wallyg
May 29, 2009 8:49
Forum: General
Topic: Complex macros
Replies: 8
Views: 1060

Complex Macros

Thanks for the suggestion. Problem is that there are a lot of errors and the compiler thankfully stops after so many of them. Its just difficult when the error is 3 or 4 levels of macro calls to try and match the error with the macro definition.
by wallyg
May 29, 2009 6:23
Forum: General
Topic: Complex macros
Replies: 8
Views: 1060

Complex macros

I am putting together a set of complex macros which use concatenation (##) to generate uniquenames plus a bunch of other stuff. My question is "Can I get a listing of the preprocessed expanded basic to debug these macros?" ie. I want to see what the macro expanded to in order to debug it. I did not ...
by wallyg
May 09, 2009 8:49
Forum: Libraries
Topic: GTK updated headers
Replies: 4
Views: 1193

Thanks for the suggestions. I am playing with adding definitions for the functions I need and I think I am beginning to understand the problems involved and getting some stuff to work.

I will keep watch in the forums for anyone doing a complete job.

Thanks again.
by wallyg
May 08, 2009 7:56
Forum: Libraries
Topic: GTK updated headers
Replies: 4
Views: 1193

Thanks for the quick response

That is what the problem is. I have studied the GTK documentation quite extensively and wrote up a program and found that about 15 different functions were undefined and tracked it down to the functions I wanted to use were post 2.6.1 GTK. With the large number of data structures in GTK, how I do I ...
by wallyg
May 08, 2009 7:16
Forum: Libraries
Topic: GTK updated headers
Replies: 4
Views: 1193

GTK updated headers

I recently found out about FreeBASIC and have tried it out and like what I see. In order to learn the language, I have started to write a program using GTK and was having some problems. I have straighted out the dll problems but have traced my latest problem to the fact that the included headers wit...

Go to advanced search