.NET

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

Public and use the big structure body

119 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.
Mentor
diagodose2009
Posts: 259
Registered: ‎12-04-2009
Message 2 of 2 (88 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

 

<source=delphi7>

 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.
</source=delphi7>

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.