Xojo Conferences
XDCMay2019MiamiUSA

Invalid Plugin Method Format in RB2k5? (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: AddressOf equivalent?
Next thread: Editor Window REALproc required?


macosx and unix paths   -   GOLD
  Invalid Plugin Method Format in RB2k5?   -   Alfred Van Hoek
   Re: Invalid Plugin Method Format in RB2k5?   -   Mars Saxman

Invalid Plugin Method Format in RB2k5?
Date: 25.06.05 14:50 (Sat, 25 Jun 2005 09:50:43 -0400)
From: Alfred Van Hoek
While 5.5.5 comes up with an invalid method format message, RB2k5 does
not. In RB2k5 one needs to compile to get a failed assertion "overwrote
start of block", which 5.5.5 issues after the invalid format message.
5.5.5 is more helpful in this case.

I tried to load a method of a class like: "mymethod(name as string,
function as ptr)"

The problem is "ptr". Changing it to MemoryBlock will cure it.

I assume that ptr is only reserved for memoryblock and declares?

Alfred

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Invalid Plugin Method Format in RB2k5?
Date: 27.06.05 17:26 (Mon, 27 Jun 2005 09:26:33 -0700)
From: Mars Saxman

On Jun 25, 2005, at 6:50 AM, Alfred Van Hoek wrote:

> While 5.5.5 comes up with an invalid method format message, RB2k5
> does not. In RB2k5 one needs to compile to get a failed assertion
> "overwrote start of block", which 5.5.5 issues after the invalid
> format message. 5.5.5 is more helpful in this case.

Perhaps, but it's a bug either way. It should only be raising the
error message, not failing the assertion.

> I tried to load a method of a class like: "mymethod(name as string,
> function as ptr)"
>
> The problem is "ptr". Changing it to MemoryBlock will cure it.

This also sounds like a bug - though "function" is a reserved word,
and I would not recommend using it as a parameter name. (Even if it
works right now, such practice is likely to break in the future.)

Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>