.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Public and use the big structure body

1 REPLY 1
Reply
Message 1 of 2
NKCAUTOCAD01
344 Views, 1 Reply

Public and use the big structure body

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.
1 REPLY 1
Message 2 of 2

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>

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost