Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi,
We are trying to create a sample actor and try to access the Actor through TrigML by accessing the actor like /actor/sampleactor/somenode.
As we didn't find a good document on Actor development from scratch we are facing an issue of connecting the Trig and Actor. We have initialized the MIMEtype in the actor MIF as qc-actor/sampleactor.
we want to know that what would be starting point for an actor? We have a SampleActor_New() function which creates nodes and performs other operations. But before the New function, what function needs to be implemented as a starting point for the actor (like AEEClsCreateInstance in other extensions).

We are facing following error :-

xmod_TrigApplet.c:143 - xmod_TrigApplet: Creating TrigApplet: clsId=34674a
LuaContext.cpp:796 - error loading module 'luadebuggerchannel' from file 'luadebuggerchannel': (null)
DLLModLoader.c:120 - (0x1) IMODULE_CI of 0x34674A failed
appmgrdaemon.c:107 - SysError: type=0 cls=0x0034674A

Any help regarding this would be very very helpful.

Thanks and Regards,
Alhad

Hi Alhad
I have something that i can share but i can't see any link here to upload/attach.
GM

Hi Alhad
I have something that i can share but i can't see any link here to upload/attach.
GM

Hi GM,
If possible can you please mail me on eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%61%6c%68%61%64%2e%6d%61%69%72%61%6c%40%61%72%69%63%65%6e%74%2e%63%6f%6d%22%3e%61%6c%68%61%64%2e%6d%61%69%72%61%6c%40%61%72%69%63%65%6e%74%2e%63%6f%6d%3c%2f%61%3e%27%29%3b')) . Its very urgent for us to resolve this issue.
Also we are not able to debug any C code through VS 2005. Any pointers for the same would also be helpful.
Thanks and Regards,
Alhad

Hi GM,
If possible can you please mail me on eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%61%6c%68%61%64%2e%6d%61%69%72%61%6c%40%61%72%69%63%65%6e%74%2e%63%6f%6d%22%3e%61%6c%68%61%64%2e%6d%61%69%72%61%6c%40%61%72%69%63%65%6e%74%2e%63%6f%6d%3c%2f%61%3e%27%29%3b')) . Its very urgent for us to resolve this issue.
Also we are not able to debug any C code through VS 2005. Any pointers for the same would also be helpful.
Thanks and Regards,
Alhad

Hi Alhad,
Remember that actors are essentially extensions and written in a similar way. The general idea is as follows --
1. Must have a function xModule_CreateInstance, generally defined as macro AEEMOD_CREATEINSTANCE that checks the classID and calls our initial "new" function; let's call it SampleActor_New().
2. SampleActor_New() sets the AddRef, Release, and CreateNode functions in the VTable.
3. Also add a CreateNode() or CreateRootNode() function. This function when it is called will create a CacheContainer or StructContainer that will become a part of the VFS tree. It will be the node /actor/sample. All other nodes that this actor subsequently creates will be children nodes of this Root node.
4. You will also need a HandleEvent() function in the model for the Root node. All communication with the actor will happen through the HandleEvent() function.
Hope this helps. If you wish to share your code for specific questions, please feel free to file an SR and attach your source.
Regards,
Anand
alhad_mairal wrote:Hi,
We are trying to create a sample actor and try to access the Actor through TrigML by accessing the actor like /actor/sampleactor/somenode.
As we didn't find a good document on Actor development from scratch we are facing an issue of connecting the Trig and Actor. We have initialized the MIMEtype in the actor MIF as qc-actor/sampleactor.
we want to know that what would be starting point for an actor? We have a SampleActor_New() function which creates nodes and performs other operations. But before the New function, what function needs to be implemented as a starting point for the actor (like AEEClsCreateInstance in other extensions).

Hi Alhad,
Remember that actors are essentially extensions and written in a similar way. The general idea is as follows --
1. Must have a function xModule_CreateInstance, generally defined as macro AEEMOD_CREATEINSTANCE that checks the classID and calls our initial "new" function; let's call it SampleActor_New().
2. SampleActor_New() sets the AddRef, Release, and CreateNode functions in the VTable.
3. Also add a CreateNode() or CreateRootNode() function. This function when it is called will create a CacheContainer or StructContainer that will become a part of the VFS tree. It will be the node /actor/sample. All other nodes that this actor subsequently creates will be children nodes of this Root node.
4. You will also need a HandleEvent() function in the model for the Root node. All communication with the actor will happen through the HandleEvent() function.
Hope this helps. If you wish to share your code for specific questions, please feel free to file an SR and attach your source.
Regards,
Anand
alhad_mairal wrote:Hi,
We are trying to create a sample actor and try to access the Actor through TrigML by accessing the actor like /actor/sampleactor/somenode.
As we didn't find a good document on Actor development from scratch we are facing an issue of connecting the Trig and Actor. We have initialized the MIMEtype in the actor MIF as qc-actor/sampleactor.
we want to know that what would be starting point for an actor? We have a SampleActor_New() function which creates nodes and performs other operations. But before the New function, what function needs to be implemented as a starting point for the actor (like AEEClsCreateInstance in other extensions).

Thanks Anand for your reply. One more thing we wanted to discuss was whatever actor code we have written, we are not able to debug on VS 2005. the breakpoint is not hit when we try to access the actor through TrigML. Also on VS 2005 IDE the break points say that No symbols loaded . Any help regarding this would really be very helpful.
Regards,
Alhad

