by using PyInstaller I generate an application with .exe inside.
This application work fine.
By doing some manipulation (basically, by trying to install the application twice in the same place), There is now the following error when I try to run the .exe :
Ordinal not found
Ordinal 380 not found in dynamic link library C:\Users\david.rouyre\Documents\Software\MyApp\MyApp.exe.
The problem is the following :
If I delete the full folder and I reinstall everything properly, the ordinal error is still there.
I think that there is a cache somewhere which associate the path of my application to this ordinal error.
The path is C:\Users\david.rouyre\Documents\Software\MyApp\MyApp.exe
If I change exe name (MyApp.exe) to anaything else (a.exe), the ordinal error is still there.
If I change folder name (MyApp) to anything else (MyApp_edit), the application work fine.
I tried to clear the cache but this didn't work.
Do you know why this path seems corrupted ?
Related
I'm running NancyFx on Mono/ASP.NET (Mac OS X) and currently I am not able to retrieve a file that contains a plus sign in its filename. All other files without a symbol work fine and I've confirmed it is not a permission issue.
+1.png is the file's name. I've tried making a request to get %2B1.png instead and it did not work.
I'm probably missing something obvious. Help? :)
Trying to create the minimal core-plot project - http://www.mobdevel.com/?p=96
I've installed core-plot as a static library.
When I try to run the program I get the following error
CorePlot-CocoaTouch.h:4:9: 'CPTAnimation.h' file not found
When I move it "up" I get the error with the next file "below" 'CPTAnimationOperation.h' file not found
header search path is correct I believe ../core-plot/framework
( source is just beneath it)
I'm sure it's something dumb
There is an other solution is to add the header search path /core-plot-master/framework then select recursive, this worked for me.
needed to be ../core-plot-master/framework/Source
Had originally stopped at framework because adding /Source gave error of CPTPlatformSpecificDefines.h not found
so I had to add additional search path of ../core-plot-master/framework/iPhoneOnly as well
I have a VB6 project that I didn't create but I have to update, when I go to make the exe I get a compile error: Method or data member not found, and it points too "SCom1.FileReceive" in the code below. When I look at the Main form, the SCom1 control is a PictureBox.
This code has been working for the last 5 years but I don't know why SCom1 is a picturebox, or why I'm getting the error, is it a reference? SCom1 to me looks like a MSComm function? Let me know if anyone has any ideas, I just don't know VB enough to know how to troubleshoot this. Thanks
If SCom1.FileReceive = True Then
WriteToLog (Now() & " FileReceive was true, now false")
SCom1.FileReceive = False
End If
The machine which you have opened the code doesn't have the mscomm32.ocx file or the ocx file not registered properly.
When vb cannot reference an ocx, it'll convert the relevant control to a picture box control.
What you have to do is, close the project without saving. Then open system32 folder and check for mscomm32.ocx file. If the file is not there then you have to download that from the intenet. The register the file using regsvr32 command in command prompt.
After this you can open the vb6 project and start working.
=========================================================
EDIT : Included the update in the comments to the answer, this will help other users in the future... :-)
if the method name doesn't look familiar to a known ocx file (in this case the SCom1.FileReceive), the missing component can be a custom ocx file.
So check on the working machine or in project folder whether there are any ocx file exists in the relevant name (in this case SCom.ocx).
if there is a file exists in such name, register that file using regsvr32 (if not registered), then add that to toolbox, then replace the picture box control with the relevant control (make sure the name tally).
When I install my finished product it runs fine until the very last action is done (a button that 'saves' the job).
The program pops this error up:
Unhandled exception has occurred in your application. If you click continue, the app will ignor this error and attempt to continue. If you click quit, the app will close.
Could not find a part of the path 'C:\Program Files (x86)\ATR\Save A Job\obj\Release\42\ATR\BackupProgram\Backup.xml
For some reason, the program is looking for the backup.xml file in the wrong place. (and seemingly added folders)
The way I'm calling the backup.xml file in the program is by:
(System.Environment.SpecialFolder.ProgramFile sX86 & "\ATR\Save A Job\Backup.xml")
Which, could be the wrong way, but it makes sense to me.
I would assume that the full path to the file location would be as follows:
C:\Program Files (x86)\ATR\Save A Job\backup.xml
However, it is looking for it in the wrong place (obvious from the error)
Anyone know why?
Got it fixed guys. It was the permissions to the installation folder. My user was set to "read/write only"...once i switched it to Full Control, everything worked fine
Whenever I press on the open in IE icon, I get an error in the console:
Error: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIProcess.init]
Source File: chrome://openinie/content/openinie.js
Line: 126 (This happened ever since upgrade to 16.0 and I assume it's probably security related)
I found that js file to be inside some "openinie#wittersworld.com.xpi" file (which I cleverly renamed to zip), and saw the offending line:
var iePath = openinie.getIEPath();
// create an nsILocalFile for the executable
var file = Components.classes["#mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(iePath);
// create an nsIProcess
var process = Components.classes["#mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
process.init(file); // <-line 126
is it possible to fix it and "re-compile" it zipping and renaming?
(I assume it's something with security maybe).
can I debug this using for example an alert box to display values of variables?
is it possible to fix it and "re-compile" it zipping and renaming
Yes, you can simply replace a file in the ZIP archive, most extensions aren't signed (you can remove the META-INF directory from the XPI file if this one is). In fact, for your debugging it is better to unpack openinie#wittersworld.com.xpi into a directory named openinie#wittersworld.com in the same folder and remove the original file - this way you won't need to pack/unpack on each change. You should also start Firefox with the -purgecaches command line parameter, otherwise the file you are changing might get cached.
can I debug this using for example an alert box to display values of variables?
Yes. However, I would rather recommend Components.utils.reportError() method that will log to the Error Console (press Ctrl-Shift-J to open it) without opening modal dialogs. In this particular case I would write:
Components.utils.reportError(iePath);
This seems to point to a non-existent file meaning that the getIEPath() function is faulty.
Good luck!