new Element not working in 2.4.3

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
johnnyontheweb
Posts: 46
Joined: Sat Oct 08, 2011 6:28 am

new Element not working in 2.4.3

Post by johnnyontheweb »

[to fmk and anyone can help]
I developed a new element in fortran, that worked fine until version 2.4.2. Now with version 2.4.3 my new element (which is held in an external DLL) doesn't work anymore, no errors displayed and opensees.exe terminates. Debugging opensees.exe (with the trunk at rev 5621) I found out an access violation (sorry, cannot remember the file). What's happening?

Please help
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: new Element not working in 2.4.3

Post by fmk »

you either need to stick with 2.4.2 or recompile the dll again after updating the code in DEVELOPER/core.

basically every now and again some of the abstract classes in OpenSees change. If this is the case the .dll and the .exe will have differing opinions as to size of the different class objects and memory layout. This causes problems when accessing parts of an object and leads to error you describe.
johnnyontheweb
Posts: 46
Joined: Sat Oct 08, 2011 6:28 am

Re: new Element not working in 2.4.3

Post by johnnyontheweb »

dear fmk
I cannot remain with 2.4.2 because I need some new features in 2.4.3.
The dll is a new element in fortran, so any file in DEVELOPER\core is used. The SAME PROBLEM happens with the latest code (5621 for 2.4.3) with the example TRUSSF.for ... can you update also the file elementAPI.f and elementTypes.f ?
thks a lot

ps
can I compile the same dll for the 64 bit version?
Post Reply