Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

error just happens

Name: Anonymous 2009-04-26 16:48

printf("reading input image ... \n");
   
    /*unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type);
    */
   
    printf("hello.jpg");
    printf("image read successfully \n");
    printf("rows=%d, cols=%d, type=%d \n", unidata.rows, unidata.cols, type);
    /* error here*/
    printf("well");

the errors are coming between  the two final printf statements. when the read_pnm() is left uncommented it is a segmentation fault, when commented it is a floating point exception.

what the fucking shit, /prog/?

Name: Anonymous 2009-04-26 16:57

BUFFERING

Name: Anonymous 2009-04-26 17:00

Not you again.

Name: Anonymous 2009-04-26 17:02

Stop trying to program things if you don't know how.

Name: Anonymous 2009-04-26 17:04

shit, i forgot that /prog/ was full of idiot trolls who don't actually know anything. i guess i should got to daniweb or somewhere else. thank for trying anyway, /prog/

Name: Anonymous 2009-04-26 17:05

>>5
got to daniweb
Please do.

Name: Anonymous 2009-04-26 17:09

>>5
shit, i forgot that /prog/ was full of idiot trolls who don't actually know anything.
You forgot you post here?

Name: Anonymous 2009-04-26 17:18

>>7
SEPPLES YHBT EMACS SUSSMAN IT'S A GODAWFUL SMALL AFFAIR

the only sentiment i share is, FTFY

Name: Anonymous 2009-04-26 17:22

>>8
FTFY
Fuck Trolls and Fuck You?

Name: Anonymous 2009-04-26 17:26

>>9
NYJMUA

Name: Anonymous 2009-04-26 17:38

>>2
could you explain further?

Name: Anonymous 2009-04-26 17:41

>>10
Shouldn't that technically be NYJMUB ?

Name: Anonymous 2009-04-26 17:45

>when commented it is a floating point exception
The structure is full of uninitialized junk

>uncommented it is a segmentation fault,
The read function is buggy puts different junk into the structure

Name: Anonymous 2009-04-26 17:51

>>13
Exception: PostQuoteError

Name: Anonymous 2009-04-26 17:59

>>13
the read function itself works fine, but it may indeed be a problem with that line. i am trying to fill an array in the structure, it should work as far as i can tell? i will experiment some more with that (i think it may be because i am actually tripling up the pointer?)

i don't get how the structure being full of uninitialized junk would matter unless i was doing something with it (which i'm not, it's just crashing).

Name: Anonymous 2009-04-26 18:01

Go away.

Name: Anonymous 2009-04-26 18:21

>>14
Exception: ExceptionDescriptionError

Name: Anonymous 2009-04-26 18:40

throw newGrunnurException()

Name: Anonymous 2009-04-26 18:44

unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type);
 
(image_ptr*)

Hmm, seems familiar...

Name: Anonymous 2009-04-26 19:15

(image_ptr*)
EXPERT HUNGARIAN NOTATION USER

Name: Anonymous 2009-04-26 19:32

EXPERT HUNGARIAN

They happen to be hungry.

Name: Anonymous 2009-04-26 20:48

it suddenly started working for no apparent reason. huzzah!

Name: Anonymous 2009-04-26 20:54

``working''

Name: Anonymous 2009-04-26 20:58

>>23
RFEAQGUGIORTE SQ UFOETWEESR

Version 2.0, released under the Noncommercial Creative Commons License.

Name: ZIPWITH MEME DETRACTOR 2009-04-26 21:09

>>24
Proper quotes
FTFY YHBT&YHBMT HAND.

Name: ​​​​​​​​​​ 2010-09-07 19:10

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Don't change these.
Name: Email:
Entire Thread Thread List