For Programmers: Free Programming Magazines  


Home > Archive > Fortran > August 2005 > DVF: dlls remembering allocatable arrays









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DVF: dlls remembering allocatable arrays
Bruce M

2005-08-19, 6:56 pm

I am writing Windows dll's in DVF 6 for a Delphi front end. This
particular dll needs to be left in memory and called multiple times. I
want to create and load some allocatable arrays on the first call to
the dll, then use the data on subsequent calls to the same dll. Even
though I use the "SAVE" attribute for the arrays, the data disappear
between subsequent calls. Not so for simple variables -- those are
remembered. Btw, the front end doesn't need or use the data needed by
the dll.

I'd greatly appreciate a tip on how to make the data in allocatable
arrays accessible on subsequent calls to the dll.

Thanks very much,
Bruce

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com