A pointer is a data type that "points to" another value stored in memory using its address.

learn more… | top users | synonyms (1)

6
votes
0answers
3k views

Implicit conversion of Objective-C pointer type. Bridged cast issue

I'm getting the following error: "Implicit conversion of Objective-C pointer type. Type "void*" requires a bridged cast. I've fixed similar bits of code with bridges - but those types of fixes are ...
3
votes
0answers
62 views

Memory test operation without pointers in NXC on NXT?

I'm trying to write a memory test program for the NXT, since I have several with burned memory cells and would like to identify which NXTs are unusable. This program is intended to test each byte in ...
2
votes
0answers
64 views

Invalid pointer when using global variables/lambda functions in python?

I've come across a bit of a strange bug, and I'm really not sure what's causing it. I have a list containing lambda functions, and i have set this list to be a global variable as shown below. The ...
2
votes
0answers
36 views

vector assign in Cython

here is my program of cython cdef struct Node: int v Node* next Node* pre def f(int N): cdef: vector[Node*] narray int i narray.assign(N, 0) for i in ...
2
votes
0answers
233 views

C++ Process terminated with status 3 confusion

I am very new to programming, but have been following c++ tutorials and amassing a number of PDFs for the last week or so to help me out. I couldn't find anything in them or online that answered my ...
2
votes
0answers
126 views

pointers to a class in dynamically allocated boost multi_array, not compiling

I am pretty new to C++ with Boost. I want an object of class "world" to have an array named "chunk" of type "octreenode". Previously I had an ordinary one-dimensional array, and this worked fine. ...
2
votes
0answers
311 views

Pass by pointer, memory leak

NOTE: Initially I though that a section of code was causing a leak but that turned out to be incorrect. Hence the comments below. I have updated the question Possible Solution: I managed to solve ...
2
votes
0answers
342 views

OpenCL. Weird bug with array addressing/pointers

I have this simple kernel for testing. __kernel void nfa(__global const int *a, __global int *output) { output[0] = a[0]; } Note: This is running on a cpu, and memory is probably on the ...
2
votes
0answers
229 views

C++ passing in a * to a class

I am attempting to retrieve an item from a chained array hash table. The retrieve function belongs to the a class table, of which the hash tables are members. The table is a member of the client ...
1
vote
0answers
7 views

How do you point the current branch at the working directory in Bazaar VCS?

I am trying to set up Bazaar for our sites but am having trouble achieving the exact setup I want. Basically, I want one folder that contains all the information for each site, such as: ...
1
vote
0answers
25 views

How do you use shallow_array_adaptor

I'm trying to interface with software that just uses raw pointers for holding data. I feel pretty confident that I can avoid the issues with using shallow_array_adaptor if I make the wrapping vector ...
1
vote
0answers
143 views

Function returns pointer, but assignment fails

I have attached the output from gdb to describe the title: 0x0000000000401373 in main () at cyclic_list.c:36 36 head->next->next = (list*)gc_malloc(sizeof(list), 1); Value returned is $5 = ...
1
vote
0answers
179 views

Windows Forms: writing to a RichTextBox from another file (C++)

How can I enter text in a richTextBox from outside the forms class? I have four files within my project: Form1.h Form1.cpp Main.cpp Importfile.cpp inside form1.cpp I use the function: System::Void ...
1
vote
0answers
80 views

C# String to pointer in unmanaged class library

An existing application is going to import my class library. I am trying to do this in C# since I have a lot more experience in C# than C++. The existing application uses __stdcall which is originally ...
1
vote
0answers
75 views

C++ Error with Class pointers as a data member in another class

I keep getting weird C4430 and C2143 errors when I try to compile my code. My class has data members which point to different classes and the errors are saying that it is expecting a ";" in between ...

1 2 3 4 5 37
15 30 50 per page