Hi, I'm programming in ESQL-C 9.2 on Informix 7.3 for Solaris 5.8 and really often I get a core dump in this sentence:

EXEC SQL SELECT Value, Severity, AdittionalInfo
INTO :LnValue, :LnSeverity, :LszAditionalInfo
FROM Events
WHERE IdObject = :LszIdObject
AND IdAgent = :LszIdAgent;

This sentence is executes succesfully a lot of times, but some others I get a core dump. All the variables are well inicialized. Another fact is that I run 10 instances of the same programm at the same time with one connection per instance, I mean every instance is respolsible for connecting and disconnecting for the database, they connect at the beginning of the programm and disconnect at the end.

I send you too the contents of the core file where the programm crashes:

[1] t_splay(0x1002701e0, 0x20202000002758c0, 0x10024d390, 0x1002701e0, 0x64, 0x2), at 0xffffffff7e64a89c
[2] t_delete(0x0, 0x1002701e0, 0xffffffff7e7b4f58, 0x170, 0x0, 0x100), at 0xffffffff7e64a704
[3] realfree(0x1002701e0, 0xffffffff7e7c1780, 0x100270350, 0xffffffff7e7b4f58, 0x100270340, 0x173), at 0xffffffff7e64a30c
[4] cleanfree(0x0, 0xffffffff7e7c16a0, 0xffffffff7e7b4f58, 0x0, 0xffffffff7e7c1668, 0xffffffff7e7c1768), at 0xffffffff7e64abf0
[5] _malloc_unlocked(0xa8, 0xffffffff7e7b4f58, 0xffffffff7e7b4f58, 0xb0, 0x0, 0x0), at 0xffffffff7e649cd8
[6] malloc(0xa8, 0x0, 0x0, 0x10026ac50, 0x0, 0x0), at 0xffffffff7e649bc4
[7] dbfdrealloc(0x0, 0xa8, 0x3, 0x0, 0x0, 0xffffffff7fffe67e), at 0x10003c330
[8] _sqg_desc(0x1d, 0x0, 0x10024d390, 0x0, 0x10022d090, 0x3), at 0x10003b3cc
[9] process_msgs(0x10022d090, 0x0, 0x10024d390, 0x10022d090, 0x64, 0x2), at 0x1000401ac
[10] _sqr_messages(0x10022d090, 0x8, 0x10024d390, 0x10022d090, 0x0, 0x10022ce38), at 0x10003cdb4
[11] __slct(0x10022d090, 0x0, 0x2, 0x0, 0x10024d390, 0x1), at 0x100047f08
[12] sqli_slct(0x10024d390, 0x0, 0x0, 0x0, 0x10022cf28, 0x3), at 0x100047ca8
=>[13] ObjectExists(PsIdObject = 0x100243504 "Sysmond_6", PsIdAgent = 0x100244e24 "", PnValue = 0xffffffff7ffff088, PnSeverity = 0xffffffff7ffff084, PsAditionalInfo = 0xffffffff7ffff080)

Does anybody can help me to know the problem?
Thanks in advance...