Dynamic Compilation with Object declaration does not work

Startbeitrag von Prolay Sarkar am 04.03.2009 21:43

Hi,

I am facing a strange problem when i am dynamically compiling a few set of lines. The dynamic compilation works fine when there is no object variable declaration and in a normal project it works fine but when i deploy as a webservice the object declaration gives an error. I am including the classes in my WebService project
/////////////////////////////////////////////////////////////////////
PROCEDURE New_Procedure()
source is string=[
ds is Class1
ds:str ="hello"
ds:str1 ="World"
b is buffer
Serialize(ds,b,psdXML)
result b
]
wlog is int=fOpen("c:\log_wbserv\log.txt",foCreateIfNotExist)
sResult is string
sCompileResult is string
sCompileResult = Compile("Dynamic_Proc", source)
fWriteLine(wlog,CR+CR+CR+source+CR+CR+CR+sCompileResult)

SWITCH sCompileResult
CASE "": sResult = ExecuteProcess("Dynamic_Proc", trtProcedure)
CASE "ERR": sResult = "Unable to compile. "+CR+ErrorInfo()
CASE sResult = sCompileResult
END
fClose(wlog)
RESULT sResult
////////////////////////////////////////////////////////////////////////////////////////////////////////////
Class1 is included in my project and the log file output is as follows


//////////////////////////////////////////////////////////////LOG.TXT//////////////////////////////
ds is Class1
ds:str ="hello"
ds:str1 ="World"
b is buffer
Serialize(ds,b,psdXML)
result b


Class1 type unknown.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
I am not able to understand why the Class is not getting recognized. i have tried with other objects but the same issue appears. Can anyone say what I am doing wrong and
how this issue can be resolved.

Help Needed!!


Regards,
Prolay




Antworten:

Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.