SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
3-rage-face.png
 

Red Squirrel

No Lifer
May 24, 2003
70,568
13,803
126
www.anyf.ca
This is the way I feel right now.

Been working on this program, everything was working fine. Second I implement the disk writing part to dump it's data, all hell breaks loose. If I comment out the part that writes to disk, It's fine... problem is, the issues are completely unrelated to the disk. so it really has me scratching my head.

Fuuuuuuuuuuuuuuuuu

Could be worse though, at least it's not a segfault that always happens at a random part of the program. Those are the worse.
 

MagnusTheBrewer

IN MEMORIAM
Jun 19, 2004
24,122
1,594
126
This is the way I feel right now.

Been working on this program, everything was working fine. Second I implement the disk writing part to dump it's data, all hell breaks loose. If I comment out the part that writes to disk, It's fine... problem is, the issues are completely unrelated to the disk. so it really has me scratching my head.

Fuuuuuuuuuuuuuuuuu

Could be worse though, at least it's not a segfault that always happens at a random part of the program. Those are the worse.

You always look at the base cases. If they're too complex or many to define, write your error handling to pinpoint the problem and work outward.
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
This is the way I feel right now.

Been working on this program, everything was working fine. Second I implement the disk writing part to dump it's data, all hell breaks loose. If I comment out the part that writes to disk, It's fine... problem is, the issues are completely unrelated to the disk. so it really has me scratching my head.

Fuuuuuuuuuuuuuuuuu

Could be worse though, at least it's not a segfault that always happens at a random part of the program. Those are the worse.

what language
 

Red Squirrel

No Lifer
May 24, 2003
70,568
13,803
126
www.anyf.ca
what language

C++.

I'm suspecting I have a bad new/delete somewhere, just need to find it. My app currently does not have a way to exit so I'm implementing that using a pid file that gets deleted. Then I'll run it through valgrind and go from there. I can ctrl+C out but that's not an accurate way to check. I'll need the pid file when I make the service start/stop script anyway.

Last night I did have a seg fault but it was always at the same spot so a bit easier to pin point than the ones that are random. Couple hours wasted on that, turned out to be something really silly, as normal. :p
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,695
4,658
75
215r3bja33.gif

I think I had one of those once.
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
C++.

I'm suspecting I have a bad new/delete somewhere, just need to find it. My app currently does not have a way to exit so I'm implementing that using a pid file that gets deleted. Then I'll run it through valgrind and go from there. I can ctrl+C out but that's not an accurate way to check. I'll need the pid file when I make the service start/stop script anyway.

Last night I did have a seg fault but it was always at the same spot so a bit easier to pin point than the ones that are random. Couple hours wasted on that, turned out to be something really silly, as normal. :p

Instead of writing to disk, write it to screen to see if that at least works as expected.
 

Red Squirrel

No Lifer
May 24, 2003
70,568
13,803
126
www.anyf.ca
Oh it does write to disk fine, but my debug outputs are all garbled and I'm getting errors (checks built into my app) that variables that should not be null are null. - they are unrelated to the process of writing data to disk, or the data itself. It's the weirdest thing. The app is actually working as it should, except for the debug output.

I just took a break, time to go at it again. It's probably something stupid that I'll kick myself for later when I find it.
 

Rhezuss

Diamond Member
Jan 31, 2006
4,118
34
91
I was raging yesterday too damn co-worker. Shittiest self-centered whining little dick i've eveer worked with FFUFFffffffffffFFFFFFFFFfffUUUUUUUUUUUUUUUUUUUUUU!!!!!!!!!!!!!!!

Hope today's better for you SagaLore!