comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL_MakeStruct floating exception
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL_MakeStruct floating exception [message #39414] Thu, 20 May 2004 09:45 Go to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Are you trying to use callable IDL or you writing a DLM? I am confused
because you mentioned "main".

Haje


"Sveta Shasharina" <sveta@txcorp.com> wrote in message
news:2911fc52.0405200717.3689d5f@posting.google.com...
> Hi Haje,
> The problem is that this is all the code :-)
> I have these two statements in my main.
> I assume that they mean that I allocate memory of a particular size
> but do not assign any values.
>
> Sveta
>
>
> "Haje Korth" <haje.korth@jhuapl.edu> wrote in message
news:<c8gg7d$5js$1@aplcore.jhuapl.edu>...
>> Sveta,
>> are you ensuring the variables you are assigning to foo.p and foo.q have
the
>> correct type (e.g., IDL_CvtFix)? Are the variables you are assiging
really
>> "shorts"? Remember "int" in C corresponds to "long" in IDL. I do not
think
>> we can solve this without seeing more of your code.
>>
>> Cheers,
>> Haje
>>
>> "Sveta Shasharina" <sveta@txcorp.com> wrote in message
>> news:2911fc52.0405191033.50c004db@posting.google.com...
>>> I am trying to run this simple code:
>>>
>>> static IDL_STRUCT_TAG_DEF f_tags[] = {
>>> {"P", 0, (void*) IDL_TYP_INT},
>>> {"Q", 0,(void*) IDL_TYP_INT},
>>> {0}
>>> };
>>>
>>> void* s;
>>> s = IDL_MakeStruct("FOO", f_tags);
>>>
>>> And get "Floating point exception...
>>>
>>> What is wrong?
>>>
>>> Thanks,
>>> Sveta Shasharina
Re: IDL_MakeStruct floating exception [message #39416 is a reply to message #39414] Thu, 20 May 2004 08:17 Go to previous messageGo to next message
sveta is currently offline  sveta
Messages: 4
Registered: May 2004
Junior Member
Hi Haje,
The problem is that this is all the code :-)
I have these two statements in my main.
I assume that they mean that I allocate memory of a particular size
but do not assign any values.

Sveta


"Haje Korth" <haje.korth@jhuapl.edu> wrote in message news:<c8gg7d$5js$1@aplcore.jhuapl.edu>...
> Sveta,
> are you ensuring the variables you are assigning to foo.p and foo.q have the
> correct type (e.g., IDL_CvtFix)? Are the variables you are assiging really
> "shorts"? Remember "int" in C corresponds to "long" in IDL. I do not think
> we can solve this without seeing more of your code.
>
> Cheers,
> Haje
>
> "Sveta Shasharina" <sveta@txcorp.com> wrote in message
> news:2911fc52.0405191033.50c004db@posting.google.com...
>> I am trying to run this simple code:
>>
>> static IDL_STRUCT_TAG_DEF f_tags[] = {
>> {"P", 0, (void*) IDL_TYP_INT},
>> {"Q", 0,(void*) IDL_TYP_INT},
>> {0}
>> };
>>
>> void* s;
>> s = IDL_MakeStruct("FOO", f_tags);
>>
>> And get "Floating point exception...
>>
>> What is wrong?
>>
>> Thanks,
>> Sveta Shasharina
Re: IDL_MakeStruct floating exception [message #39422 is a reply to message #39416] Wed, 19 May 2004 13:31 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Sveta,
are you ensuring the variables you are assigning to foo.p and foo.q have the
correct type (e.g., IDL_CvtFix)? Are the variables you are assiging really
"shorts"? Remember "int" in C corresponds to "long" in IDL. I do not think
we can solve this without seeing more of your code.

Cheers,
Haje

"Sveta Shasharina" <sveta@txcorp.com> wrote in message
news:2911fc52.0405191033.50c004db@posting.google.com...
> I am trying to run this simple code:
>
> static IDL_STRUCT_TAG_DEF f_tags[] = {
> {"P", 0, (void*) IDL_TYP_INT},
> {"Q", 0,(void*) IDL_TYP_INT},
> {0}
> };
>
> void* s;
> s = IDL_MakeStruct("FOO", f_tags);
>
> And get "Floating point exception...
>
> What is wrong?
>
> Thanks,
> Sveta Shasharina
Re: IDL_MakeStruct floating exception [message #39501 is a reply to message #39414] Fri, 21 May 2004 12:40 Go to previous message
sveta is currently offline  sveta
Messages: 4
Registered: May 2004
Junior Member
Eventually it will be a DLL, bur now I just want to run this as a
piece of C code shown in the original message.

Sveta



"Haje Korth" <haje.korth@jhuapl.edu> wrote in message news:<c8inap$rcf$1@aplcore.jhuapl.edu>...
> Are you trying to use callable IDL or you writing a DLM? I am confused
> because you mentioned "main".
>
> Haje
>
>
> "Sveta Shasharina" <sveta@txcorp.com> wrote in message
> news:2911fc52.0405200717.3689d5f@posting.google.com...
>> Hi Haje,
>> The problem is that this is all the code :-)
>> I have these two statements in my main.
>> I assume that they mean that I allocate memory of a particular size
>> but do not assign any values.
>>
>> Sveta
>>
>>
>> "Haje Korth" <haje.korth@jhuapl.edu> wrote in message
> news:<c8gg7d$5js$1@aplcore.jhuapl.edu>...
>>> Sveta,
>>> are you ensuring the variables you are assigning to foo.p and foo.q have
> the
>>> correct type (e.g., IDL_CvtFix)? Are the variables you are assiging
> really
>>> "shorts"? Remember "int" in C corresponds to "long" in IDL. I do not
> think
>>> we can solve this without seeing more of your code.
>>>
>>> Cheers,
>>> Haje
>>>
>>> "Sveta Shasharina" <sveta@txcorp.com> wrote in message
>>> news:2911fc52.0405191033.50c004db@posting.google.com...
>>>> I am trying to run this simple code:
>>>>
>>>> static IDL_STRUCT_TAG_DEF f_tags[] = {
>>>> {"P", 0, (void*) IDL_TYP_INT},
>>>> {"Q", 0,(void*) IDL_TYP_INT},
>>>> {0}
>>>> };
>>>>
>>>> void* s;
>>>> s = IDL_MakeStruct("FOO", f_tags);
>>>>
>>>> And get "Floating point exception...
>>>>
>>>> What is wrong?
>>>>
>>>> Thanks,
>>>> Sveta Shasharina
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fast Fourier Transformtation to Automatic Image-Image Registration
Next Topic: MPEG problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 13:40:27 PDT 2025

Total time taken to generate the page: 0.40343 seconds