CallSub issues

EduardoElias

Active Member
Licensed User
Longtime User
Hi there,

I am in trouble in a simple thing, I use extensively callsub but I have found a situation that I have no idea what is happening.

I have the structure:

class Dataset -> Class FieldDefList -> Class Field

Each one as a class on the same project, as class that was dimmed

When an Field data is updated it raises an Event, that was previously stored, this event is a callsub. I have created a more sophisticate way to store an event as a Type TNotifyEvent (Module As Object, Target As String)

but at some point I see that the sub stack is 6 levels deep and the event is fired to call a sub on main, that was created as "me" and "OnUpdate".

however the sub does not get called, no errors no nothing. I have changed the code to simple and direct calling, no variables no nothing, just the direct calling callsub(main, "OnUpdate") and even that did not work!!!

I have added a breakpoint on the sub OnUpdate at main. Never get stopped there.

I was wondering if the stack level is the problem? Should be, but I have no idea right now why is not working.

Any Idea?

Eduardo
 
Top