Menu

#51 strncmp(header.fileSignature, "ASTM-E57")) generate error

open
nobody
None
1
2019-08-02
2019-07-03
Raph Schim
No

Hi!,
I followed the tutorial on libe57.org on how to create a new file.
But when I do so, I can't open the file afterward. The problem come from the line 3889 from E57FundationImpl :

   if (strncmp(header.fileSignature, "ASTM-E57", 8) != 0)
        throw E57_EXCEPTION2(E57_ERROR_BAD_FILE_SIGNATURE, "fileName="+file->fileName())

If I look closely in debug mode, it seems that my header.fileSignature is nothing, while it expect "ASTM-E57".

Where can I change this value ? What is the process in order to make it good?

Thanks a lot!

Related

Bug Reports: #51

Discussion

  • Stan Coleby

    Stan Coleby - 2019-07-03

    Hi Raph Schim,
    The header.fileSignature is set in E57FundationImpl line 3998 during the
    closing of the file. The user shouldn't worry about this. So the problem
    must be that the new E57 file was not closed properly. Which tutorial were
    you following since there are different examples in different places in the
    document area?

    Stan Coleby
    E57 Committee Member
    stan.coleby@gmail.com
    801 209-0183

    On Wed, Jul 3, 2019 at 8:41 AM Raph Schim kirbx@users.sourceforge.net
    wrote:


    Status: open
    Group:
    Created: Wed Jul 03, 2019 02:41 PM UTC by Raph Schim
    Last Updated: Wed Jul 03, 2019 02:41 PM UTC
    Owner: nobody

    Hi!,
    I followed the tutorial on libe57.org on how to create a new file.
    But when I do so, I can't open the file afterward. The problem come from
    the line 3889 from E57FundationImpl :

    if (strncmp(header.fileSignature, "ASTM-E57", 8) != 0)
    throw E57_EXCEPTION2(E57_ERROR_BAD_FILE_SIGNATURE, "fileName="+file->fileName())

    If I look closely in debug mode, it seems that my header.fileSignature is
    nothing, while it expect "ASTM-E57".

    Where can I change this value ? What is the process in order to make it
    good?

    Thanks a lot!

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/e57-3d-imgfmt/bug-reports/51/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bug Reports: #51

  • Raph Schim

    Raph Schim - 2019-07-04
    Post awaiting moderation.
  • Raph Schim

    Raph Schim - 2019-08-02

    Hi! I was out of office, sorry for the long answer.
    I followed the file tutorial named "DemoWrite01" that I've found here

    Thanks a lot

     

Log in to post a comment.

MongoDB Logo MongoDB