Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Tracking down a certain debug error...

  • 04-08-2006 07:03PM
    #1
    Registered Users, Registered Users 2 Posts: 6,790 ✭✭✭


    Hi everyone,

    I'm hoping that someone with a bit more C++ development experience than myself can help out here.

    I'm using Visual Studio 6.0 to develop a DLL that will function as an audio effects processing plug-in (VST format, in case anyone is familiar with it). I'm using an SDK for the development, this includes a number of sample VC++ 6 projects which build and run without any trouble.

    The problem is this: when I try to load my plug-in into a host application, I get an debug error. It varies depending on the host I use, but looks something like this:
    Debug Error!

    Program: C:...cubasesx.exe

    DAMAGE: after Normal block (#46) at 0x.....

    Abort/Retry/Fail

    I'm led to believe this is due to a memory corruption/overrun of some sort. Problem is, my debugger won't give me any clues as to what is going on... Does anyone have any advice on what strategies I could use to track this bug down, apart from going through my thousands of lines of code, line by line...

    Thanks!


Comments

  • Closed Accounts Posts: 1,567 ✭✭✭Martyr


    what debugger are you using?
    does the VST crash without a debugger being present?
    what version of cubasesx are you using?
    sx3 is protected by syncrosoft dongle software
    previous versions had copy protection mechanisms also to prevent debugging.


  • Registered Users, Registered Users 2 Posts: 6,790 ✭✭✭cornbb


    Thanks for the reply - I actually got the problem fixed at 4am last night. It was caused by the string conversion functions supplied with the SDK (apparently 2.4, the version I'm using, is a piece of sh*t)

    I'm using the Visual C++ 6.0 debugger and SX2 - yes, it did crash without the debugger. Up until now, I was using Tobybear Minihost, an excellent free VST host, to do all of my debugging.


Advertisement