Login | Register

C++ example code doesn't work

User feature requests
Planned features for Core Temp
  • Author
    Message

C++ example code doesn't work

Postby aVoX » Mon Sep 27, 2010 3:22 pm

Hi there!

I have been searching for 2 weeks for a way to read the temperature of the CPU and its cores. Yesterday I found CoreTemp's homepage and today I downloaded the C++ demo project and the DLL. Whenever I start the linked exe-file or the project, a console window pops up with the following content:
Code: Select all
Core Temp shared memory reader:
Error: Core Temp's shared memory could not be read.
Error number: 2
Error description: Das System kann die angegebene Datei nicht finden.

The funny thing is: When I start the official linked version, everything runs fine.
So, where is the problem and how can I solve it?

Cheer, aVoX.

Edit: My CPU is an AMD Turion 64 X2 (RM-72, Mobile Edition)
aVoX
New User
 
Posts: 2
Joined: Mon Sep 27, 2010 3:13 pm

Re: C++ example code doesn't work

Postby The Coolest » Mon Sep 27, 2010 4:19 pm

You must have Core Temp running for the sample to work.
It uses the shared memory block, which Core Temp exposes to get the data.
Member of our O/C Folding @ Home team
"<The_Coolest> you can't unwaste wasted CPU cycles" - Start FOLDing now!
Main rig:
Core i7 2600K 3.4GHz @ 4.5GHz (Scythe Mugen2) / Mobo: Biostar TP67XE / SSD: Crucial M4 128GB (+ HDDs) / GPU: HD5450 / Mem: 4x4GB DDR3-1600 G.Skill 4GBXL RipJaws X - 16GB total / PSU: Seasonic S12II 620W.
Secondary rig:
Core i3 540 3.06GHz @ Stock / Mobo: MSI H55M-ED55 / GPU: Integrated / Mem: 2x2GB DDR3-1600 G.Skill 4GBRL RipJaws - 4GB total / PSU: FSP ATX350-PNR 350W.

Core Temp - Accurate temperature monitor for Intel's Core/Core 2 and AMD64 processors
User avatar
The Coolest
Site Admin
Site Admin
 
Posts: 2961
Joined: Tue Feb 18, 2003 7:48 pm
Location: Tel Aviv, Israel

Re: C++ example code doesn't work

Postby aVoX » Mon Sep 27, 2010 8:10 pm

The Coolest wrote:You must have Core Temp running for the sample to work.
It uses the shared memory block, which Core Temp exposes to get the data.

OK, that sounds logical...
However, I wanted to code a standalone... :|
aVoX
New User
 
Posts: 2
Joined: Mon Sep 27, 2010 3:13 pm

Return to Development

Who is online

Users browsing this forum: No registered users and 2 guests