I'm having a similar problem.
string material = "MagnesiumBullet";
@billboardSet.setMaterialName(material);
Results in the following error:
Object handle is not supported for this typeThe following registration was used:
result = ScriptManager::engine->RegisterObjectMethod("BillboardSet", "void setMaterialName(const string& inout)", asMETHODPR(BillboardSet, setMaterialName, (const string&), void),asCALL_THISCALL); RakAssert(result>=0)
I'll check the copy constructor again, but string should be a built in type.
This is the line of code where it errors: (as_compiler.cpp)
void asCCompiler::CompileExpressionPreOp(asCScriptNode *node, asSExprContext *ctx){ int op = node->tokenType; IsVariableInitialized(&ctx->type, node); if( op == ttHandle ) { // Verify that the type allow its handle to be taken if( ctx->type.isExplicitHandle || !ctx->type.dataType.IsObject() || !ctx->type.dataType.GetObjectType()->beh.addref || !ctx->type.dataType.GetObjectType()->beh.release ) { Error(TXT_OBJECT_HANDLE_NOT_SUPPORTED, node);
The objectType appears to be null...
[Edited by - tgraupmann on April 17, 2007 7:43:19 PM]