Re: [C++-sig] vc++ assertion error upon runtime

2010-03-22 Thread hitesh dhiman
Hey Jim I found out where the problem was. This function is actually reading out null values, hence the error. There was a problem in the execution of the code before it. I was able to solve it by commenting out this part and print out the values step by step. One of the dll's being used was not re

Re: [C++-sig] vc++ assertion error upon runtime

2010-03-21 Thread Jim Bosch
On Fri, 2010-03-19 at 14:45 +0800, hitesh dhiman wrote: > > Hi all, > > I'm trying to gain access to functions that use pointers as > > arguments. I have written the wrapper file that converts the > arguments > > into pointers. The compilation works successf

Re: [C++-sig] vc++ assertion error upon runtime

2010-03-21 Thread hitesh dhiman
Hi Jim, Well, the code's rather official, so i won't be able to give the exact details, but here's the code simplified: CFunctionRequest( pData, (DWORD*)&ucmmReq.len) where pData is BYTEpData[512]; and typedef struct { int len; char* data; } Data; with DataucmmReq The definition for the

Re: [C++-sig] vc++ assertion error upon runtime

2010-03-18 Thread Jim Bosch
On Fri, 2010-03-19 at 14:45 +0800, hitesh dhiman wrote: > Hi all, > I'm trying to gain access to functions that use pointers as > arguments. I have written the wrapper file that converts the arguments > into pointers. The compilation works successfully, but when i try to > run the code from python