Problem with running program generated by 1.6.2 (resource not found)

Problem with running program generated by 1.6.2 (resource not found)

Post by Brian Cla » Mon, 22 Jul 1996 04:00:00





>I made a few chaanges to my code (adding some files, changing
>appropriate lines) using 1.6.2, and compiled everything successfully;
>however, when I went to run the program, I got a
>"Cannot run program, resource not found".  The Finder verifies this
>(a -192 error when I try to run it).  This is before the de*
>can even do anything about it (that it, it doesn't seem to  be a code
>error, but a startup problem).  

Let me guess -- you're running 7.5.3, right?

I've seen this happen again and again when running 7.5.3. During
compilation the resource map of the file being compiled gets screwed up.
What I typically get is a "not enough memory to run" error. Doing a Get
Info on the compiled app shows ridiculous numbers for the app's minimum
and suggested size. Opening up the app in ResEdit or Resorcerer shows that
various resources have erroneous sizes. Trashing and recompiling never
works. The only solution is to restart the Mac. The problem then may not
come back for a few hours or a day or two of compilation. Then it's back
with a vengence.

Going back to 7.5.1 completely cures the problem.

The other problem reports with resource forks and 7.5.3 that I've seen
have all involved people running the Iomega Zip drive extension. That's
not the case on my machine, which has FWB HDT 1.8S on all disks (no mixed
disk drivers either, another commonly rumored source of problems with
7.5.3) I also don't experience problems with any program other than
CodeWarrior (which means I don't suffer from the often reported problem
with Stuffit Expander on 7.5.3).

I reported this problem right after 7.5.3 was released. It has not been
fixed in any of the 1.6 updates. The only solution I've found is to run
7.5.1 when doing program development. Under 7.5.1 CW is 100% stable. Under
7.5.3 I get the resource file problem, and the occasional bomb.

--
Mary Stewart on usenet:
wisdom dragged at mockery's chariot wheels

For a good time, visit http://www.veryComputer.com/

 
 
 

Problem with running program generated by 1.6.2 (resource not found)

Post by Michael K. Neyl » Mon, 22 Jul 1996 04:00:00


I made a few chaanges to my code (adding some files, changing
appropriate lines) using 1.6.2, and compiled everything successfully;
however, when I went to run the program, I got a
"Cannot run program, resource not found".  The Finder verifies this
(a -192 error when I try to run it).  This is before the de*
can even do anything about it (that it, it doesn't seem to  be a code
error, but a startup problem).  

Taking the made file into ResEdit caused ResEdit to yell about
a corrupted file; it could only recover a handful of the resources in
the file.  Norton verifies this, but does not report anything else
seriously wrong with the drive that this project and program runs on.

I recompiled after removing binaries twice, to two different filenames,
but same result.

This problem just suddenly arose; there have been no changes to my
system folder or the like between the last time the project file
was used and now.  

Can anyone help?  

--
Michael K. Neylon, UM ChE Grad | "Look! Every time I move my arm, it

A!, PatB, F!, MST, ST, DW      |  Look!...$42...$84..." - SGC2C
        http://www.veryComputer.com/~mneylon

 
 
 

Problem with running program generated by 1.6.2 (resource not found)

Post by Harold Ekstr » Tue, 23 Jul 1996 04:00:00




 >
 >>I made a few chaanges to my code (adding some files, changing
 >>appropriate lines) using 1.6.2, and compiled everything successfully;
 >>however, when I went to run the program, I got a
 >>"Cannot run program, resource not found".  The Finder verifies this
 >>(a -192 error when I try to run it).  This is before the de*
 >>can even do anything about it (that it, it doesn't seem to  be a code
 >>error, but a startup problem).  
 >
 >Let me guess -- you're running 7.5.3, right?
 >
 >I've seen this happen again and again when running 7.5.3. During
 >compilation the resource map of the file being compiled gets screwed up.
 >What I typically get is a "not enough memory to run" error. Doing a Get
 >Info on the compiled app shows ridiculous numbers for the app's minimum
 >and suggested size. Opening up the app in ResEdit or Resorcerer shows that
 >various resources have erroneous sizes. Trashing and recompiling never
 >works. The only solution is to restart the Mac. The problem then may not
 >come back for a few hours or a day or two of compilation. Then it's back
 >with a vengence.
 >
 >Going back to 7.5.1 completely cures the problem.
 >[SNIP]

I had this exact same problem and updating my hard disk driver cured it. I
was using an older version of Silver Lining. When I updated to the latest
version the problem disappeared.

-Harold

--------------------------------------------------------------
Harold Ekstrom
the ag group, inc.
<ftp://ftp.aggroup.com/>
<http://www.veryComputer.com/;

 
 
 

Problem with running program generated by 1.6.2 (resource not found)

Post by Michael K. Neyl » Tue, 23 Jul 1996 04:00:00



Quote:>I made a few chaanges to my code (adding some files, changing
>appropriate lines) using 1.6.2, and compiled everything successfully;
>however, when I went to run the program, I got a
>"Cannot run program, resource not found".  The Finder verifies this
>(a -192 error when I try to run it).  This is before the de*
>can even do anything about it (that it, it doesn't seem to  be a code
>error, but a startup problem).  

Thanks for the responses; I finally fixed it.  Although Norton
didn't report anything serious with any of the files involved with
the project, when I rebuilt the desktop, everything returned to
normal.  Go fig.

--
Michael K. Neylon, UM ChE Grad | "Look! Every time I move my arm, it

