> I would say, do not use global variables, do you need them to be global
> (outside function scope?)
I changed the code as suggested.
The line-numers did change a little, but the error remains the same.
Segault when assigning the value of a HAL-Variable to my local variable.


>
> On Thu, Mar 24, 2011 at 5:40 PM, Carsten Presser<[email protected]>  wrote:
>
>> Hi,
>>
>> I tried to write my own small userspace comp:
>> http://tinypaste.com/e78dc
>>
>> Compiling with "sudo comp --install hal_mydro.comp" runs fine without
>> errors.
>>
>> However, when I load it with
>> "halcmd loadusr -W hal_mydro" (as the same user that is running emc2)
>> it crashes with a segfault.
>>
>> GDB-output is here:
>> http://tinypaste.com/6172a5
>>
>> Any hints?
>>
>> Regards
>> Carsten
>>
>>
>> ------------------------------------------------------------------------------
>> Enable your software for Intel(R) Active Management Technology to meet the
>> growing manageability and security demands of your customers. Businesses
>> are taking advantage of Intel(R) vPro (TM) technology - will your software
>> be a part of the solution? Download the Intel(R) Manageability Checker
>> today! http://p.sf.net/sfu/intel-dev2devmar
>> _______________________________________________
>> Emc-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users

-- 
Carsten Presser
Geschäftsführer

[email protected]
Elektronikentwicklung und Vertrieb
Brühlstrasse 14
66606 St.Wendel

Telefon: 06851-1305585
Mobil: 0179-5594690

Internet: http://ca.rstenpresser.de
EMail: [email protected]

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to