Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - About ldmicro 5.4.1.1

(you are viewing a thread; or go back to list of threads)

About ldmicro 5.4.1.1 (by Alex)
I haven´t catch the right moment to record when this happens, while using ldmicro for about 30 minutos and after many compilations, it is like is takes more time to compile, later, if i am away from keyboard for about 30 minutes and then i return to compile again ldmicro closes with message in the middle of compilation (everything that haven´t been saved is erased for ever)
Sat Mar 18 2023, 19:57:40
(no subject) (by Alex)
sorry I mean

" ldmicro closes with NO message in the middle of compilation (everything that haven´t been saved is erased for ever)"
Sat Mar 18 2023, 20:05:17
(no subject) (by MGP)
I don't think it's LDmicro because I use it almost daily and it's open all day on my old Win7 & 8.1 computers.

I also have a RPI4 server and it works there without any problems.
Sun Mar 19 2023, 06:57:40
(no subject) (by Alex)
thanks for your reply, it must be a pc problem then, but wich one?
Sun Mar 19 2023, 09:09:21
(no subject) (by calubert paulino)
Look that when you make a software you do not have it open from the internet or that you have several open that you have not opened on your pc (you must always open LDMicro from the computer).
Example: if you go to the forum and open a project, if you modify it or continue programming, this error will happen to you, you also have to save it, because if you don't save it in its version, you won't be able to open it even if you see that the file is there.

Mira que cuando hagas un software no lo tengas abierto de internet o que tengas abiertas varias que no hayas abierto en tu pc (tienes que habrir LDMicro siempre de la computadora).
ejemplo: si bas al foro y abres un proyecto si lo modificas o siges programando te pasara este error, tambien tienes que guardarlo ya que si no lo guardas en su version, no lo podras abrir aun viendo que esta el archivo.
Tue Mar 21 2023, 07:00:51
(no subject) (by calubert paulino)

I assume that you have removed it from your computer and reloaded it put the latest version and remove all the old versions and save them with the most modern version I use 2 LDMicro The version v5.4.1.1 and the French version that is for IC2.
you don't have to let Windon deactivate after a while with the program running and/or.

This made me sick and I removed the program since it conflicted with previous series and when you save or copy it, it doesn't find the right folder since you have them doubled or repeated (they remain crusty and you have to liquidate them.)
Tue Mar 21 2023, 09:27:17
(no subject) (by Alex)
thanks for your reply MGP and Paulino, I had my LDmicro executable located on the D drive, but now I'm going to move it to the C drive, within the 'Program Files (x86)' folder. Should my programs created with LDmicro also be saved on the C drive?
Tue Mar 21 2023, 10:50:50
(no subject) (by Alex)
To Paulino:

Where Can i find the French version to use I2C?

is it from here? : https://github.com/joegil95/LdMicro32
Tue Mar 21 2023, 11:00:53
(no subject) (by Alex)
I HAVE finally found a moment when this happens, here is a video demostration:

https://www.youtube.com/watch?v=mgKlQIymas8

it happens to me when:

1) simulate the ladder
2) then you stop simulation
3) then minimize the window
4) maximize again
5) add another Rung after (Shift + V)
6) Ldmicro closes...
Tue Mar 21 2023, 12:41:19
(no subject) (by MGP)
Can you try this version?
Tue Mar 21 2023, 14:53:02, download attachment ldmicro5411b.zip
(no subject) (by Alex)
Thanks a lot MGP, it seems to work witout any problem, iI´ll keep testing, Was the problem from ldmicro?
Tue Mar 21 2023, 18:17:04
(no subject) (by Alex)
the ldmicro from github is 32 or 64 bits?

https://github.com/LDmicro/LDmicro/releases/tag/5.4.1.1
Tue Mar 21 2023, 19:57:30
(no subject) (by MGP)
Version 5411b was a test version I got from Ihor after I paid to add a 12F1840.

I only have it in English, the final 5411 was made in all available languages after my approval.

I've also been using version 5411b all the time which turns out to be very stable.

32 or 64bits..I dont know..
Wed Mar 22 2023, 03:16:31
(no subject) (by Alex)
I see, thank you very much for sharing your version
Fri Mar 24 2023, 15:10:03
(no subject) (by Alex)
this problem with ldmicro 5.4.1.1 has already been reported this year:

https://github.com/LDmicro/LDmicro/issues/245

I think we will have this problem in the last version for a long time.

fortunatly We have MGP´s b version
Wed Apr 19 2023, 19:11:31
(no subject) (by Alex)
Yes, the performance issue in LDmicro, as described in the discussion threads, appears to be related to the software design, specifically with the ForgetFromGrid() function. Below are the key points explaining how this function contributes to the slowdowns and stability problems.

Description of ForgetFromGrid()

Function: ForgetFromGrid() is responsible for freeing elements from memory that are no longer needed in the graphical representation of the circuit (grid). This function is called each time an attempt is made to delete a contact or an element from the circuit.

Identified Problem: During testing, it was observed that when trying to delete an element that is no longer present in the DisplayMatrix array, the function enters a loop that can iterate up to 5,120,000 times. This happens because some elements have been previously removed and exist only in the undo history.

Consequences of the Design

Degraded Performance: As multiple insertions and deletions are performed, the performance of LDmicro significantly degrades. Operations that should be instantaneous become slow, affecting the user experience.

Unexpected Crashes: In another thread, it was reported that LDmicro closes unexpectedly, which may be related to memory management issues or unhandled errors arising during the execution of functions like ForgetFromGrid().

Undo History: The fact that the problem intensifies when reaching a limit in the undo history (32 items) suggests that the management of this functionality also needs to be reviewed and optimized.

Recommendations to Address the Problem

Optimization of ForgetFromGrid(): Review and optimize the code of this function to avoid unnecessary loops. It might be helpful to implement a mechanism that checks whether the element to be deleted actually exists in the DisplayMatrix before attempting to free it.

Review Undo History Management: Consider implementing a system that better manages the undo history, perhaps by limiting the number of items or removing elements that are no longer relevant.

Stability Testing: Continue testing with alternative versions of LDmicro that have proven to be more stable, and consider user feedback to identify other problematic areas.

Conclusion

The software design of LDmicro, particularly regarding the ForgetFromGrid() function, seems to be a critical factor in the performance and stability issues that users are experiencing. Addressing these design problems would not only improve the efficiency of the program but also increase user satisfaction. If you have any further questions or need more information on this topic, I would be happy to help! Feel free to post this translation in the LDmicro forum! If you need any adjustments or additional information, just let me know.
Mon Aug 5 2024, 19:57:18
LDmicro V 5.4.1.1 (by Tavares)
Na v.LDmicro 5.4.1.1 a função Make persistent não fuciona. como adicionar?


In v.LDmicro 5.4.1.1 the Make persistent function does not work. how to add?
Sat Sep 21 2024, 11:55:22
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):