Skip to main content
Participant
July 25, 2007
Question

Bug in ColorGrid (sample UI plugin)?

  • July 25, 2007
  • 2 replies
  • 1393 views
Folks -

I've been working my way through the ColorGrid example, as I'll be using an arb param in the plugin i'm working on. It's not working correctly, and I'm not sure why.

To reproduce the error, open a new composition, add a solid, and then apply the ColorGrid effect. Then Ctrl-C copy the effect and paste into a text editor:

BLAMMO.

Debug Assertion Failed!

Program: ...
File: .\tcsncat_s.inl
Line: 72

Expression: (L "Buffer is too small" && 0)

I think there's some sort of bug in the Arb_Print function...I know I found one in there, on line 294:

PF_SPRINTF(bufAC, "%d", countL)

shouldn't that be tabAC?

Anyway, if someone could have a look at that to help me out, I'd appreciate it.

Regards,
Erik
This topic has been closed for replies.

2 replies

Bruce Bullis
Legend
August 1, 2007
True enough. Consider the bug reported.
Participant
July 26, 2007
Actually, I've found one of the bugs in the code. It has nothing to do with the bufAC/tabAC thing in my previous message.

In ColorGrid_Arb_Handler.cpp, there's a function called AEFX_AppendText, which is supposed to help you put text into the string used for the copy/paste functionality of an effect. Unfortunately, the MSWindows code is not correct. The strncat_s code should read:

#ifdef MSWindows
strncat_s(destAC, dest_sizeL, srcAC, strlen(srcAC));
#else

The printing code will then work, although it's not really a complete piece of code. It appears to have been left in the middle of some edits or something, and is really a bad example of how the information should be printed.

Erik