[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Runtime error
From: |
jblazi |
Subject: |
Runtime error |
Date: |
Thu, 14 Nov 2002 13:45:07 +0100 |
I getting the following runtime error when my code is running:
ERROR: In procedure eval-string:
ERROR: Wrong type argument in position 1: 1050843
Here is the code. I use Cygwin on Win2K and wxWindows and the code is in a cpp
file.
static SCM test_function(SCM n)
{
printf("Die Zahl ist %d\n",SCM_INUM(n));
return SCM_UNSPECIFIED;
}
bool KApp::OnInit()
{
wxFrame *frame = new wxFrame((wxFrame*)NULL,-1,"Konstruktionsprogramm");
widget = new MainWidget(frame);
setupMenus();
frame->Show(true);
SetTopWindow(frame);
dateiname = NULL;
geo_init();
scm_init_guile();
scm_c_define_gsubr("test_function", 1, 0, 0,(SCM (*)())test_function);
scm_eval_string((scm_unused_struct*)"(test_function 4)");
return true;
}
Can anybody help me?
TIA,
--
Janos Blazi