Forums
Plotting application - Solution crashes in VS2010 - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: .NET 2.0 - 4.0 Components (/forum-8.html)
+--- Forum: PlotLab (/forum-29.html)
+--- Thread: Plotting application - Solution crashes in VS2010 (/thread-81.html)



Plotting application - Solution crashes in VS2010 - paulstav - 12-21-2011 09:45 PM

Hello,

I just started getting familiar with the library and I have developed a sample application that receives a analog data stream via a TCP threaded server and attempts to plot the spectrum of the received data.

My data stream of Int16 values is in a List and I add data to an IntegerBuffer.

In turn the IntegerBuffer sends the data to a GenericInt using :
genericInt1.SendStartCommand(500000); // 500 KHz sampling rate
genericInt1.SendData(mybuf);

Next step, the GenericInt output pin is connected to a Int2Real component which in turn is connected to the FFT component. Finally the spectrum output pin of the FFT is connected to a scope with 1 channel defined.

On the FormClosing() function, I have also added the command :
genericInt1.SendStopCommand();

Everything seems to be working OK at start BUT, after debugging my code 3-4 times, the Visual Studio 2010 IDE crashes and I cannot reopen the solution,at least the Design view of the form. Furthermore Once the crash occurs, I cannot execute the application not even from the Release folder as it halts as soon as I execute.

I have attempted to remove the Scope control from the Form while keeping everything else and the application seems to behave properly.

I would really appreciate it if you have any indication as to why this could be happening as I would to further familiarize myself with your libraries.