-
Content Count
426 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Roger Cigol
-
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
I have sysinternals process monitor running on the machine. I get a long list of processes - but can't see my application mentioned anywhere (note - may application it is not actually doing anything at present - but it is still running) Any tips on how to drive this ? -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
I have remote access to the machine, My application is still running and I can confirm that it is still not able to create / write to any files. I have used the sysinternal handle.exe utility. When run with -a -p nnnn >MyOuptutTextFile.txt // (where nnnn = my application process ID) When I look at the resulting output file it is 400MB long and almost all of it is taken up with the same entries, here's an extract 3B4: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 3B8: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 // loads and loads and loads of entries here // - and then the file ends F71D78: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D7C: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D80: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D84: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D88: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D8C: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D90: <Unknown type> \Sessions\1\BaseNamedObjects\MyMutex1 F71D94: <Unknown type> \Sess This doesn't look healthy to me - but what does this line mean? -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
@Lajos Juhász How can I check this ? -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
Are you sure that "service" means a windows service in this context? I am not so sure that MS error messages are so precise! I think this just means a "general service provided by the operating system" - but I could be wrong. @Kas Ob. I am a bit out of my depth with this one - so your expertise is really welcome and appreciated. So above question is just me being ultra cautious! -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
When I open resource monitor I see 2 threads and 15 handle names (13 are files, one is the application exe and one is the application mutex created and checked by our application (we use this to prevent two instances being run at the same time) So this doesn't show any problem. Hard Disk still has 43GB used of a total capacity of 930GB -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
When I open up task manager I see 0% for CPU, disk and network, very low power useage and only 14.7MB of memory useage - and it's been running for a week and a half, so doesn't look like a memory leak. -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
An update: by adding code to get the Windows error code following a failed attempt to open a text file I have now got an error number : 1450 A quick google search reveals Error 1450 = Insufficient system resources exist to complete the requested service So what resources is it short of, I wonder? I am currently trying to get a remote connection to the PC in question before they close down (and restart) the application.... -
@JohnLM An interesting feature request. If you want it to be considered you need to post it at https://qp.embarcadero.com/ Helpful advice: Your suggestion (interesting though it is) is definitely well "off topic" so it might have been wise to post it as a new thread.
-
Well as a catch line it does make you want to attend the presentation.....
-
Is this "Classic" or "Clang" 32 bit ? Are you using "incremental linking" ? (if so, does it solve your issue if you change the project setting to "incremental linking = false" ? Ooops - sorry - this is Delphi code not C++ - please ignore me !
-
https://register.gotowebinar.com/register/5710587862509447008 This is the link for "what's coming in 12.3"
-
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
Doing more error checking is of course a good idea. Perhaps I shouldn't have had to be pushed to do this. The software does log some errors to the log file. But of course if the log file falls over then I don't get a record of the errors. There are practical difficulties working with the customer on site (if you do too many version changes they start to feel (with some justification) that you are using them as the debugging team... However I agree with your helpful hint : I need to see if I can find out what is being reported when this problem occurs. I have created a version that will push error messages into the GUI thread and this thread will display them. I have asked the customer to take screen shots of any error boxes that pop up. Thanks for your help @Remy Lebeau I will post here again if I solve the problem or if I get more error information that I need help understanding ! -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
Thank you @Der schöne Günther for this suggestion. It's not quite so easy... a) I am not sure if I have the IT skills to get an exact copy of Win 10 LTSC from the customer's machine on to a VM (I did not supply the customer's PC). b) The software talks to significant complex hardware (it's a special purpose machine control system) which is hard to replicate / simulate on a VM system. -
Desktop App Development with Object Pascal
Roger Cigol replied to PhilBoy's topic in Algorithms, Data Structures and Class Design
Well it's a good opportunity to have time to learn Delphi at somone elses expense. Great to have a project to work on where anything you do that isn't a complete failure is considered a good result. I can't think of a better project to learn on ! -
TDirectory - file lock out on Win 10 LTSC
Roger Cigol replied to Roger Cigol's topic in General Help
@Der schöne GüntherMany thanks for this suggestion. Sadly (for me) I have already checked windows events - no sign of any problem error or warning messages. -
@Der schöne Günther Please accept my apologies! @Remy Lebeau Many thanks for your wisdom here - I've learnt something new!
-
I am not sure that posting code that doesn't compile is very helpful unless it is absolutely clear that it is meant in humour. Incidentally I am not sure how I feel about myself but I definitely love C++ (whilst conceding that it does have it's drawbacks).
-
Whilst agreeing totally with @Lars FosdalI am puzzled by your reaction. It is clear that every posting you received was aimed at helping / educating you. I can't see any sign of anyone being patronising. I like to think that all the many experienced developers that look at Delphi-Praxis are understanding of less experienced folk who are trying to learn. Please continue to ask questions. Be patient if you don't always get a simple answer and check that you have expressed your question in as clear as way as you can.
-
This is good advice (more accurately: this is essential). But the example you give is in Delphi / Pascal rather than C++ so perhaps not entirely suited for the original question posed by a relative newcomer to C++.
-
This is correct.
-
If you add a unit then the IDE adds both the *.cpp and .h files. There can be cases where you have a .h file with no associated *.cpp file (and this is therefore not what the IDE calls a unit). In this case you can right click on the project name (= the exe file) in the project tree view and select add existing and navigate to the *.h file you want to add.
-
PCH = pre compiled header. It's a file created at a full build by the compiler with the pure aim of speeding up compilation. In almost all cases you can just ignore it and let the compiler delete/recreate it as it needs to.
-
To get any chance of an answer you need to post some code that behaves differently between two versions. Also check which compiler and target (win32 or 64bit) you are using in each case.
-
I think this sounds like the "auto complete" calculating what to allow you to enter as part of the code. This was a bit flakey on some of the recent versions but works quite well on 12.2
-
I have a C++ Builder application that is in two parts - a dll and a main exe. This has all been working fine with version XEn ... 10.0... 10.1... 10.4.... etc (and maybe 11.1 too). But when I compiled it with 11.2 patch 1 I found it compiled without errors but didn't run. I traced the problem to DllMain() not being called when the dll is "attached" as the exe file loads. When I changed this from DllMain() to DllEntryPoint() it all started working again. (Phew!). This page: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Creating_DLLs_in_C%2B%2BBuilder Suggests that there is an option (check box) called VC++ which selects either DllMain() or DllEntryPoint(). But I can't find this option ! anyone know where this is for version 11.2 patch 1 ?