Thanks Anand for your reply. One more thing we wanted to discuss was whatever actor code we have written, we are not able to debug on VS 2005. the breakpoint is not hit when we try to access the actor through TrigML. Also on VS 2005 IDE the break points say that No symbols loaded . Any help regarding this would really be very helpful.
Regards,
Alhad

Hi Anand,
Thanks for your response on the forum. Actually we are trying to create a new actor and trying to access the same through TrigML. As we do not have any documentation on this on BREWMP site, we are facing some problems. As u had mentioned that actors and BREW extensions, what would be implementation to make a normal extension an actor? we have created a new extension in VS 2005 for BREW but it doesn't contain any actor related framework. For an extension AEEClsCreateInstance would be the first function called.
Also what would be changes in actor MIF file and TrigML MIF file so that TrigML and actor conversation would take place. We are not able to connect between TrigML and Actor. It would be great if you can provide some sample code or steps to do the same./
Thanks and Regards,
Alhad

Hi Anand,
Thanks for your response on the forum. Actually we are trying to create a new actor and trying to access the same through TrigML. As we do not have any documentation on this on BREWMP site, we are facing some problems. As u had mentioned that actors and BREW extensions, what would be implementation to make a normal extension an actor? we have created a new extension in VS 2005 for BREW but it doesn't contain any actor related framework. For an extension AEEClsCreateInstance would be the first function called.
Also what would be changes in actor MIF file and TrigML MIF file so that TrigML and actor conversation would take place. We are not able to connect between TrigML and Actor. It would be great if you can provide some sample code or steps to do the same./
Thanks and Regards,
Alhad

Hi Alhad
In the VS 2005 go to Project menu
then
Properties
Click "Configuration Properties"
Click "Debugging"
Change "Debugger Type" value to "Native Only"
I hope this will be of some help to you
GM

Hi Alhad
In the VS 2005 go to Project menu
then
Properties
Click "Configuration Properties"
Click "Debugging"
Change "Debugger Type" value to "Native Only"
I hope this will be of some help to you
GM

Hi Alhad,
I have not tried using VS 2005 in the past but debugging in general shouldn't be a problem. Have you made sure that the IDE is attached to the Simulator process?
Secondly, and more likely, your Root node has not been created correctly so the events sent from TrigML don't get to your Actor.
If you have access to the BMP Softkey Application Suite, you should be able to find plenty of examples of Actor code.
Thanks,
Anand
alhad_mairal wrote:Thanks Anand for your reply. One more thing we wanted to discuss was whatever actor code we have written, we are not able to debug on VS 2005. the breakpoint is not hit when we try to access the actor through TrigML. Also on VS 2005 IDE the break points say that No symbols loaded . Any help regarding this would really be very helpful.
Regards,
Alhad

Hi Alhad,
I have not tried using VS 2005 in the past but debugging in general shouldn't be a problem. Have you made sure that the IDE is attached to the Simulator process?
Secondly, and more likely, your Root node has not been created correctly so the events sent from TrigML don't get to your Actor.
If you have access to the BMP Softkey Application Suite, you should be able to find plenty of examples of Actor code.
Thanks,
Anand
alhad_mairal wrote:Thanks Anand for your reply. One more thing we wanted to discuss was whatever actor code we have written, we are not able to debug on VS 2005. the breakpoint is not hit when we try to access the actor through TrigML. Also on VS 2005 IDE the break points say that No symbols loaded . Any help regarding this would really be very helpful.
Regards,
Alhad

Thanks Anand and GM for your replies.
We have referred the BMP SAS and tried to follow the same implementation for our sampleactor. We have implemented the AEEMOD_CREATEINSTANCE function in our actor and checked the actor classid in the function.
We have taken care of putting the proper MIME type in actor MIF and put proper base class (APPLOADER classid) in the MIF. In trig we are just trying to access the actor as /actor/sampleactor but we found that our actors AEEMOD_CREATEINSTANCE function itself is not getting called. Are we missing anything here ? we think that while we are accessing the actor through trig, BREW is not able to find our actors classid and CReateinstance function. Wh

Thanks Anand and GM for your replies.
We have referred the BMP SAS and tried to follow the same implementation for our sampleactor. We have implemented the AEEMOD_CREATEINSTANCE function in our actor and checked the actor classid in the function.
We have taken care of putting the proper MIME type in actor MIF and put proper base class (APPLOADER classid) in the MIF. In trig we are just trying to access the actor as /actor/sampleactor but we found that our actors AEEMOD_CREATEINSTANCE function itself is not getting called. Are we missing anything here ? we think that while we are accessing the actor through trig, BREW is not able to find our actors classid and CReateinstance function. Wh

Hi,
I tried to make a "new Actor project" through "Setting Up an Actor Project" in
CreatingActorsForTrigs.chm document.
but, I'm faced on an Error below..
"DLLModLoader.c:120 - (0x1) IMODULE_CI of 0x66F6CD failed"
How can I handle this problem?
Please let me know the solution...
Regards,
Don.

Hi,
I tried to make a "new Actor project" through "Setting Up an Actor Project" in
CreatingActorsForTrigs.chm document.
but, I'm faced on an Error below..
"DLLModLoader.c:120 - (0x1) IMODULE_CI of 0x66F6CD failed"
How can I handle this problem?
Please let me know the solution...
Regards,
Don.

Hi don_dev,
Your post simply states that you see this error in your log. What is the impact on your Actor? Does your Actor launch? This CreateInstance failure may be related to some other module.
Regards,
Anand

Hi don_dev,
Your post simply states that you see this error in your log. What is the impact on your Actor? Does your Actor launch? This CreateInstance failure may be related to some other module.
Regards,
Anand