Page 1 of 1

Problems on new release 4.0 Purebasic

Posted: Sat May 13, 2006 4:30 pm
by CapitanAmerica
:cry: Kind Fred, I installed the version 4.0 of the Purebasic and with large displease I saw that several instructions were changed. So heavily I should change all of the programs already developed. (Thanks a lot!!) :evil:
I understand that to improve the compiler, but because to change also instructions of base like OPENWINDOW, FRONTCOLOR, LOCATE, DRAWTEXT, CLEARSCREEN ecc..?

Finally the thing more important. I had developed a procedure for the addition of objects to a LinkedList, that in the previous version (3.94) worked perfectly. Now it seems that any operation with the LinkedList to the inside of a procedure not functions. (Thanks a lot!!) :evil:

I will be you grateful for a reminder answered.
Best Regards.

Posted: Sat May 13, 2006 4:37 pm
by Dare2
On the last point, stick a "Global " in front of your linked list.

On the others, there is, in announcements, a converter which may help.

In general, IMO, the changes are for the better and worth it. Stick with 3.94 for old stuff and use 4.00 for new.

Hi, and welcome to the boards. :)

Posted: Sat May 13, 2006 4:43 pm
by Edwin Knoppert
I have sympathy with Fred, better understand v4 is an improved version to v3.xx, i would be pleased.

Posted: Sat May 13, 2006 4:47 pm
by Fred
Just don't upgrade if you are not happy, there is a link to PureBasic 3.94 in the private area, just below the 4.0 one if you haven't spotted it.

Posted: Sat May 13, 2006 4:49 pm
by Kale
Kind Fred, I installed the version 4.0 of the Purebasic and with large displease I saw that several instructions were changed. So heavily I should change all of the programs already developed. (Thanks a lot!!)
Why do people always insist of re-compiling already developed programs? If you need to keep updating your software then keep that version of PB installed. Anyway, converting code to v4 is no hassle whatsoever!
Finally the thing more important. I had developed a procedure for the addition of objects to a LinkedList, that in the previous version (3.94) worked perfectly. Now it seems that any operation with the LinkedList to the inside of a procedure not functions. (Thanks a lot!!)
Whats the bet that you were dealing with the internals of PB and how it handles lists. You should never do this as they are not documented and are likely to change in future versions, as you have found out.

Posted: Sat May 13, 2006 5:14 pm
by CapitanAmerica
:D :D :D I thank you a lot DARE2 for the yours concrete help and for the precious advice. I did not want to seem bound to the previous version, if there are some enhancement, are appreciated. Only, I would not want to have for every program realized a different version of the compiler Purebasic.

Posted: Sat May 13, 2006 5:52 pm
by Nik
Well every change Fred did was needed, and I like it a lot more to change 1000 program lines getting a better program, more speed and more consistency than having the same als stuff...

Posted: Mon May 15, 2006 10:27 pm
by Rescator
PB 4 was a special situation as well! Biggest upgrade (rather than a update) in years.
PB 4.1 and onwards will hae much less dramatic changes to current functions,
there will probably be lots of enhancements but no megachanges like openwindow etc. So don't worry :)

Posted: Tue May 16, 2006 6:05 am
by sgsong
There is a source code converter that convert v.3.94 source to v.4. Take a look at this: http://www.purebasic.fr/english/viewtop ... econverter in case in you don't know.