A!, PatB, F!, MST, ST, DW      |  Look!...$42...$84..." - SGC2C
        http://www.veryComputer.com/~mneylon

 
 
 

Problem with running program generated by 1.6.2 (resource not found)

Post by Peter Mar » Sat, 27 Jul 1996 04:00:00


I've had exactly this problem from time to time for some time (Even CW8).
When I build a 68k version of my App and then have a look in Resourcerer
at the CODE resources the CODE resource with ID 0 appears to be some
amazing size.

Resourcerer also spits the dummy to some extent, apologising for internal
errors etc.

Deleting the executable file, removing objects, and re-making doesn't seem
to help, but re-starting my Mac before re-making seems to fix the problem,
so presumably the MW linker is trashing something in the system around the
time it's generating the startup code in CODE 0.

I've never been able to reproduce this enough to report a bug, and frankly
I suspected it was some problem with my system.

Peter



> On 21 Jul 1996 14:01:19 GMT, Michael K. Neylon

> >I made a few chaanges to my code (adding some files, changing
> >appropriate lines) using 1.6.2, and compiled everything successfully;
> >however, when I went to run the program, I got a
> >"Cannot run program, resource not found".  The Finder verifies this
> >(a -192 error when I try to run it).  This is before the de*
> >can even do anything about it (that it, it doesn't seem to  be a code
> >error, but a startup problem).  

> Thanks for the responses; I finally fixed it.  Although Norton
> didn't report anything serious with any of the files involved with
> the project, when I rebuilt the desktop, everything returned to
> normal.  Go fig.

 
 
 

Problem with running program generated by 1.6.2 (resource not found)

Post by John C. Da » Sat, 27 Jul 1996 04:00:00




> I've had exactly this problem from time to time for some time (Even CW8).
> When I build a 68k version of my App and then have a look in Resourcerer
> at the CODE resources the CODE resource with ID 0 appears to be some
> amazing size.

> Resourcerer also spits the dummy to some extent, apologising for internal
> errors etc.

> Deleting the executable file, removing objects, and re-making doesn't seem
> to help, but re-starting my Mac before re-making seems to fix the problem,
> so presumably the MW linker is trashing something in the system around the
> time it's generating the startup code in CODE 0.

> I've never been able to reproduce this enough to report a bug, and frankly
> I suspected it was some problem with my system.

> Peter



> > On 21 Jul 1996 14:01:19 GMT, Michael K. Neylon

> > >I made a few chaanges to my code (adding some files, changing
> > >appropriate lines) using 1.6.2, and compiled everything successfully;
> > >however, when I went to run the program, I got a
> > >"Cannot run program, resource not found".  The Finder verifies this
> > >(a -192 error when I try to run it).  This is before the de*
> > >can even do anything about it (that it, it doesn't seem to  be a code
> > >error, but a startup problem).  

> > Thanks for the responses; I finally fixed it.  Although Norton
> > didn't report anything serious with any of the files involved with
> > the project, when I rebuilt the desktop, everything returned to
> > normal.  Go fig.

I've seen a lot of reports about this, and many of the times it has turned
out to be related to the system itself.

You might want to run something like Norton's Disk Doctor on your drives,
zap your PRAM, rebuild your desktop (and a good clean rebuild, like with
TechTool...cause if your desktop is fubar, cmd-opt will keep it fubar).

maybe even consider doing a CLEAN reinstall of your system software
(tho try to leave this as a final possibility).

you also might want to make sure that your disk drivers are working and
up to date.  compatable with SCSI Manager 4.3 (might not directly be
the issue, but can't hurt to  have it anyways), you're careful about
having blind writes on or off (especially if you've upgraded your
processor in some way), etc etc.

just be sure EVERYTHING is up to date and in working order...that's
about the best you can do.

Someone told me that CodeWarrior tends to act like a canary in a mine
shaft.  If you start to see really funky problems while using CodeWarrior
(and they are not a bug with/in CodeWarrior), then it's probably a good
forewarning to you that something is amiss in your system and sooner or
later, it'll manifest itself in other, more painful ways.

--

Family Man               | Business:   none of your business :)
Shareware Author         | WWW:        <http://www.veryComputer.com/~hsoi/>
MacOS Developer/Geek     | "What lasagna? THAT lasagna" - Ajax

NOTE: My email address and WWW URL are new!  Please update your
references.

 
 
 

1. (Novice question) Sample C++ program won't run... can't find library

Dear All,

    I tried opening a new project using C++ stationery, and selected 'Std
C++ Console PPC (DLL)'. When I try to run the sample 'HelloWorld' program
the project is created with, I'm told that CodeWarrior 'Couldn1t find
project file 3MSL C++.PPC.DLL2.' I've just installed the CWP 5.2 update, and
was wondering if my libraries have been altered? I can't seem to find
anything about changes to this particulr library in the release notes.
    Any help you can give would be appreciated. Thanks.

Samuel

2. Ship Dynamics Model

3. "command not found" trying to run console app built with codewarrior

4. Duodisk analog boards: are all versions interchangeable?

5. CW2Pro Linked Program Will Not Run or Debug

6. mail filter vs input mail filter

7. 7.6 (THIS PROGRAM DOES NOT RUN ON THIS COMPUTER MODEL)

8. Need Tape Backup Advice? Kindly Respond...

9. "Resource Not Found" in CW8

10. Resource for app form 1000 not found

11. Runs in THINK C but not CW (still not working 100%)

12. Problem running simple programs on powerbooks

13. Problem with running a Java program