.NET

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

Public and use the big structure body

120 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: 262
Registered: ‎12-04-2009
Message 2 of 2 (89 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>

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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