ExpressPCB Forum

Forum Home

Back to ExpressPCB...

 

Error #5 at start in Win10 (6 replies and 6 comments)

Adrian Andronache
7 months ago
Adrian Andronache 7 months ago

Hello Gents,

I recently installed ExpressPCB and started to work with it. It is doing fine, however, after restarting the computer several days later (i use to leave it in standby and rarely full restart), is no longer working.

I reinstalled the programs (uninstall + reinstall) and is working again. It works after one or two computer restarts and after that, again. I reinstalled again; same behaviour after a restart. Immediately when try to open a schematic or PCB, appear the message box "Runtime error 5 - invalid procedure call or argument" and that's all.

Environment is Windows 10, on a netbook (ASUS E200HA). OS is relatively new, no viruses, i only suspect it has to do with the way Windows10 is doing some under-the-hood dll or ocx cleaning, replacing, updating whatever. I am programmer in Visual Basic and i have some ideea about... but i can't figure out what makes this problem.

Can you provide me some help? A way of debug? i don't ask for source code, of course, but ....

To mention that i am not too happy with Win10 but i can't do anything about it, the laptop is new and don't accept XP because of UEFI.... otherwise i would immediately get rid of W10.

 

MarkSH
7 months ago
MarkSH 7 months ago

I would check the Windows Logs.

Right click the 'Start' button, select 'Event Viewer' (should be third from the top). Open up Windows Logs, select Application and also System and see if there are any Errors or Warnings. If there are then check the details and look then up on the internet which may help.

I am running Windows 10 Pro, Version 1607, OS Build 14393.576 and both ExpressPCB and ExpressSCH seem to running fine.

Hope this helps.

Adrian Andronache
7 months ago

Nope. I did not found anything related. I started event viewer, checked the logs, started the program ExpressPCB, (of course, failed), checked the logs, nothing.... I restarted the app (event viewer) thinking that maybe is not realtime connected with file. No new event appears.
Unfortunately expressPCB does not have an event log by itself, in its folder; it was helpful if it has.

Adrian Andronache
7 months ago

I also have win10 v1607 but home edition.

MarkSH
7 months ago
MarkSH 7 months ago

Ummm, Not sure. I would've thought there would have been something in the logs.

Anyway, attached is a screenshot of the files showing the EXE, DLL, DAT, GID, and HLP files in my C:\Program Files (x86)\ExpressPCB folder...

there is a file called 'ExpressPCB_EULA.pdf' at the top (below the 3 folders) and 3 PCB files at the bottom also 2 SCH files...

There is also a file called 'ExpressPCBPricingDownloaderWF.exe.config' and another called 'ExpressPLTUploaderWF.exe.config'

A total of 46 files and 3 folders at the top.

Folders:

PCBComponents_Library

SchComponents_Library

SchSymbols_Library

I'm sure it doesn't really matter what version of Win10 you've got, it should work!

I am running the new version of ExpressPCB and ExpressSCH (v. 7.5.0)

https://www.expresspcb.com/wp-content/uploads/2016/02/EXPPCB-3.jpg
Adrian Andronache
7 months ago

No. Now is no longer working not even after a clean install (uninstalled, registry searched for ExpressPCB and ExpressSCH), i reinstalled the 7.5.0, and after that tried a version from 2008 and one from 2010 which i had in my older backups; is doing the same Error #5! Frustrating!!

MarkSH
7 months ago
MarkSH 7 months ago

This is unfortunate!!

Maybe try running the ExpressPCB (and ExpressSCH) as a Windows 7 (or other Windows OS).
Select the 'C:\Program Files (x86)\ExpressPCB' folder and find the 'ExpressPCB.exe' file (and 'ExpressSCH.exe' file).
Right click and select 'Properties' then select the 'Compatibility' tab.
In the Compatability mode area, tick the 'Run this program in compatibility mode for:' box and select Windows 7 (or other OS).

Another suggestion is to download and run the CCleaner application and clean the registry which may fix the problem.
Or it could be a service that is stopping the ExpressPCB and ExpressSCH from running properly.
Try running the 'msconfig' application and selecting Diagnostic or Selective startup.

Adrian Andronache
7 months ago

for the first one: already tried; run as admin; run as xp app, as win 7 app. No way.
for the second: cleaned registry manually for expresspcb entries and data before reinstalled every version.
for the third; done now; no change.
I think the only way i can make it work is to have avail source code for the startup part of app.. 🙁 to try debug it in Visual Basic IDE,. Or the developm. team to include some info in their error trapping to know WHERE (in what module/section of the code) the app give this error. I think the app is written in VB because the registry entries of the app are under Visual Basic general entry.

MarkSH
7 months ago
MarkSH 7 months ago

Jeez!! This must be a nightmare for you!
Have you looked at this...?

http://www.solvusoft.com/en/errors/runtime-errors/microsoft-corporation/windows-operating-system/error-5-invalid-procedure-call-or-argument/

You might find something listed in here which may help.

Maybe also try pressing ‘Ctrl, Shift and Esc which opens the Task Manager, select the processes tab and select a process that doesn’t look familiar to you. Then ‘End Process’ button and then restart ExpressPCB/ExpressSCH.

