Results 1 to 7 of 7

Thread: problem with created exe

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98

    problem with created exe

    Hello. I am having problems with the exe created by my vb app...

    I am getting the following error message:

    The C:\blah\blah\blah.exe file appears to be corrupt. Reinstall the file, and then try again.

    And another error message in a seperate box that says:

    Windows cannot run this program because it is in an invalid format

    The app is pretty large and it contains a large resource file as well.... any suggestions???

    It compiles fine and creates the exe and runs fine in design mode.
    i often feel i am parked diagonally in a parallel univers

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    i dont think vb can contain resource files over 64kb...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98
    I've had resource files over 2 megs that worked fine
    i often feel i am parked diagonally in a parallel univers

  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    What are you using to read the resource file? If you look up the function "LoadResData" ... In the Remarks section it states "The data that LoadResData loads from the resource file can be up to 64K."

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98
    The program runs fine in design mode. I have other apps I've written with .Res files well over 64K that are being used by hundreds of people with no problems.
    i often feel i am parked diagonally in a parallel univers

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by Eras3r
    What are you using to read the resource file? If you look up the function "LoadResData" ... In the Remarks section it states "The data that LoadResData loads from the resource file can be up to 64K."
    That means that the function can only return 64k of data. The whole file can contain much more.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    98
    The program runs perfectly in design mode and fully compiles.
    i often feel i am parked diagonally in a parallel univers

Posting Permissions

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



Click Here to Expand Forum to Full Width