Source Code not found in QCacheGrind wrong path - xdebug

As you can see in the image, there is a wrong path, but i dont know how can i change it.

Related

Is there a way to use a resource file in the other assembly?

I am using WPFLocalizeExtension library.
Until now, I have used the library as below.
xmlns:lex="http://wpflocalizeextension.codeplex.com"
<Button Content="{lex:Loc key=Yes}"/>
Of course, the code above works well, if "Yes" word is in the current assembly.
But this case, I would like to use the resource of the external assembly so I tried as below.
xmlns:lex="http://wpflocalizeextension.codeplex.com"
lex:ResxLocalizationProvider.DefaultAssembly="ApplicationLayer.Define"
<Button Content="{lex:Loc key=Cancel}"/>
But the code above does not work.
Maybe I think, it's because the reference assembly doesn't exist in the current directory.
The path of the file above is the "...\Applications\WpfApp\WpfApp" and the path of the "ApplicationLayer.Define" (The file to reference) file is the "...\Applications\ApplicationLayer.Define".
The resource file to use is in the Properties folder of the "ApplicationLayer.Define" as below.
update
Also, I referenced "ApplicationLayer.Define" assembly into the running application as below.
What I should do to achieve my goal?
Could someone tell me how to solve this problem?
Thanks for reading.
I found a reason that doesn't work.
The above resource file name is "Resource.resx". (see the image file)
I changed the resource file name to the "Resources.resx".
And then all works well.
Maybe I think, It's because the WpfLocalizeExtension library finds the "Resources.resx" name for resource to use.
Thanks for your interest.

adding multiple executables C-Lion

im pretty new in C-programming. I use CLion from JetBrains to program my stuff. I would like to know how to add multiple c files in the makelist.
i would like to just open a program and to execute it..if its possible
my ide works just for one file. so i always have to change the name of the c. file in the makelist
i have already tried a lot of combinations of the makelists file but nothing worked.
does somebody have an idea how to fix this problem?
I have edit two new pictures
In this example I have two c files which i would like to execute.
My goal is to add the whole c file tree on the left side to the CMakeList
Here are the pictures
!enter image description here
Here is the error log
enter image description here
Here is the solution. Thanks to your response someprogramerdude
I just added executables and i changed the project in the beginning. the reason why i use picture is that you can see the source files on the left side
enter image description here

Could not find file 'C:\Users\crims\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\...\MonitoringSystemDatabase.mdb'

I have a Menu Form and it has 7 UserControls every time I execute my program I keep seeing this error.
I have no idea what error is this. I tried searching but there are no error close related to mine. Then I compare my error with this Project Assemblies error
Can anyone help me with this? I have no idea what causes this error.
The error is caused by your code looking for the MS Access database file called:
MonitoringSystemDatabase.mdb
...is located at path:
C:\Users\crims\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\cjz5kapb01\
...but it is not.
Locate file MonitoringSystemDatabase.mdb (perhaps with +E to Search), note the actual path of the file, and correct the path in MainMenu.vb.
The error message is very clear, so why all the searching?
Either the file isn't there, or the application can't see it where it expects to find it.
Try moving the file to:
C:\Users\Public\Documents\MonitoringSystemDatabase.mdb
and adjust you project accordingly.

Launch failed- Binaray not found

Hi i get this error when i try to launch this program(i clicked on button build all). Is it maybe because I named my source file wrong. Does it matter how you name it? I named previous source file something completly different and it didnt even recognised function printf. Anyone please explain to me how this works.

Lua loadfile not finding a file

I had some lua code with the following line:
JSON = loadfile("JSON.lua")()
The file JSON.lua is in the same directory as the lua code that line came from. This code worked for me for a while, and then, without my changing either the lua source, or the JSON.lua, or permission of any of the files, or the directory from where I was running the lua code, I started getting a nil error on that line. (I simply recall NO relevant changes that could have any impact on the lua code.)
Adding an assert revealed that the error was caused by the file not being found. Playing with file permissions, restarting my machine didn't resolve the issue, and pulling back code that I had checked in and was working perfectly did not resolve the error.
I resolved the error by changing the line above to provide the absolute path to that JSON.lua file.
Is there anything explaining why the code without the absolute path could have worked for a while and then stopped working?
Note: This behavior of working and then not working happened to me twice over a week. I am puzzled and though I have now found a fix, I am really curious as to the explanation for that intermittent behavior.
Lua uses package.path, whose default value comes from the environment variable LUA_PATH if it is set, as the list of directories to search. You can put . of the front of this list to load files from the current directory, or you can put your files in a path on the list.
A late answer on this, as I found exactly the same problem.
First, contrary to the previous answer, loadfile doesn't use the package.path search path. It only looks in the specified directory. And if you don't specify a directory, it only look in the 'current directory'. I can't explain exactly why it stopped working for you, but probably your Lua code is somehow being run with a different 'current directory' than previous.
There are two possible fixes: One is to specify an absolute path to loadfile.
JSON = loadfile("c:\\my_folder\\JSON.lua")()
The alternative fix depends on the particular library you're using, which I suspect is Jeffrey Friedl's Lua JSON lilbrary. Because this supports the newer Lua module mechanism, you can just load the module with require, which does support the package.path search path.
JSON = require("JSON")

Resources