Archived issue #0028066

Samples - mfc ocaf sample could not read/save any document without environment variables

Open CASCADEOCCT:Samplesclosed5 public notes

Search issues

Description

Ocaf sample could not read/save any document without CSF_StandardDefaults/CSF_PluginDefaults environment variables (without files StdResource/Plugin and StdResource/Standard). It leads to exception.

Steps to reproduce

• Comment all environment variables in occt env.bat (see attached image)
• Run mfc Ocaf sample
• Try to read or write any document -> Exception

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: abv
Date: Tue Nov 8 07:22:06 2016 +0300

    0028066: Samples - mfc ocaf sample could not read/save any document without environment variables
    
    Persistence libs are loaded using DefineFormat() in OCAF sample
02Commenter 2
Fix pushed to CR28066, please revise and test
03Commenter 3
I have compiled occt branch CR28066 on my local station.

Mfc sample Ocaf works properly now.
Open,Save,SaveAs functionality works correct for .cbf/ .xml documents.

No testing required.
Please, proceed.
04Commenter 4
Tested in scope of CR0-IR-2016-11-08
05Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]