Developing in XP X64

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Jonathan Hunt
    Member
    • Jul 2009
    • 2

    Developing in XP X64

    Hi, I've been trying to develop Applications in PBWin 9.01 in XP X64. The applications work fine from the IDE, and will debug, but the complied EXEs crash upon external execution. The complied samples included work perfectly though. When I compare my complied EXEs to the compiled sample EXEs, there are some minor byte differences, I assume something the compiler chose to do differently.

    Am I doing somthing wrong here?

    Thanks!
  • Gösta H. Lovgren-2
    Member
    • Sep 2002
    • 3238

    #2
    Originally posted by Jonathan Hunt View Post
    Hi, I've been trying to develop Applications in PBWin 9.01 in XP X64. The applications work fine from the IDE, and will debug, but the complied EXEs crash upon external execution. The complied samples included work perfectly though. When I compare my complied EXEs to the compiled sample EXEs, there are some minor byte differences, I assume something the compiler chose to do differently.

    Am I doing somthing wrong here?

    Thanks!
    The best way to get answers here, Jonathon, is to post the code.

    =========================
    Never be entirely idle;
    but either be reading,
    or writing,
    or praying
    or meditating
    or endeavoring something
    for the public good.
    Thomas a Kempis
    =========================
    It's a pretty day. I hope you enjoy it.

    Gösta

    JWAM: (Quit Smoking): http://www.SwedesDock.com/smoking
    LDN - A Miracle Drug: http://www.SwedesDock.com/LDN/

    Comment

    • Carlo Pagani
      Member
      • Jul 1999
      • 363

      #3
      Put #DEBUG DISPLAY ON at the top of your program and try again.

      Comment

      • Jonathan Hunt
        Member
        • Jul 2009
        • 2

        #4
        Originally posted by Carlo Pagani View Post
        Put #DEBUG DISPLAY ON at the top of your program and try again.
        Wow.. that worked.. it made the app compile and execute internally and externally just fine. The question now is why do I have to have that included? I read in the help file what it does, it seems to handle trapped errors.. but this program can't generate an error - its too simple code wise..

        Solution in hand - any idea on the cause?

        The code was this, just the Hello.Bas sample included with PB:
        '-------------------------------------------------------------------------------
        '
        ' HELLO.BAS example for PowerBASIC for Windows
        ' Copyright (c) 1997-2005 PowerBASIC, Inc.
        ' All Rights Reserved.
        '
        '-------------------------------------------------------------------------------

        #COMPILER PBWIN 9
        #COMPILE EXE
        #DEBUG DISPLAY ON

        ' The resource file gives the EXE program the "hello" icon in Explorer,
        ' and provides it with Windows version information.
        #RESOURCE "Hello.pbr"

        FUNCTION PBMAIN () AS LONG

        MSGBOX "Hello, World!"

        END FUNCTION

        Comment

        • Carlo Pagani
          Member
          • Jul 1999
          • 363

          #5
          Hi Jonathan

          That program should work just fine. At least it does under Windows 7 X64 with or without the #DEBUG DISPLAY ON

          I thought you may have had an undefined variable or other scoping issue which the above line would have helped you identify. Try remove the resource line and see if you still get the error, in which case the problem is in the resource file.

          Comment

          Working...
          X