Access violation with TSLCRealMatrixBuffer
|
06-19-2012, 08:08 AM
Post: #1
|
|||
|
|||
Access violation with TSLCRealMatrixBuffer
Hi
I write here because I am now debugging for hours and I do not have any clue what I am doing wrong. I got two pointers to two TSLCRealMatrixBuffers. The first one contains little frames from a movie, each row of the buffer is one frame, and the second one contains a 2 if that frame is a movie frame and a 1 if that frame is an advertisement frame. I am now creating two new buffers which I fill with the old data. I do not copy all rows. In the new buffers I want the same amount of movie and ad frames. When I run the program I get every time an access violation either on newTrainigData or on newResponses. Strange is that it occurs in different lines sometimes when I copy the trainingData and sometimes when I copy the responses and rarely when I want to get the responses in the calling method. The access violation does not occur at the first access. The data is copied in a loop and the access violation occurs at i=16 or 54 or something. The debugger shows me that the pointer to the buffer is not NULL and the address of the pPasBuffer is not NULL too. But this FInstance property of the buffer is either NULL or it says ?????. Are there any problems with pointers to TSLCRealMatrixBuffer? Or am I doing something wrong? I appended the C++ Builder source code. SignalLab Version is 5.0.2 OS is Windows 7 x64 Code: int noAdFrames = 0; Feel free to ask more questions about the program or the code. This bug drives me crazy! benjamin |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Access violation with TSLCRealMatrixBuffer - benjamin - 06-19-2012 08:08 AM
Einar, Ingvar, Giacomo and Murak Equatorial guinea - RolandPref - 12-02-2016, 08:04 PM
|
User(s) browsing this thread: 1 Guest(s)