FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MDContext.importModule cannot load module

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Sun Jan 13, 2008 11:09 am    Post subject: MDContext.importModule cannot load module Reply with quote

I just get an error even if I have the file in the current directory...

minid.types.MDException: Error loading module "test.md": could not find anything to load
Back to top
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Sun Jan 13, 2008 11:11 am    Post subject: Reply with quote

BTW, this is what I do to get the error. I then run "rle.exe test.md"
Code:

void main(char[][] args) {
   if (args.length < 2)
      return;
   auto ctx = NewContext(
      MDStdlib.Array
      | MDStdlib.Char
      | MDStdlib.Math
      | MDStdlib.String
      | MDStdlib.Table);
   
   WrapModule("rle.rle", ctx)
      .type(WrapClass!(RLE)()
         .method!(RLE.start)()
         .method!(RLE.shutdown)());
   ctx.importModule(toString32(args[1]));
}
Back to top
View user's profile Send private message
simhau



Joined: 06 Feb 2007
Posts: 55

PostPosted: Sun Jan 13, 2008 11:17 am    Post subject: Reply with quote

Hehe.. Found the error...

importModule("test") works, but not ("test.md") Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group