OCR increases my memory...

Hello...

I'm developing an application in VB.NET 2005, the problem is when I use the NIOCR ActiveX control in my application, the memory increases and is unable to manage.

I saw another post with the same problem, but there is not an effective response.

Here is an 'example' of my request:

Dim Image As New CWIMAQImage

Dim CWIMAQVision As New AxCWIMAQVision

Dim NIOCR As New AxNIOCR

Private Sub MainForm_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

CWIMAQVision.CreateControl)

NIOCR. CreateControl()

NIOCR. ReadOCRFile (CurDir () & "\Lot Number.abc", NIOCRReadOCRFileOptions.niocrReadAll)

Timer1.interval = 1000

Timer1.enabled = True

End Sub

Private Sub Timer1_Tick (ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs)

Dim readString As String = «»

CWIMAQVision.ReadImage (Image, CurDir() & "\Image.bmp")

NIOCR. ReadText (Image, readString)

Text1.text = readString

EndFunction

This is just one example, but it's the main idea... when I run the program I see the memory leak... I think the NIOCR retains the 'Image' in memory by avoiding the release of memory...

Have you tried to eliminate the CWIMAQVision too?

Please make sure you just after disposing of objects, you use this line of code:

GC. Collect()

Tell me if it works or not and I'll understand with you.

