jgcode Posted November 2, 2010 Report Share Posted November 2, 2010 [LV2009] [Cross-posted to ni.com] I have found that if I pass a large data array (~4MB in this example) into an X-Control, it causes massive memory allocations (1 GB+). Is this a known issue? The X-Control in the video was created, then the Data.ctl was changed to 2D Array - it has not been edited in any other way. I also compare the allocations to that of a native 2D Array (which is only ~4MB). Note: I jiggled the Windows Task Manager about so that JING would update correctly, its a bit slow, but it essentially just keeps rolling up and doesn't stop. Demo code attached. Related to this thread by separated as posted to NI for support. Cheers -JG <object id="scPlayer" class="embeddedObject" width="921" height="858" type="application/x-shockwave-flash" data="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/1bfce9bd-6cea-4622-ad26-8da61f63adc7/jingswfplayer.swf"> <param name="movie" value="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/1bfce9bd-6cea-4622-ad26-8da61f63adc7/jingswfplayer.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF"> <param name="flashVars" value="thumb=http://content.screencast.com/users/jgcode/folders/LabVIEW/media/1bfce9bd-6cea-4622-ad26-8da61f63adc7/FirstFrame.jpg&containerwidth=921&containerheight=858&content=http://content.screencast.com/users/jgcode/folders/LabVIEW/media/1bfce9bd-6cea-4622-ad26-8da61f63adc7/X-Control%20Memory%20Leak%20Demo.swf&blurover=false"> <param name="allowFullScreen" value="true"> <param name="scale" value="showall"> <param name="allowScriptAccess" value="always"> <param name="base" value="http://content.screencast.com/users/jgcode/folders/LabVIEW/media/1bfce9bd-6cea-4622-ad26-8da61f63adc7/"> Unable to display content. Adobe Flash is required. </object> X Control Bug LV2009.zip Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.