Adrian Andronache
7 months ago

Err #5 is generated when a function or procedure call either not has right arguments because of programming or if the function called in a dll has not been called with the expected arguments - issue may be because of different version between the caller expectation function version (in fact, passed arguments) and the actual existing dll version expectations of arguments (types).
Regarding Task Manager... no, i don't have viruses. I did not had viruses since ...approx year 2000. Regarding familiarity, i'm still not familiar with Win10, because was pushed to me in nov 2016. Thank you for efforts, Mark, but .. 🙁 Meantime I had written to tech support team at ExpressPCB, maybe they will know something about..

MarkSH
7 months ago
MarkSH 7 months ago

OK. I think it must be the Win10 OS and something not quite right or some files missing.
No, I didn't mean to say you had a virus, but if you can see an application running that doesn’t look familiar to you. It could be something that has been installed previously and starts up upon boot up. - check your start up applcations.
Anyway best of luck and keep smiling... 🙂 

 

Adrian Andronache
7 months ago

Yes, i am thinking that may be OS related, but was good if ExpressPCB does not just throw a cryptic Err#5, without telling Where is the Problem. In my programs (i do some, as a hobby) i am trapping errors throwing out also the procedure/function which causes the error, and reasons for the error, (as an example, when accessing a file or device or anything input/output... Just a thought. What was if...
Probably i'll have to reinstall Windows and all the rest of the stuff just because of this. Because i really need to have ExpressPCB - is the only program which i like to work with. I tried long ago Eagle and others; when in '98 even Orcad. Nothing is as easy as this. Not perfect, but easy to use.

Adrian Andronache
6 months ago
Adrian Andronache 6 months ago

Hello, everybody,
I FOUND THE BUG!

ExpressPCB has a folder for keeping the Custom Components, made by user, and that defaults points to My Documents
But let's suppose you have setted up another folder for your CUSTOM components....
No, is not what happened, actually.

I used to make this since long time ago, in Dropbox, which resides in My Documents, which My Documents typically was in D: drive. Because nobody wants it's Documents erased by a system failure, isn't it? Or to be needed to backup a huge My Documents folder just before he needs to reinstall Windows (only if it is possible!), or format c:\ or restore c:\ from a backup. Correct? I am using d:\ drive for My Documents since '98....
 
Since i got the new laptop, with drastical limitations of space (32GB eMMC and an SDCard) and Windows 10 preinstalled, which i really hate for the messed up inteface and all that things, i had to rely on cloud drives and many services for synchronizations and backups.

Because Windows10 has a nasty interface in Windows Explorer, where many items are doubled or even tripled (drives appear twice, there are folder links "by default" everywhere where is not supposed to be, cluttering unnecessary the Explorer tree, i'd relied on registry customization to remove things which appear twice.
But not this was the big problem.
 
In the process of using cloud for sync and backup various part of my work, i relied on 6 services: onedrive, asus cloudstorage, dropbox, google drive, yandex disk, pcloud.
Everything was quite difficult to sort up, i relied heavily on a third party program, Beyond Compare, and on a program made by myself, Duplicate Removed (which, apart from other similar apps on the internet, permit to set up folders who WILL NOT BE TOUCHED in the process of removing duplicates, and folders WHERE DUPLICATES RESIDES, which will be marked checked for deletion by default. I made it to be able to automaticvally clean backups i made regularly, but keeping untouched the eventual duplicate files in "original folders". I have many duplicates,m for example in my software projects folder, where i have many files which are identical in differetn folders for different version of every program i made....
 
In the process of keeping computer well working, i observed that pCloud service tends to use up 30% of processor time doing nothing.
 
Thus, i was stopping the service for most of the time and using it only when was necessary. I have something on it but i'm not using it since long time and i don't trust it yet enough to put important things in it.
 
In the last years, all my work was nicely structured in My Documents, and i would know everything where resides, but now, needing to rely on various services to back things up, and seeing that Win10 had a strange behavior with My Documents folder (keep pointing it on C: drive after various system updates pushed by Microsoft automatically) had to get rid of the My Documents entirely and use a custom made folder, "SYNC", for everything, with the cloud services pointing to folders inside this one. And because of fragmentation, with my own working folders residing somewhere not-so-easy to find inside those cloud folders, but pointed from an external place, a folder called "SHORTCUTS", to most important of them.
 
The essential thing is that My Documents folder was lost his meaning, which i used it all last 18 years. And i am moved it on the pCloud service, p:\ drive.
 
But in My Documents, once two weeks ago when pCloud was active (before noticing that pCloud is eating processor time), ExpressPCB did it's thing of putting pointers for it's custom components folder. Normally when i install ExpressPCB, i always (i did it tens of times before, in the last 7 years) move these folders to Dropbox. But now, with all the messed up things with Win10 and the new laptop, I FORGOT.
 
When i disabled pCloud... YOU GUESS, P: drive dissapears, My Documents dissapears (i didn't care, because was empty and was no longer used by me like before, and i didn't noticed it dissapears.). And ExpressPCB keeps failing without telling why 😀

Best Regards,
Adrian

Back to ExpressPCB...