Valued Contributor
Posts: 86
Registered: ‎08-31-2011
Message 1 of 2 (124 Views)

Public and use the big structure body

124 Views, 1 Replies
05-14-2013 12:50 AM
Thank you.
I declare Public and use the big structure body.
AutoCAD is terminated abnormally with one of two times of probability when I execute the command.
So when NETLOAD does DLL which built the source which declared Public variable in VB.NET,
 Development to memory
 Clear of the memory
Is it performed in which timing?
In addition, must I not use the Public declaration?
I want you to tell me.
Thanking you in advance.
Posts: 263
Registered: ‎12-04-2009
Message 2 of 2 (93 Views)

Re: Public and use the big structure body

05-16-2013 06:21 PM in reply to: NKCAUTOCAD01

Here is only quikc-help(?)


i think, the problem is "the links dll and memory sharing.failed"

a)my solution1 is  "store & save the big structure" in the file. res or "Resource"

b)my solution2 is  "store & save the big structure" in external DLL or  ithe .DLL

  you can load the last DLL  as RESOURCE_DATA



 Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.