Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

warning message about resource version number incorrect

(1/1)

ollydbg:
I got a message below when I update to the latest r10217, 32bit gcc/wx2.8.12.
See the image below:

Any ideas?

MortenMacFly:
This happens if a XRC files does have a wrong or no version number. I'm afraid you've to disable the plugins step by step to see what causes the issue. The manager and resource XRC files should be in line. An XRC file w/o version number is actually invalid, thats why I added the version number to all. We still have plenty of invalid XRC files, btw... so it could also be another issue.

However, you shouldn't see this in release builds. Its only visible in debug builds. Could you verify this, please?

ollydbg:

--- Quote from: MortenMacFly on April 14, 2015, 08:20:10 am ---This happens if a XRC files does have a wrong or no version number. I'm afraid you've to disable the plugins step by step to see what causes the issue.

--- End quote ---
disable and enable it can't find the wrong xrc files. Instead, I set a breakpoint in bool Manager::LoadResource(const wxString& file), and check each zip file manually(the zip file name can be seen as the function argument) to see whether they have wrong xrc files.

Here are 5 wrong files I just caught:

--- Code: ---manager_resources.zip
    edit_keywords.xrc
    project_deps.xrc
    project_options.xrc
    virtualbuildtargetsdlg.xrc

codecompletion.zip
    goto_function_dlg.xrc

--- End code ---



ollydbg:
FYI: Just set a breakpoint in the file:

--- Code: ---"wxXmlResource::DoLoadFile (this=0x58b2b88, filename=...) at D:\wx3\src\xrc\xmlres.cpp:772"
--- End code ---
can catch all such warnings.


--- Code: ---    if (m_version != version)
    {
        wxLogWarning("Resource files must have same version number.");
    }

--- End code ---

MortenMacFly:

--- Quote from: ollydbg on October 04, 2015, 01:26:26 pm ---
--- Code: ---    if (m_version != version)
    {
        wxLogWarning("Resource files must have same version number.");
    }

--- End code ---

--- End quote ---
I should have fixed all those in SVN meanwhile. I also have a patch pending for wxSmith that it doesn't generate "wrong" XRC files. It happens as well with 3rd party plugins though where I cannot fix the code. For example: wxCrafter and cbInno.

Navigation

[0] Message Index

Go to full version