Xojo Conferences
XDCMay2019MiamiUSA

StackOverflowException seems to come from a plugin (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Re: StackOverflowException seems to come from a plugin --> more
Next thread: Conversion from native datebase time structures to RealBasic time structures


Re: class extensions...   -   Jan Erik Moström <
  StackOverflowException seems to come from a plugin   -   Alexander Cohen
    Re: StackOverflowException seems to come from a plugin   -   Thomas Tempelmann
     Re: StackOverflowException seems to come from a plugin   -   Alexander Cohen
    Re: StackOverflowException seems to come from a plugin   -   Thomas Tempelmann
     Re: StackOverflowException seems to come from a plugin   -   Alexander Cohen
   Re: StackOverflowException seems to come from a plugin --> more   -   Alexander Cohen

StackOverflowException seems to come from a plugin
Date: 06.09.02 20:37 (Fri, 06 Sep 2002 15:37:27 -0400)
From: Alexander Cohen
I have a plugin that creates a REALobject (a class from the same plugin)
then sends that object through a controls event (a control from the same
plugin). When that event is fired a few times, I will sometimes get a
StackOverflowException, And this only happens in a built app, it wont happen
in the IDE when debugging. How does RB find the exception in my plugin? Is
there any way for me to know what's going on and what is making this
exception fire?

Thanx,
Alex

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: StackOverflowException seems to come from a plugin
Date: 06.09.02 22:00 (Fri, 6 Sep 2002 14:00:38 -0700)
From: Thomas Tempelmann
Alexander Cohen wrote:

> When that event is fired a few times, I will sometimes get a
>StackOverflowException,

This call is not made from a callback or system event, or task
or something that could use a separate stack, does it? Because
that is technically not allowed in plugins.

Thomas

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: StackOverflowException seems to come from a plugin
Date: 06.09.02 22:09 (Fri, 06 Sep 2002 17:09:19 -0400)
From: Alexander Cohen
> Alexander Cohen wrote:
>
>> When that event is fired a few times, I will sometimes get a
>> StackOverflowException,
>
> This call is not made from a callback or system event, or task
> or something that could use a separate stack, does it? Because
> that is technically not allowed in plugins.

It's not exactly a callback, it's a routines that is in a table with lot's
of others wich I pass to my a shared library from my plugin. I don't know if
the shared library uses a separate stack. How would I get that info? What's
weird, is that it works fine in the IDE, but not in a built app. And
usually, if something breaks, it's because it's in the IDE, so you just
don't call that when in the IDE and only call it in your built app!

Alex

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: StackOverflowException seems to come from a plugin
Date: 07.09.02 01:18 (Fri, 6 Sep 2002 17:18:35 -0700)
From: Thomas Tempelmann
Alexander Cohen wrote:

> it's a routines that is in a table with lot's
>of others wich I pass to my a shared library from my plugin.

As long as the "callback" comes from a direct execution path
back from you call into the lib, it should not change the stack.
Only if you call into the lib returns and _then_, later, the
lib makes a call back to your code, you're in violation of RB's
calling conventions, which can easily leads to stack overflows
and worse.

Thomas

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: StackOverflowException seems to come from a plugin
Date: 07.09.02 02:08 (Fri, 06 Sep 2002 21:08:37 -0400)
From: Alexander Cohen
On 9/6/02 8:18 PM, "Thomas Tempelmann" <<email address removed>> wrote:

> Alexander Cohen wrote:
>
>> it's a routines that is in a table with lot's
>> of others wich I pass to my a shared library from my plugin.
>
> As long as the "callback" comes from a direct execution path
> back from you call into the lib, it should not change the stack.
> Only if you call into the lib returns and _then_, later, the
> lib makes a call back to your code, you're in violation of RB's
> calling conventions, which can easily leads to stack overflows
> and worse.

That does explain a few things for other plugins I am working on, but this
is not he case here. I've narrowed the problem down to RB code. Don't know
where yet, but it's not the plugins fault! :)

Alex

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>