(PB 5.72 beta 2) Crashes regulary

Post bugs related to the IDE here
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

(PB 5.72 beta 2) Crashes regulary

Post by Cyllceaux »

Image

I'm not sure why. It happens sometimes in different projects
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: (PB 5.72 beta 2) Crashes regulary

Post by Fred »

Is it a regression ?
Cyllceaux
Enthusiast
Enthusiast
Posts: 458
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: (PB 5.72 beta 2) Crashes regulary

Post by Cyllceaux »

I can work... it happens mostly after builds. So no corrupted files.
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: (PB 5.72 beta 2) Crashes regulary

Post by Denis »

Confirm the crash Win10 PureBasic 5.72 LTS Beta 2 (Windows - x64)

Image
A+
Denis
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: (PB 5.72 beta 2) Crashes regulary

Post by BarryG »

If it's a regular crash, try it after moving your "PureBasic.prefs" file (in "%APPDATA%\PureBasic") somewhere else, so that the IDE starts with a fresh new one when you compile your app. Then report back if it still crashes.
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: (PB 5.72 beta 2) Crashes regulary

Post by Denis »

Hi BarryG,

I use a launcher that defines a different path for each project used but always linked to the C:\Users\AppData\Roaming\PureBasic\ folder, each project has its own prefs files for example :

projet LexicalAnalyzer
C:\Users\user\AppData\Roaming\PureBasic\AnalyseurLexicalResources\Lexical_Analyzer_Resources.prefs

projet Gdi+
C:\Users\AppData\Roaming\PureBasic\GdiPlus\GdiPlus.prefs

The same for tool i.e. GdiPlus_Tools.prefs for Gdi+ etc.

Each prefs file is unique and is linked only to its own project.

But at least 2 projects crash and folders are different.
A+
Denis
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: (PB 5.72 beta 2) Crashes regulary

Post by BarryG »

Denis wrote:Lexical_Analyzer_Resources.prefs
GdiPlus.prefs
Are you saying these are PureBasic IDE pref files? That's not what the IDE names them. I'm confused. So you're saying you're using a different IDE setup for every project?

There's nothing here that mentions how to change the IDE prefs file -> https://www.purebasic.com/documentation ... piler.html
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: (PB 5.72 beta 2) Crashes regulary

Post by Denis »

BarryG wrote:
Denis wrote:Lexical_Analyzer_Resources.prefs
GdiPlus.prefs
Are you saying these are PureBasic IDE pref files? That's not what the IDE names them. I'm confused. So you're saying you're using a different IDE setup for every project?
Yes, they are different PureBasic IDE Preference File .
BarryG wrote:There's nothing here that mentions how to change the IDE prefs file -> https://www.purebasic.com/documentation ... piler.html
This link is for compiler, not IDE.
Take a look to help file with 'ide line command'

Sorry, here are command from french help file
Options générales:
/VERSION affiche la version de l'IDE
/HELP ou /? affiche une description des arguments de la ligne de commande

/P <fichier Préférences> charge (et enregistre) la configuration à partir du fichier spécifié.
/T <fichier Modèle> charge (et enregistre) les modèles de code à partir du fichier spécifié.
/A <fichier outils> charge (et enregistre) la configuration des outils externes à partir du fichier spécifié.
/S <Chemin Source> change l'option "Répertoire principal" des préférences.
/E <Chemin Explorateur> démarre l'outil 'Explorateur' avec le chemin spécifié.
/L <Numéro ligne> déplace le curseur à la ligne indiquée (seulement dans le dernier fichier chargé).
/H <Base de données de l'Historique> le fichier à utiliser pour la base de données de l'historique de la session.
/NOEXT désactive l'association automatique des fichiers '.pb' dans la base de registre.
/LOCAL place tous les fichiers préférences dans le répertoire de PureBasic au lieu du répertoire personnel de l'utilisateur.
/PORTABLE combinaison de /LOCAL et de /NOEXT
In my launcher, it's done like this

Code: Select all

Global Fichier_PB_AnalyseurLexicalResources_PureBasic.s = GetUserDirectory(#PB_Directory_ProgramData)+"PureBasic\AnalyseurLexicalResources\Analyseur_Lexical_Resources.prefs"
Global Fichier_PB_AnalyseurLexicalResources_Tools.s     = GetUserDirectory(#PB_Directory_ProgramData)+"PureBasic\AnalyseurLexicalResources\Analyseur_Lexical_Resources_Tools.prefs"
and in the main loop

Code: Select all

                                          ;- _Analyseur Lexical
                                    ElseIf GetGadgetState(#OptionGadget_AnalyseurLexical)
                                          Sauvegarde_Fichier_Prefs(#OptionGadget_AnalyseurLexical)
                                          Projet$ = #DossierProjets + "AnalyseurLexicalResources.pbp"
                                          Params$  = "/P " + Fichier_PB_AnalyseurLexicalResources_PureBasic
                                          Params$  + " /A " + Fichier_PB_AnalyseurLexicalResources_Tools
                                          RepertoireCourant$  = GetPathPart(IDE$)
                                          RunProgram(IDE$, Projet$ + " " + Params$, RepertoireCourant$)
A+
Denis
Post Reply