The other approach is to "put those controls on the form directly" as the meory leak could be due to ctrating objects on the timer event (it's a bad practice). So, at least, create objects CWIMAQVision and NIOCR in the Form_Load() event and didn't take them.

Tags: NI Hardware

Similar Questions

  • Can I increase the memory on my old Satellite Pro P100?

    I have a Satellite Pro P100 (P6PA4E-002001EN) with only 512 MB of memory and the desire to know if it can be increased and if so what memory should I buy and it is easy to open the machine and adapt?

    Hello

    You can increase the memory on this laptop amazing plu of 4 GB of RAM.

    RAM modules compatible that you can use to upgrade:
    PA3511U - 1 M 51 (Kit of memory 512 MB DDR2-667)
    PA3512U-1M1G (memory 1 GB DDR2-667 Kit)
    PA3513U-1M2G (memory 2 GB DDR2-667 Kit)

    Check the underside of your laptop and there should be probably set with a cover of Ram screw. Remove it and you will have access to the memory locations.

  • How to increase the memory of the phone to the xperia neo L?

    Hello

    I use the phone Xperia Neo L and I am facing many problems due to the internal memory. At first, I thought this could turn out to be this big problem, but now I am unable to update stuff on my phone because it is already filled with lots of updates. I moved all the mobile apps on my SD card and now I find myself with no memory of the phone even install xperia updates. Is it possible to increase the memory of the phone. Please help me with the problem.

    Thanks in advance.

    Greetings asifsk1992!

    At your convenience, please join our colleagues in Sony Mobile for assistance with your question. You can attach them to this site: http://www.sonymobile.com/global-en/support/contact-us/contact-info/.

    Thank you for your message today!

  • Satelite C670-1DW: how to increase shared memory?

    How to increase shared memory for display from 64 MB to 512 MB?

    Hello

    It is not possible.
    You cannot change the value manually the graphic card driver controls cela and it changes automatically.
    In addition, your laptop supports an internal graphics Intel HD (HM55) card and this chip is not really suitable for the game.

  • Is it possible to increase the memory on iPad 2? Probably an external device?

    Is it possible to increase the memory on my iPad2, without having to buy a new iPad?

    Memory on the iPad is fixed. There are some wireless flash readers who can provide extra storage space, but that does not really increase the memory of the device. It provides just a place to store the content.

  • I want to increase the memory on the 2210CDS Satellite

    I have an old Toshiba Satellite 2210CDS/6.0 I want to give to charity. Until I do, I wanted to increase the memory from 64 MB to 128 MB minimum, because he seems excessive paging of memory under Windows 98, it slows down a lot too.

    The original 64 MB memory module is marked PC100-222-62, Toshiba p/n THLY6480H1FG-80. I ordered since equivalent barrettes memory 128 MB (PC100-222-620) from different sources. They fit well, but the memory is still limited to 64 MB, as evidenced by the page to configure the BIOS and Windows pages 'system '.
    The computer has only one memory location. What I am doing wrong?

    Ruud Hartog

    Hello

    This laptop is very, very, very ;) old

    However, the laptop can be improved up to 160 MB. 64 MB internal memory + 128 MB additional memory module

    The Toshiba recommend using these modules:
    128 MB - PA3005U
    64 MB - PA3004U

    Usually after upgrading the BIOS should automatically recognize the module.

  • Equium P200D - how to increase the memory of the GPU?

    Hello

    I have a portable Satellite P200D-139 and I was wondering if there is a way to increase the memory of the GPU?

    This model of laptop is not known to me, but if there are shared memory graphics card you can extend it if you upgrade RAM.
    Check the specs of the laptop and see what amount of RAM max for this model of laptop is. I assume it must be 4 GB.

    By the way: check http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=43021

  • HP Compaq TC4200 - increasing shared memory graphics

    Hello world

    I bought an another HP TC4200 on ebay, I was wondering if I could increase safely shared graphics memory. I've played Netflix and Hulu thin on the 1st 4200, but with the nexted that I hoped to spend to play HD videos since I connect it to my TV.

    Thank you

    Andy

    (Got tired of paying Microsoft $10 just to watch Netflix on my XBOX, since I hardly play on it)

    You can not directly increase graphics memory.
    Its not like RAM, where you can add more memory with a different RAM slot.

    You may need to install the new graphics card if supported.

  • How to increase virtual memory

    I need to increase my memory vertul on my computer and do not know how.

    Hello

    I suggest you refer to the Windows Help section and check if this may help:

    Change the size of virtual memory:
    http://Windows.Microsoft.com/en-us/Windows7/change-the-size-of-virtual-memory

    It will be useful.

  • sound recorder, no not enough memory available to complete this operation. Quit one or more applications to increase available memory, and then try again.

    I tried to use sound recorder to test a microphone and it came with an error message after pressing the record and then he said, sound recorder, not stop not enough memory available to complete this operation. Quit one or more applications to increase available memory, and then try again. This issue is out of nowhere because he has never had this problem before. It's a brand new computer that ive built from the bottom up, and I have 4 GB of memory. only a little more than 2 is actually identified by windows xp, however. Ive looked in the Task Manager and it says I have 2 GB of free, so I don't know what to do

    Hi superconfused123,

    This problem occurs because of a design limitation in the tape recorder.

    You can check the link below: you receive a "not enough memory to complete this operation" error message when you try to record a .wav file using sound recorder: http://support.microsoft.com/kb/284893

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • increase virtual memory

    in trying to increase my virtual memory, he always tells me that I need to enter the value of the file size of page? can anyone help.

    Why do you think that you need to increase virtual memory?

    No one can help you without more information (well, they can try, but it might be only guess).

    If you mean that you see a message like this:

    Virtual memory minimum too low: your system is low on virtual memory.  Windows is increasing the size of your virtual memory paging file.

    This means that Windows XP is to let you know that he does his work.  The message is not an error message - this is an informational message.

    If XP thinks that the size of the swap file (usually c:\pagefile.sys) is too small to accommodate your day-to-day transactions, it will adjust the paging file to expand the pagefile and display this message as it does.  It is not necessarily a 'problem', but the message is boring.

    Sometimes, the message indicates someone was tampering with the XP of the paging file settings to try to solve another problem that usually has nothing to do with their paging file and resolve things inefficiently.

    This could mean that the settings have been adjusted for certain values that don't make sense for the configuration of the system.  Unless we know the system better, you can't just pick certain values out of the air and that your system behaves effectively.  You might not see the message again, but this does not mean that the settings are correct.

    This could mean that the settings have never been properly in the first place when you first install of XP and things must be properly configured.

    Sometimes, as your system configuration changes over time and other applications are running and get bigger, you may add additional RAM to your system to accommodate things (or run the number of requests).

    At least that learn you more about managing memory than Windows XP, it is usually best to simply let XP manage the size of your virtual memory paging file.

    To see what your current, make settings right click post work, properties, advanced, performance settings, Advanced tab, virtual memory, and then click the button change.

    Make a note of the current settings in case you need to change their return more later.

    The best setting for the size of swap file is usually going to be:

    System managed size

    Right click my computer, properties, Advanced tab, Performance... Settings, Advanced tab, virtual memory... Change.

    Note the current setting, so you can change things later if you have a problem.

    If it is already done, on the size of swap file:

    System managed size

    Don't forget to click on Set (to be defined), OK (several times) and then restart your computer.

    Windows XP will attempt to affect a swap file approximately 1.5 times the total amount of RAM installed on your system.  To manage the size of paging file Windows XP is enough for most configurations.

    If your system is not set to the size of the managed system, you must determine how it changed and why (usually a bad reason), make a note of the current settings to change them back later if necessary, and then change the setting to the size of the managed system, click on the Set button and then click on apply to apply the changes (you will be asked to restart).

    "Because someone told me to" is not a good reason to start making adjustments to the size of pagefile.  Setting just above to enlarge it by an arbitrary value can ease the symptoms of the problem and stop message, but may not result in the best configuration for your system.

    All the advice to 'Increase the value of the initial and maximum size to a higher value' are misinformed ideas that come from not knowing how to work XP - How do you increase it and what happens if you increase too?

    If you want your system to operate as efficiently as possible, you must understand what is happening and fix it properly and not only begin to try things or make some arbitrary adjustments.

    The size of the pagefile can really need adjustment, but you should at least try to know what you're doing and why you need to do.  It is unlikely that anyone can tell you how to adjust your settings properly without more information.

    If you don't know what are the best settings, or if you are not sure what should be your settings and need help looking at your stuff, follow these steps:

    Click Start, run and enter in the box:

    Msinfo32

    Click OK, and when the system info summary appears, click on edit, select all (Ctrl-A), copy (Ctrl-C) and paste (Ctrl-V) the information back here in your next reply.

    There will be some personal information (such as the user name and the name of the system), and what appears to be personal information for you, simply delete the personal information of the pasted information.

    This minimize back Q & A and eliminate the guesswork and assumptions.

  • try to increase the memory and speed up my computer

    am trying to speed up my computer also need to increase my memory in Manager tasks how can I know which processes I can also safely remove how to disable Hibernate implementation and free up disk space

    Hello
     
    Rather than close the process that could be very important for the proper functioning of your machine, I wish that you follow the below mentioned articles.
     
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Increase dedicated memory graphic Skylake HD

    Hey :). I come from a Lenovo machine (which I returned due to building defects).

    In the Lenovo BIOS, could increase dedicated graphics memory. XPS 13 remains to 128, with more available as "shared." Does this affect performance? How can you increase the memory dedicated XPS 13? For Lenovo, it was possible, and it was also Skylake.

    There is no way - the 128 M is the Z-buffer - not the dedicated video memory (in fact NO video memory dedicated - is all the system RAM).  The driver will allocate as much RAM system needed up to the maximum allowed by the total RAM in the system - there is no way to send it manually.

  • I would like to know how to get a debugger and how to increase the memory on my computer of mocarosoft 7 HP

    I tried to find information on the question of the debugger, but I'm at a total loss about how to increase the memory of the computer.  Please help me, because I have school work on this 'thing'.

    The Windows debugger is included in the SDK

    http://www.Microsoft.com/en-US/Download/details.aspx?displaylang=en&ID=8279

    http://msdn.Microsoft.com/en-us/Windows/hardware/gg463009.aspx

  • Can I increase the memory?

    How can I increase the memory from 2 GB to 4 GB?

    Hello

    Check with your mother system/card manufacturer or a supplier of memory as Crucial,
    Kingston or PNY.

    Computer memory upgrade
    http://compreviews.about.com/od/memory/BB/aabybmemup.htm

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for