Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for katwalatapan

Hello, I have observed a data access misaligned error in my code. I am trying to isolate the issue and find reason for its occurrence. [code=c] float *mul; int main(void) { int i; mul=(float *)malloc(36000); *mul=0; for(i=1; i<9000; i++) { *(mul+i)=*(mul+(i-1))+(1/(float)(72000/2)); printf("%f\t", *(mul+i)); } free(mul); return 0; } [/code] Please …

Member Avatar for katwalatapan
0
334
Member Avatar for katwalatapan

Hello, I have observed a data access misaligned address violation during the following data type casting. [code=c] #include <stdio.h> #include <stdlib.h> int main(void) { float mul[19013]; unsigned int ch_sz=76052, i; mul[0]=0; for(i=1; i<(ch_sz/4); i++) { mul[i]=mul[i-1]+(1/(float)(ch_sz/4)); printf("%f\t", mul[i]); } return 0; } [/code] Please help me isolate the issue and …

Member Avatar for Dave Sinkula
0
144
Member Avatar for katwalatapan

Hello, I have a query on dynamic allocation of memory in C. I am storing 4 seconds of audio data in a buffer allocated with sufficient memory using malloc function. If I wanted to record another 4 seconds of audio in the same buffer, I would have to increase the …

Member Avatar for katwalatapan
0
183
Member Avatar for katwalatapan

Hello, While compiling my code, I'm receiving a "Data access misaligned address violation" error. I tried to find the reason for the error, but am unable to pin point the location. I am trying to manipulate the amplitude envelope of an audio file, but this error occurs when i'm trying …

Member Avatar for Salem
0
183
Member Avatar for katwalatapan

Hello, Could anyone please explain a reason why data could not be received from a POSIX message queue using mq_receive(), called from a different file. Following is my code for a test that i'm running to try and transfer data from one file to another. main.c [code=c] #include "recfun.h" int …

0
125
Member Avatar for katwalatapan

Hello everyone, While implementing POSIX messaging queue, I am encountered with "Message too long error". I have stated 128 bits for my problem, but it still gives the same error. Please do help me in resolving this memory issue. Regards, Tapan. [code=c] #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <mqueue.h> …

Member Avatar for gerard4143
0
1K
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Member Avatar for ajay.krish123
0
249
Member Avatar for katwalatapan

Hello, I would like to work on POSIX thread programming using TC v3.0. The required libraries for its development are STL (that's what I got from some online research). Could anyone please let me know: 1.) Where to download STL libraries. 2.) How to configure them with TC v3.0 3.) …

Member Avatar for Ancient Dragon
0
136
Member Avatar for katwalatapan

Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling …

Member Avatar for Salem
0
133
Member Avatar for katwalatapan

Hello, I couldn't find an audio setion, so i thought hardware would be an appropriate forum to post my question. I am comparatively new to hardware/software development. Could anyone give me pointers on how to implement multiplexing on audio channels to generate a single source channel. I believe the most …

0
57
Member Avatar for katwalatapan

Hello, I am trying to pass in a long int value and return an array of pointers which is processed in a function that converts long to hex. The array doesn't seem to return from the function. I get an error of the type " type mismatch in redeclaration of …

Member Avatar for katwalatapan
0
132
Member Avatar for katwalatapan

Hello, Could anyone assist me in starting out with pointers. I know that pointers direct to the memory location where a value is stored, but I am having some issues with understanding the concept with arrays. Could you suggest a simple startup code, where a pointer points to a memory …

Member Avatar for Tom Gunn
0
114
Member Avatar for katwalatapan

hello everyone, For a project at school, i have to build a one step predictor. I have a stochastic data in terms of exchange rates of a currency pair as my input to the predictor. I have to implement a one step predictor that would predicted the next value in …

0
56