Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL command caused C0000005 error
Message
De
20/05/2004 10:05:16
 
 
À
20/05/2004 09:53:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00905585
Message ID:
00905603
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
Beth,

The dll does not know where the strings end

try with
lcNullTerminator = chr(0)
>I have talked with him. Every thing works fine, until he changes the one string (sent by reference). We have walked through his code and know that it is when He puts the new string in that memory location that the error occurs.
>here is my code for this:
>
>lcNullTerminator = ""
> DECLARE INTEGER CreateEdulogRun IN edulogdll STRING @, STRING @, STRING @,;
> STRING @, STRING @, STRING @
>*!* EDULOGDLL_API int CreateEdulogRun(char *RunID, char *RouteID, char *Description, char *AMPMFlag,
>*!* char *CreateDate, char *EndDate);
>< snip error check code >
>
> lcRunID = padr(ALLTRIM(laFields[6]) + lcNullTerminator,12, " ")
> lcRouteID = padr(ALLTRIM(laFields[7]) + lcNullTerminator,11, " ")
> lcAMorPM = IIF(laFields[8], "1", "0") + lcNullTerminator
> lcDescrip = ALLTRIM(laFields[9]) + lcNullTerminator
> lcCreateDate = ALLTRIM(laFields[10]) + lcNullTerminator
> lcEndDate = ALLTRIM(laFields[11]) + lcNullTerminator
>*!* check to be sure there is a run and route id
> IF !EMPTY(laFields[6])
>--> lnReturnvalue = CreateEdulogRun(@lcRunID, @lcRouteID, @lcDescrip, ;
> @lcAMorPM, @lcCreateDate, @lcEndDate)
>
>at the --> is where the error occurs in my code. His code does fine until he does a copy command into the memory location of lcRunID.
>
>any ideas?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform