[Done] PB Windows v4.40 - Problem with project build

Everything else that doesn't fall into one of the other PB categories.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

[Done] PB Windows v4.40 - Problem with project build

Post by byo »

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.
Proud registered Purebasic user.
Because programming should be fun.
IdeasVacuum
Always Here
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

Post by IdeasVacuum »

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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
IdeasVacuum
Always Here
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

Post by IdeasVacuum »

...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.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: PB Windows v4.40 - Problem with project build

Post by byo »

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. :/
Proud registered Purebasic user.
Because programming should be fun.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: PB Windows v4.40 - Problem with project build

Post by byo »

:oops: I'm ashamed to say that the error was on my part.
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. :oops:
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.
gnozal
PureBasic Expert
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

Post by gnozal »

byo wrote:I will make a suggestion to gnozal so he can include a error message instead of just exiting the program.
In PureFORM, the scintilla gadget is a custom gadget.
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).
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: PB Windows v4.40 - Problem with project build

Post by byo »

gnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configuration
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.
gnozal
PureBasic Expert
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

Post by gnozal »

byo wrote:
gnozal wrote:In PureFORM, the scintilla gadget is a custom gadget.
So you can edit its properties to add the initialization code you want.
Hmm... It's not working. I try to edit the line in the Custom Gadget tab in Configuration
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?
Yes, you will have to recreate the gadget, it's not retroactive.
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).
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Re: [Done] PB Windows v4.40 - Problem with project build

Post by byo »

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
Proud registered Purebasic user.
Because programming should be fun.
Post Reply