It is currently Tue Jun 18, 2013 6:08 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Mon Mar 19, 2012 5:56 am 
Offline
User
User

Joined: Wed Feb 29, 2012 8:04 am
Posts: 97
Location: Melbourne, AUS
Thanks but as per other suggestions mentioned, even re-install is probably not worth the hassle.

Maybe it's an error that jaPBe can pick up and fix when it's creating the .exe.

If PB wouldn't even compile, I would look into it more.

This is the frustrating thing - what is different between compiling and creating the .exe ??

Neil


Top
 Profile  
 
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Mon Mar 19, 2012 7:25 pm 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2919
Location: Wales, UK
I did an experiment with the posted source thinking that maybe JapBe was using a file format slightly incompatible with PB but that looks like a red herring, though you might want to ensure the source has nothing strange hidden by saving it with a plain text editor.

It is important to get the compiler settings right when creating an executable - if for example you have Unicode set in JapBe, then it should also be selected in PB.

When you Compile and Run, PB makes a temporary exe file of course, so it is totally weird that you can do that with the original code but not even that with my simplified version.

I also note that you said "Note that jaPBe will create the .exe ok so nothing to do with virus checker.". That seems a reasonable assumption, but the heuristic testing by AV is akin to astrology - i.e. it is completely unpredictable. So, certainly you should turn-off AV and see if it is messing things up for PB. A point there is file content - the larger the files, the more likely the AV will intercept them. Also, the file names come under scrutiny by AV apps. When I was working on a plugin for a CAD-CAM program called VX, my AV app really really didn't like it. It just so happens that as well as being a CAD-CAM program, VX is a dangerous nerve gas! Not sure what the developers of the AV were thinking, but it just goes to show that your AV can mess-up things that are completely innocent.

Edit: I assume you can copy-paste one of the bigger examples from the PB Help and create an exe from that?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Mon Mar 19, 2012 7:32 pm 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2919
Location: Wales, UK
...just noticed another common denominator - it only fails to compile on days that end with 'y' :mrgreen:

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Mon Mar 19, 2012 11:06 pm 
Offline
Addict
Addict

Joined: Sat Dec 31, 2005 5:24 pm
Posts: 2970
Location: Where ya would never look.....
what is the value of #PB_Compiler_EnumerationValue ?

_________________
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.


Top
 Profile  
 
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Tue Mar 20, 2012 5:01 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2919
Location: Wales, UK
zero

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: PB IDE will compile program but won't create executable
PostPosted: Tue Mar 20, 2012 11:47 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 2267
Location: Italy
IdeasVacuum wrote:
zero


No, not really. Only if used before any enumeration.

SFSxOI wrote:
what is the value of #PB_Compiler_EnumerationValue ?


Where ? When ? It depends.

HELP wrote:
The reserved constant #PB_Compiler_EnumerationValue store the next value which will be used in the enumeration.


In the first source posted in this thread, for example, the value is 2 first and then 18.

_________________
[ Home ] [ My PC ] [ New to PB ? ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye