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 
Return to the default flat view Create a new topic Submit Reply
Re: IDL_MakeStruct floating exception [message #39416 is a reply to message #39414] Thu, 20 May 2004 08:17 Go to previous messageGo to previous 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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Sat Oct 11 07:51:44 PDT 2025

Total time taken to generate the page: 0.56238 seconds