Missing label

7 posts, 0 answers
  1. Andrey
    Andrey avatar
    4 posts
    Member since:
    Jun 2017

    Posted 09 Oct Link to this post

    Hello folks,

     

    I got a problem with connection using Oracle.ManagetDataAccess.dll to Oracle 8.1 database.

     

    To figure out a possibilites to find a way arround this error I decompile a library.

    Result of decompilation is... about 4000 errors in project.

    Most of them I was able to fix wit minor code adjustment, but one...

     

    In file SqlParser.cs is a method private static SqlMicTokTyp SqlGetNextToken(string sqlString, int sqlStringLen, out string tokenString, ref int pos) { ... }

    There are a few statement goto Label0: and Label0: are missing in the code.

     

    Can somebody tell me how to get Label0 on place in this method?

     

  2. Alexander
    Admin
    Alexander avatar
    206 posts

    Posted 12 Oct Link to this post

    Hi,

    Would it be possible that you zip the assembly where that happens and send it over to me? If you are not comfortable to share the assembly publicly, please, let me know and I will provide you with a secure channel to do it.
     
    Regards,
    Alexander
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Andrey
    Andrey avatar
    4 posts
    Member since:
    Jun 2017

    Posted 12 Oct in reply to Alexander Link to this post

    Hello Alexander,

     

    Assembly is a standard Oracle Data Access Components (ODAC) for Windows.

    You can get it form here http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html

    64-bit ODAC 12c Release 1 (12.1.0.1.0) Xcopy for Windows x64
    [Released August 13, 2013]

    ODP.NET_Managed121010.zip - 1.91 MB (2,007,194 bytes)

    This download contains ODP.NET, Managed Driver xcopy only. Installation Instructions are included within the zip file.

     

    Zipped files not allowed on your site. Rename zip.gif to zip to unpack.

     

     

     

     

     

  4. Andrey
    Andrey avatar
    4 posts
    Member since:
    Jun 2017

    Posted 12 Oct in reply to Andrey Link to this post

    P.S. When you decompile the assembly you will have u0001.cs ... u0006.cs classes in source. Them are uncompilable as cs. I would be happy with option to get them in IL or any other consumable form.
  5. Alexander
    Admin
    Alexander avatar
    206 posts

    Posted 17 Oct Link to this post

    Hi,

    This assembly seems to be obfuscated. Rather unfortunately, this is not a supported scenario in JustDecompile.

    You could try using the de4dot plugin or standalone de4dot. That’s not guaranteed to fix everything but it’s the best attempt in this case.

    Regards,
    Alexander
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Andrey
    Andrey avatar
    4 posts
    Member since:
    Jun 2017

    Posted 19 Oct in reply to Alexander Link to this post

    Thanks,

     

    Will try de4net.

     

    But, I think, this should not affect an initial problem - label are completely missing.

     

    The second problem is in:

    while(...) { if(..) { ... goto Label1; } else { ... } Label2: .. }

    Label1: ... goto Label2;

    It's failed on re-entering into the loop. 

    Solution - last block need to be placed somewhere in the loop.

     

    The third problem is in switch(...) { case 1: { Label1: ...; break; }  case 2 { ...; goto Label1; } }

    The same problem - can't enter into labeled block. 

    Solution - remove unnecessary bracket.

     

    One more problem - label at the end of the loop/switch/if-else - there need to be semicolon after label.

     

    Best regards,

     

    Andrey

     

     

  7. Alexander
    Admin
    Alexander avatar
    206 posts

    Posted 20 Oct Link to this post

    Hello,

    Can you reproduce those problems in sample project? If yes, would it be possible that you send it over to us?

    Regards,
    Alexander
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top