FalconView (#1) - ICallback3 (#20) - Message List
Hi there!
I'm using the 4.3 beta version of FV (just upgraded from my previous 4.1). I'm developing in C# and cannot get OnFalconViewReady? to fire in ICallback3. All the functions in ICallback work fine.
I see several references to this in the past questions, but no clear idea as to what the problem might be.
Thanks! matt
-
Message #35
Per one of our developers (DVL):
OnFalconviewReady? will never be called on a plugin since Falconview is already started when the plugin is created. It only fires for external clients (if Falconview is not already started).
joelodom09/23/09 08:59:09 (4 years ago) -
Message #42
I am using this with a client. In my program I start FalconView (making sure it was previously closed) by calling MapClass?(), then have code to add a layer and objects in the OnFalconViewReady? function but it doesn't fire.
My previous work around was to continually call GetMapDisplay? and check until it didn't return an error, but that work around did not work in 4.3. Since that really wasn't the best way to do it anyway I decided to try OnFalconViewReady? again.
I think this might be due to the way I pass in my Callback class to RegisterWithMapServer. If I want Callback and Callback3 do I need to define them as separate classes and then pass an array to RegisterWithMapServer?
Right now I'm defining my Callback class like so:
public class fvCallback: fvw.ICallback, fvw.ICallback3
I then make an instance and pass it into RegisterWithMapServer. I'm going mostly by the example C# Layer_Editor code but that IS a plugin if I'm understanding things correctly.
I'm pretty sure I've misunderstood something along the way. Any other example C# code out there?
mhanson09/23/09 13:33:26 (4 years ago) -
Message #63
Any suggestions on this?
mhanson09/29/09 09:55:22 (4 years ago)

