Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Sharing allocatable arrays-callback subs

Deleted_U_Intel
Employee
424 Views
Hi

I have an dialog QwikWin graphic program that draws zooms and pans a map. The external DRAWMAP subroutine reads the map points from a file and draws the map each time it is called by callback subs START, ZOOM or PAN (buttons).
Reading the file every time a button is clicked causes a little but annoying dalay in redrawing the map to its new size or position.
I would like the START callback sub to read the file, allocate and fill an array with the map points, and make this array sharable with DRAWMAP sub, any time it is called by the other buttons.
In START callback sub I could pass the allocated array to the DRAWMAP sub but the ZOOM and PAN callback are not called by START so I do not know how to do it

I know my 5.0D is out of data but the upgrade to 6.6 is arriving next week.

Thanks for any help I can get

Geraldo Garcia
0 Kudos
1 Reply
Steven_L_Intel1
Employee
424 Views
Put the array declaration in a MODULE that is then USEd by the various routines.

Steve
0 Kudos
Reply