Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

FileWriter and Windows 7

stsybikov
Beginner
441 Views
Hi,

I have a strange issue with FileWriter class and Windows 7 Pro. On Windows 7 FileWriter doesn't create the file. On XP everything works fine.

I created a simple code to write a single number to the file but the code doesn't work. No error, but no action.


UMC::FileWriter writer;
UMC::FileWriterParams writerParams;
wcscpy_s(writerParams.m_file_name, _T("C:\\\\foldername\\\\filename.mpg"));

UMC::Status status = writer->Init(&writerParams);
if(status == UMC::UMC_OK)
{
int i = 5;
int size = 1;

writer.PutData(&i, s);
}

writer.Close();

I traced the UIC sample and found that Init() is using standard CreateFile(...). If I tried to use CreateFile(...) instead of writer->Init(...) it's OK with file creation. I am thinking about some kind of security limitations for Windows 7.

Does anyone know about this problem? I run the system as administrator and Parallel Studio XE 2011 with VS2010 as administrator as well.

Regards,
Sergey Tsybikov
0 Kudos
1 Reply
stsybikov
Beginner
441 Views
Hi, Intel Support Team:

I figured out what' s going on with UMC::FileWriter on Windows 7

Init() function from audio-video-codecs\core\vm sample works only if I am using MS Visual Studio debug/release configuration with Multi-Byte Character Set. If I use Unicode Debug/Release configuration with Unicode Character Set the above function does nothing even returning the success.

Does anyone have a suggestion how could I rebuild ipp-samples in unicode under 32-bit Windows?


Regards,
Sergey Tsybikov
Smith&Nephew Endoscopy
0 Kudos
Reply