Board index » cppbuilder » very strange
Steve Contri
![]() CBuilder Developer |
Wed, 23 Jul 2003 06:29:38 GMT
very strange
Here is a strange problem I ran into today. At least it is Friday so I
can go home and ponder it over the weekend but here it is. I began having problems with an application and in debugging it I This is the declaration of the test function: ( IFIL is a typedefed structure that I have used forever and that has static void test(IFIL * ifil, IFIL * Ifil); // note the only difference I call the function like this: IFIL core; test( &core, &core); Here is the function itself: test(IFIL * ifil, IFIL * Ifil) IFIL * foo; foo = ifil; // this foo is not correct foo = Ifil; // this foo points to core Quote} function so the assignment to foo is incorrect. The second parameter is fine and assigns the address of core to foo. The call stack shows test( ifil=:005D896C, Ifil=:005D896C) so it seems to have been put on the stack correctly. When I evaluate the first parameter "ifil", it shows this: When I evaluate the second parameter "Ifil", it shows this: If I try to evaluate the expression "foo = ifil" I get this error: E2034 Cannot convert 'ifil' to 'ifil *' This program worked ok until today. I cannot figure out what is wrong. Steve Contris |