realbasic-plugins
[Top] [All Lists]

Re: Plugin crashes... need help

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Plugin crashes... need help
From: "Theodore H. Smith" <delete at elfdata dot com>
Date: Wed, 26 Jul 2006 12:16:56 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <FA64BD83-6AB6-4A98-9E7E-44054A7DFEDB at mobleybros dot com> <98D37E29-444C-4225-88C7-F43BD747E625 at elfdata dot com> <5D5A7E1F-7814-46CD-94E8-D0816A089FE7 at mobleybros dot com> <CCA6514B-3D1A-4F89-BB4E-3D759CB20ADA at elfdata dot com> <8C48817A-DDEA-4FFD-82D0-544A733ED621 at mobleybros dot com> <D930E8E9-5C97-4193-B2AB-B6F273492944 at elfdata dot com> <073DCDFD-22C7-4165-90F5-32B6868D81F9 at mobleybros dot com>

On 26 Jul 2006, at 03:05, Phil M wrote:

On Jul 25, 2006, at 7:44 PM, Theodore H. Smith wrote:

No. Just cut and paste those into a proper definitions .cpp file, the way all the other plugin authors including me do it. Do not put data into .h files.

Even if it doesn't fix the problem now, it'll save you a problem in the future.

I don't see how this would matter, but I will try it tomorrow morning. I was getting some weird crashes before, so I rewrote and combined some of my code and they did not crash... so it sounds like you have a valid point.

So are you saying that you put all code your code for the entire plugin into a single .cpp file?

No.

One file has the REALmethodDefinitions.

Other files have the functions.

You can put the REALmethodDefinitions into the same file as the functions, spread the definitions out, just don't put them into EVERY file!!

--
http://elfdata.com/plugin/



_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>