Names of variable and lables are not reflected

4 posts, 0 answers
  1. Shuli
    Shuli avatar
    1 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2012 Link to this post

    Whenever I browse for a dll and click on it, JustDecompile generates code lines with v1, v2, v3.. instead of variables and lable1, lable2... instead of lables

    ... W2BPM V_0 = this.mobjSession.W2BPMObject;
    W2ExecutionContext V_1 = this.mobjSession.W2ExecutionContext;
    BPMResult V_2 = null;
    string V_3 = string.Empty; QueueElement
    V_4 = V_0.RetrieveStepQueueElement(V_1, this.mobjStepData.StepIdentifier);
    bool V_10 = V_4 != null;


    if (!V_10) 
        V_10 =
    if (V_10) 
    goto Label2; } 
        return; }
    if (this.mstrReassignTo == string.Empty)
    { name =
    true; }





    Is there any way to fix it? 


  2. Yordan Dikov
    Yordan Dikov avatar
    69 posts

    Posted 29 Aug 2012 Link to this post

    Hello, Shuli,

     Thank you for getting in touch with us.
    The problem with variable names comes from the fact that the compilation process doesn't preserve the names of the local variables, thus, JustDecompile must produce some legal names for them. It usually gives much prettier names than the ones you've observed. Are you sure you're not using an older (probably still beta) version of JD?
    If you observe this problem with our latest version (2012.2.815.6) we'll really appreciate if you can send us a sample DLL, so we can investigate it further.

    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Alun
    Alun avatar
    3 posts
    Member since:
    Sep 2012

    Posted 18 Sep 2012 Link to this post

    It'd be nice to have some control over the names generated by JustDecompile. The names that JD puts out are often hard to do a simple search-and-replace on, like "str", "str1", "str2", etc - if I know that "str" should be "sillyString", I can't just do a simple search and replace for "str", because it'll match too many other possibilities.
    It's also a little hard to tell if a variable name is one you've created yourself (I occasionally use "str", "str2", etc), so it'd be nice to at least have the option of specifying a prefix or naming scheme for variables created to match unnamed variables in the IL.
  4. Tsviatko Yovtchev
    Tsviatko Yovtchev avatar
    549 posts

    Posted 19 Sep 2012 Link to this post

    That is a viable suggestion. It'd be really nice if you could post it to so that other users could vote on it? We use our uservoice site to prioritize future features.

    Kind regards,
    Tsviatko Yovtchev
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Back to Top