Compiler problems


Closed Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116

    Unhappy Compiler problems

    Hi

    I am using the latest mplab, & latest micro code studio (downloaded yesterday), and version 2.4.5.0 of PBPW.EXE

    I get this message when I try to compile any program on any chip
    "fatal: out of memory (pbpw.exe)"

    It worked ok this morning, but now it wont work.

    Can anyone please help?

    Regards Bob...

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    What is your OS? XP?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default

    Hi Sayzer,

    Yes it is XP pro.

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi BobEdge,

    If you do not have a virus and you are sure; becasue viruses love dos compatible *.exe files, then I can only think of compatibility issue.

    1. Find pbpw.exe under your PBP directory.
    2. Right click it => properties => compatibility.
    3. "Check" the box where it says run this with Windows 95 compatible mode.

    But still, your problem seems that you have a virus.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Yup it could be this or
    Quote Originally Posted by Melabs Website
    Why do I get an "out of memory" error when I try to compile?

    Compiling large PicBasic Pro source code files can tax the memory of the PC running the compiler. If an Out of Memory error is issued, an alternate version of PBP can be used. PBPW.EXE has been compiled to make use of all of the memory available to Windows 95, 98, NT and 2000. You must, of course, be running in a DOS shell from one of those Windows environments or within Microchip's MPLAB. To execute the Windows version from the DOS command line, simply substitute PBPW for PBP.

    PBPW options filename
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default

    Hi guys,

    There is deffo no virus. Micro code studio is trying to use PBPW.EXE, this is what the error message says. "fatal: out of memory (pbpw.exe)"

    I cant understand why it worked this morning but not now. Nothing has been changed on the computer.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    and rebooting didn't solve the problem?

    I remind to have this problem before on another computer... i can't confirm if it was a windows installation or else..

    i'll try to dig in the forum first.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Here is the exact same problem.

    http://www.picbasic.co.uk/forum/showthread.php?t=2657

    Just as I guessed; compatibility problem: SOLVED !

    Pls check the post BobEdge.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  10. #10
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Smile

    Hi again,

    Thanks for all your help.

    I got it to work but I dont know how exactly. It was not the compatability thing tried win95, and win 2000. no joy. Reboot had no effect, re installing MC Studio had no effect. Also it was not a memory issue, system resource logging proved that.

    I saved the file on the c drive & compiled from there using MPASM, and it worked, but I have problems with MPASM, so I unchecked use MPASM, and it worked.

    So I then saved the bas file on the server, which has a very long file extension tree, with all the same settings as before, and bingo.

    Very confused about what was wrong, but at least it works now.

    Again thanks for your help
    Regards
    Bob...

  11. #11
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    OK, so i remind something about the length of the path but can't confirm the maximum allowed. 60-68 character or something like that

    I usually keep my stuff close to the root... something like c:\pbp_Prog
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  12. #12
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    OK, so i remind something about the length of the path but can't confirm the maximum allowed. 60-68 character or something like that

    I usually keep my stuff close to the root... something like c:\pbp_Prog
    One thing to watch for is "special" folders like "My Documents" which although they appear to be high level folders are already

    C:\Documents and Settings\{username}\My Documents which is 39 characters PLUS the length of your user name and thats before you start adding folders like "\pic\{projectname}\{projectfile}.bas !!!
    Keith

    www.diyha.co.uk
    www.kat5.tv

  13. #13
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default

    The puzzling thing is that sometimes it works, & sometimes not.

    The path is "\\tswsbs1\user data\bobe\my documents\proteus\proteus\da current feedback\finished programs\1200 settings.bas" which is 103 characters.

    Also it worked every time in windows 2k pro, which i was using until monday.

    Oh well some things just remain a mystery. At least I can move files to my c drive while working on them, and move them back to the server once complete.

    Thanks for all your help guys
    Regards
    Bob...

  14. #14
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    In addition to long path name issue, there is another issue to pay attention at.

    If the path has space, which is supported by MS Windows OSs but not by DOS, then you will have issues => inconsistent issues.

    That may explain why sometimes it works for you.

    For this reason the best way would be to open a project directory in root, and keep all project files in there.

    Root does not have to be C:\ drive though; D:\, E:\, F:\, G:\ etc. also ok.


    ----------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Problems with U2 programmer C30 compiled code
    By minimii in forum Off Topic
    Replies: 0
    Last Post: - 5th November 2009, 09:43
  2. PIC BASIC Compiler for ARM machines?
    By stone20008 in forum General
    Replies: 2
    Last Post: - 22nd August 2008, 07:14
  3. Compiler refuses to compile
    By CodeShredder in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 21st June 2008, 19:41
  4. compiler help!!!!
    By MINHLE in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 20th April 2008, 18:52
  5. USART problems
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 47
    Last Post: - 6th March 2005, 21:45

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts