[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Runtime error (already posted to the main group, sorry)
From: |
jblazi |
Subject: |
Runtime error (already posted to the main group, sorry) |
Date: |
Thu, 14 Nov 2002 14:56:39 +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
- Runtime error (already posted to the main group, sorry),
jblazi <=