unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: jblazi <jblazi@gmx.de>
Subject: Runtime error (already posted to the main group, sorry)
Date: Thu, 14 Nov 2002 14:56:39 +0100	[thread overview]
Message-ID: <200211141456.39504.jblazi@gmx.de> (raw)

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



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


             reply	other threads:[~2002-11-14 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14 13:56 jblazi [this message]
2002-11-14 19:51 ` Runtime error (already posted to the main group, sorry) Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211141456.39504.jblazi@gmx.de \
    --to=jblazi@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).