So this ended up being a combination of problems....
PckMovPaths is part of a linked list of structures that is inside of another structure. In a very specific situation the outer most structure...
Type: Posts; User: JoshNCSU22
So this ended up being a combination of problems....
PckMovPaths is part of a linked list of structures that is inside of another structure. In a very specific situation the outer most structure...
Thanks guys! I finally figured out how to reproduce the issue (I've been trying for 2 days) and I'll post back when I can find the root cause.
Maybe I exagerated there just a bit haha! It's probably not ran millions of times but it is certainly ran thousands.
Well the code is running on a HP-UX ia64 machine so it's definitely running on a 64 bit box and I didn't write this code at all so I'm not sure if it was originally written for 32 or 64 bit. This is...
Hey all,
I've got a question...
The company I work for is a Supply Chain software company and we have some old legacy code that is creating core dumps. Now I've used GDB to look at the core...
Thanks everyone! I really appreciate the advice and assistance!
Thanks for clarifying on the memory leak part. I understand now why it's leak; I didn't realize before that string literal actually was a pointer and allocated it's own memory like that. So if I...
Whoops just saw the latest posts from Elysia...let me take all that in
Sebastiani,
Just so I understand why ' hostname = "unchanged" ' is memory leak...
Is that because hostname is a pointer to char and "unchanged" is also a pointer to char, then I allocate...
Hmm ok I understand that part I think...I had initially tried to do it like this but got a compile error:
#include <stdlib.h>
#include <stdio.h>
int main(){
char* hostname =...
I'm relatively new to C and I was pretty sure I had a decent understanding of pointers and how they are used. However, I was just playing around with the concept of Pass by Reference and came across...