Skip to content

It will exit immediately after runnning code. #1

@i12o

Description

@i12o

Not knowing your repository, I recently read that paper and OCRed the report.
I had trouble in my scanned and edited code, and I found your repository.
With your code, I found invalid line in my scaned code. Now it's working correctly.
Many thanks for your work.

But I guess that orignal code have an error in initialize() function.
After malloc scrapfirst, it checks (*scrapfirst).pos before it initialized.
So binpack always exit with message "Insufficient memory available".

It might depend on OS, compiler, but I believe the line should be

if (scrapfirst == NULL) {
printf("Insufficient memory available\n");
exit(1);
}

Anyway, thank you for your code!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions