Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: Other programming language I most often use

by extremely (Priest)
on Oct 24, 2000 at 04:25 UTC ( #38054=note: print w/ replies, xml ) Need Help??


in reply to Other programming language I most often use

Wish SQL had been a choice, or [b-z]?a?sh =)

Since I picked "C" I'd just like to say _OH DEAR GOD WHY MUST C BE THE DEFAULT LANGUAGE THAT EVERY BOZO WRITES IN_? I'm going absolutely insane trying to figure out why I get a core in "malloc" when a program is called from a XS'ed shared object, but the same program works fine on the command line.

/me glares at the _65_ lines that have "free" in them in one ".c" file... *sigh* oh woe is me =)

--
$you = new YOU;
honk() if $you->love(perl)


Comment on RE: Other programming language I most often use
Replies are listed 'Best First'.
RE: RE: Other programming language I most often use
by pope (Friar) on Oct 25, 2000 at 13:29 UTC
    This is a common symptom if the argument marshalling goes wrong.
    Wrap C routines into a library, and link it to a C driver which calls the routines. And it executes without any problem.
    But using the same library, write the required glue XS code, then link it together to create a shared module. Load the module and call the function. Coredump.
      Oooh that does sound nasty, my mistake was much nastier...
      double *result = NULL; /* oops did I null the pointer or what it pointed too? =P */

      Very sad that I spent a day of my life debugging good code because I felt the need to initialize my pointers. (That will teach me to never initialize anything in C *laugh* <--- not serious, I'm not using C any more... =)

      --
      $you = new YOU;
      honk() if $you->love(perl)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://38054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-31 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls