Invalid Pointer Operation GRRRR

Started by Ingolf2,

Ingolf2

Hi there,

This is not really BASS related I guess

I am irritating my ass off on the invalid pointer operation exception. I don't know how to solve this.   :'(

My app does this: BASS sends its buffer to a custom stream, then the custom stream calls all channels (channels in my app) to record from, mix to, play from, etc, and the channels call other events. Everything is based on the one call by the custom stream because everything is nicely synced then.

The one thing is that damn invalid pointer operation. I get this only sometimes when freeing a pointer, or (I think) when I try to access an array at the same time (is this even possible, because I don't think BASS calls the next StreamProc while the other is not yet done?)

I don't understand. Can anyone help me out? Give me any tips to check for invalid pointer operation bugs?  :'(

Olego

What language (I assume C) and what compiler are you using?  Does it have a debug feature?  Sometimes it's possible do see on what line a program crashes, and all the variables at that point in time--it helps.

~Olego~

Ingolf

I use Delphi.

I know about breakpoints and the call stack etc, and I was indeed thinking about this. I mean that the IDE tells me what line it is crashing on etc. It does that with all other exceptions, except when they come from a call from outside the application itself, like a custom stream from the BASS DLL... I think.