Hi.
I'm having a problem when building the default target.
I can run the application in the PB Editor with either debug on or off.
But everytime I try to "Build Target" it creates an executable that can't be run
(that is, I can double click on it as long as I want and nothing happens).
Is there something I'm missing?
I checked the "Input Source File", "Output Executable", and "Windows" is set as the executable format.
Thanks a lot.
[Done] PB Windows v4.40 - Problem with project build
[Done] PB Windows v4.40 - Problem with project build
Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PB Windows v4.40 - Problem with project build
Hello byo
I assume that you have used earlier versions of PB and didn't have a problem creating exe files? Has something else changed on your PC recently? Anti Virus software? Change of OS? When you try to run the exe you just created, it has not been formally installed (not in the registry, not listed in add-remove programs). Some AV apps have a problem with that.
I assume that you have used earlier versions of PB and didn't have a problem creating exe files? Has something else changed on your PC recently? Anti Virus software? Change of OS? When you try to run the exe you just created, it has not been formally installed (not in the registry, not listed in add-remove programs). Some AV apps have a problem with that.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: PB Windows v4.40 - Problem with project build
...another thought. You can have the compiler save a temporary exe in your source folder. Can you run that one with a double click?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: PB Windows v4.40 - Problem with project build
Thanks a lot. 
I will try that although I have tried everything I can and I have a deadline I probably won't meet.
The strangest thing is that the application runs from the IDE but not when built. :/
I will try that although I have tried everything I can and I have a deadline I probably won't meet.
The strangest thing is that the application runs from the IDE but not when built. :/
Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
Re: PB Windows v4.40 - Problem with project build
Since I was creating the form with gonozal's amazing PureFORM, I wasn't taking notice of the code generated.
I was just saving the form code to a separate file.
Now I see that I was using the Scintilla gadget and PureFORM generates a code that checks for the SCINTILLA.DLL and if not available the program will end silently.
Sorry for that.
I will make a suggestion to gnozal so he can include a error message instead of just exiting the program.
Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PB Windows v4.40 - Problem with project build
In PureFORM, the scintilla gadget is a custom gadget.byo wrote:I will make a suggestion to gnozal so he can include a error message instead of just exiting the program.
So you can edit its properties to add the initialization code you want.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: PB Windows v4.40 - Problem with project build
Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configurationgnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
but my initialization code is the same before the modification. Note: my gadget was already
created in the form.
Does this only work for new created gadgets?
Thanks for this amazing software.
Regards,
Andre
Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: PB Windows v4.40 - Problem with project build
Yes, you will have to recreate the gadget, it's not retroactive.byo wrote:Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configurationgnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
but my initialization code is the same before the modification. Note: my gadget was already
created in the form.
Does this only work for new created gadgets?
When you add a custom gadget to your form, all the current custom gadget settings are also added, so the .pbf file is not dependent on the preferences.
You could also edit the .pbf file (a bit tricky, but it's plain text) : find the initialization code and replace it with some other code.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: [Done] PB Windows v4.40 - Problem with project build
Thank you, gnozal.
I will do that because I can't just delete the gadget at this point.
Keep up the good work.
Regards,
Andre
I will do that because I can't just delete the gadget at this point.
Keep up the good work.
Regards,
Andre
Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
