Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
VB.NET
my windows application hang after some time 

i am using External DLL and perform that dll operation in application.on button click i perform dll operation. but after three four click application hangs.

my code is

C#
private Thread objnewth;


on timer tick
C#
if (objnewth == null || !objnewth.IsAlive)
                {
                    objnewth = new Thread(new ThreadStart(objmain.backgroundprocess));
                    objnewth.IsBackground = true;
                    objnewth.Priority = ThreadPriority.Highest;
                    objnewth.Start();
                    //backgroundprocess();
                    BtnStartStop.Text = "Count:-" + theCount;
                    timer1.Stop();
                    timer1.Start();
                }
Posted
Updated 4-Feb-16 19:37pm
v4

1 solution

There is a problem with the external dll. There could be memory leaks or other issues (connectivity etc.)
Check your CPU and memory usage after the program hangs.

Check the vendor's documentation to make sure you are passing the right set of data to them.
Also check if they have some hardware restrictions (OS support / RAM requirements) on their end.
 
Share this answer
 
Comments
Ghanshyam Nimbalkar 15-Feb-16 6:32am    
CPU usage is 25 after my application hang

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900