Undefined index:

I received the same error message on the next section of code;

<? PHP

include("includes/DB.php");

include("includes/functions.php");

If ($_REQUEST ['command'] == 'delete' & & $_REQUEST ['pid'] > 0) <-Undefined index:

{

remove_product($_REQUEST['pid']);

}

of other if($_REQUEST['command']=='clear') <-Undefined index:

{

unset($_SESSION['cart']);

}

of other if($_REQUEST['command']=='update') <-Undefined index:

{

$max = count($_SESSION['cart']);

for ($i = 0; $i < $max; $i ++) {}

$pid = $_SESSION ['cart'] [$i] ['productid'];

$q = intval($_REQUEST['product'.$pid]);

If ($q > 0 & & $q < = 999) {}

$_SESSION ['cart'] [$i] ['quantity'] = $q;

}

else {}

$msg =' some proudcts not updated!, quantity must be a number between 1 and 999';

}

}

}

? >

I'm not getting syntax errors, can enyone help please?

Moved to applications developed in Dreamweaver forum server-side.

Undefined index means that there is no such thing as a table variable. In each case, the error occurs on a line where you test the value of $_REQUEST ['command']. What this means is that 'order' is not sent to the page via a query (GET method) string or through the POST.

It is strongly discouraged to use $_REQUEST. The PHP online documentation contains this warning: "variables $_REQUEST are provided to the script via the GET, POST, and COOKIE input mechanisms and therefore can be modified by the remote user and cannot be trusted." You must specify the input mechanism you expect ($_GET or $_POST).

I see that you also use $_SESSION. This will not work unless your script starts with session_start().

Tags: Dreamweaver

Similar Questions

  • Notice: Undefined index:

    I have that works well on another site and have replicated just it but on this site, it does not work, anyone can see what I'm doing wrong?

    I'm having an error come on my page success.php when returning to a paypal payment...

    Notice: Undefined index: in E:\Domains\b\website.com\user\htdocs\success.php on line 248 OrderID

    Basically when the transaction is successful the return page is return.php, this page tells

    <? PHP

    session_start();

    $colname_rsReturn = "-1";

    If (isset($_SESSION['OrderID'])) {}

    $colname_rsReturn = $_SESSION ["OrderID"];

    }

    @mysql_select_db ($database_beau, $beau);

    $query_rsReturn = sprintf ("SELECT filled WITH beauSS13_orders WHERE the beauSS13_orders.") (OrderID = %s", GetSQLValueString ($colname_rsReturn,"int"));

    $rsReturn = mysql_query ($query_rsReturn, $beau) or die (mysql_error ());

    $row_rsReturn = mysql_fetch_assoc ($rsReturn);

    $totalRows_rsReturn = mysql_num_rows ($rsReturn);

    If ($row_rsReturn ['fill'] == 1) {}

    Header ("' Location: success.php '");

    } another header ("' rental: order.php failed '");

    ? >

    so the value of the order is 1 then it send to success.php to update the stock as follows

    <? PHP

    Update the stock *.

    $details_table = "beauSS13_orderdetails";

    $ID_column = "OrderID";

    $details_prodID = "ProductID";

    $details_qty = "amount";

    $XStock_TableName = "beauSS13_products";

    $XStock_FieldName = "stock";

    $XStock_unID = "ProductID";

    If (! session_id()) session_start();

    If (isset($_SESSION["OrderID"])) {}

    @mysql_select_db ($database_beau, $beau);

    $details_Source = "select * from".  $details_table. 'where '. $ID_column. " = " . $_SESSION ["OrderID"];

    $detailsRS = mysql_query ($details_Source, $beau) or die (mysql_error ());

    $row_detailsRS = mysql_fetch_assoc ($detailsRS);

    {}

    $XStock_qtySource = "select". $XStock_FieldName. "from".  $XStock_TableName. 'where '. $XStock_unID. " = " . $row_detailsRS [$details_prodID]. "";

    $XStock_rsUpd = mysql_query ($XStock_qtySource, $beau) or die (mysql_error ());

    $row_XStock_rsUpd = mysql_fetch_assoc ($XStock_rsUpd);

    If ($row_XStock_rsUpd [$XStock_FieldName] > 0) {}

    $XStock_new = $row_XStock_rsUpd [$XStock_FieldName] - $row_detailsRS [$details_qty];

    If ($XStock_new < 0) $XStock_new = 0;

    $XStock_UpdSource = "update". $XStock_TableName. 'together '. $XStock_FieldName. " = " . $XStock_new. 'where '. $XStock_unID. " = " . $row_detailsRS [$details_prodID]. "";

    $XStock_rsUpd = mysql_query ($XStock_UpdSource, $beau) or die (mysql_error ());

    }

    } While ($row_detailsRS = mysql_fetch_assoc ($detailsRS));

    $XStock_rsUpd = null;

    $detailsRS = null;

    session_unregister ("OrderID");

    }

    ? >

    but when I get to this page, I get the error

    Notice: Undefined index: in E:\Domains\b\website.com\user\htdocs\success.php on line 248 OrderID

    and the stock is not updated

    line 248 is order < p > <? PHP echo $_SESSION ["OrderID"];? > success < br / >

    then he tells me that the session is not respected on the whole?

    It is not clear from your code where line 248, but the last line of code you posted here using this:

    session_unregister ("OrderID");

    This destroys $_SESSION ["OrderID"]. Thus, if line 248 comes after this code, that would explain why you get notice of undefined index.

    Furthermore, session_unregister() is obsolete and has been removed from PHP 5.4. You must use unset() instead:

    unset($_SESSION['OrderID']);

  • Undefined index properly

    Hello world

    I am an intern EE using LabVIEW to create a program to control and recover data from a test pedestal for antennas.  I'm using LabVIEW 2011 Version 11.0.1.

    I currently have problems with a part of the index of the LabVIEW program that I am creating.  Currently, bottom left of the VI, I have a structure which begins to count all the times that the 'Start and Stop' on the front panel button is not pressed (when the VI stops data acquisition) so that the button is now on "stop"(Désolé si ma description est source de confuse). "»  However, the Index number stored in seems to always start at 2 and not 0, where I want to start.  As a result, the data stored in the table of stored data always begin to store index data 2.

    My question is: what is the problem with the way I am counting for the Index, and how do I fix so that the stored data table will always store the index 0 data?

    Thank you

    Aki

    Your code is too complex. In your true case, simply having a function of matrix of construction where an input is wired to the shift register and the other input is connected to the new value. The case of false would simply have the wired through shift register. Right-click in the registry to offset and select ' Create > constant ' while you start with an empty array. Get rid of everything else (insert in table, the case statement with the number of indexes and each local variable.

  • Notification page is down?

    The notification page is down?

    After I am enrolled in DPS dashboard and I go to warning page and the page is displayed in white. And I can see the alerts in the console as:

    I tried to sign on with another account, but it was the same result.

    Could have been an intermittent problem, I don't see the blank page at the moment. Let us know if you still see the same result, the compensation may hide the browser could help or try another browser

  • Connection difficulties

    Hello

    I used behavior several times (DW CC) Server user authentication but today he gives me. It allows me to connect to a page that has restricted access, but it is also back this ugly error at the top of the page:

    Notice: Undefined index: MM_UserGroup in C:\wamp\www\2010 new site\search.php line 46


    Here's the code that surround the restricted access:


    $MM_restrictGoTo = "loginfail.php";

    If (!) {(((isset($_SESSION['MM_Username']))) & & (isAuthorized ("", $MM_authorizedUsers, $_SESSION ['MM_Username'], {$_SESSION ['MM_UserGroup']})))}

    $MM_qsChar = ';?

    $MM_referrer = $_SERVER ['PHP_SELF'];

    If (strpos ($MM_restrictGoTo, "?")) $MM_qsChar = "&";

    If (isset($_SERVER['QUERY_STRING']) & & strlen($_SERVER['QUERY_STRING']) > 0)

    $MM_referrer. = « ? ». $_SERVER ['QUERY_STRING'];

    $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar. "accesscheck =". UrlEncode ($MM_referrer);

    Header ("Location:".) $MM_restrictGoTo);

    "exit";

    Can anyone place what I need to do?

    gbergan wrote:

    That is absolutely right. And my login.php page is already working with MySQLi coding. I can not get the coding directly on my search.php page, which is where I need to restrict access. Again, as I said in a previous post, login.php use MySQLi. Search.php does not because DwZone products are not yet updated. The coding is already displayed in the above login page.

    But like I said help the Web should provide in their connection solution "limit access solution to apply to other pages" in the contrary case, it makes their connection solution a waste of time? This does not have any mysqli require just a few lines of php coding.

    Can you not apply it directly to the search php page?

    The login page takes you to the search page?

    This created at the top of the extension of research Web page help or DwZone?

    <>

    If (! isset($_SESSION['Member'])) {}

    Header ("Location: login.php");

    }

    ?>

    It looks not to $_SESSION ['Member'] has been on your login page so you get there will pass if you try and go to the search page.

    As a stab in the dark because this authentication code is not familiar to me trying to change:

    $_SESSION ['username'] = $Member;


    TO


    $_SESSION ['Member'] = 'true ';



    then substituting success2.php with search.php



  • On my next problem of data

    So, I have a recordset named rsClasFixDateCurrent.   Here is the SQL code, I installed in this location:

    SELECT ClassData.ClassID, ClassData.ClassName, ClassData.ClassDescription, ClassSectionData.StartingDate, ClassData.Fee, ClassSectionData.SectionID, 'Language', ClassSectionData.ClassTime, ClassData.ClassType, ClassSectionData.ClassroomCity

    OF group INNER JOIN ClassSectionData ON ClassData.ClassID = ClassSectionData.ClassID

    WHERE ClassSectionData.StartingDate > CURDATE)

    ORDER BY ClassSectionData.StartingDate

    Here's the code that updates the data in the page and works great:

    < class p = "Listclass" > 1st class registration: < u > <? PHP echo $row_rsClasFixDateCurrent ['reg_formatted'];? > < / u > < / p >

    < class p = "Listclass" > time: <? PHP echo $row_rsClasFixDateCurrent ["ClassTime'];? > < / p >

    < class p = "Listclass" > <? PHP echo $row_rsClasFixDateCurrent ["ClassDates"];? > < / p >

    < class p = 'Listclass' > < / p > < table >

    < td width = "150" > < class p = "Listclass" > <? PHP echo $row_rsClasFixDateCurrent ['SectionID'];? > < / p >

    < class p = "Listclass" > <? PHP echo $row_rsClasFixDateCurrent ['ClassName'];? > < / p > < table >

    < td > < class p = "Listclass" > <? PHP echo $row_rsClasFixDateCurrent ["ClassDescription'];? > < / p >

    < class p = "Listclass" > class language: <? PHP echo $row_rsClasFixDateCurrent ['Language'];? > < / p > < table >

    < class td 'Listclass' = >$ <? PHP echo $row_rsClasFixDateCurrent ['fresh'];? > < table >

    I've added a new field to the database table group, the field is called Classification.  Then, using the tool of recordset in DW, found the area and added to SQL, so now it looks like this:

    SELECT ClassData.ClassID, ClassData.ClassName, ClassData.ClassDescription, ClassSectionData.StartingDate, ClassData.Fee, ClassSectionData.SectionID, 'Language', ClassSectionData.ClassTime, ClassData.ClassType, ClassSectionData.ClassroomCity, ClassData.Classification

    OF group INNER JOIN ClassSectionData ON ClassData.ClassID = ClassSectionData.ClassID

    WHERE ClassSectionData.StartingDate > CURDATE)

    ORDER BY ClassSectionData.StartingDate

    Once I did, I dragged and drop the new ClassData.Classification field in the page.  This is the code added to the list above:

    <? PHP echo $row_rsClasFixDateCurrent ['grading'];? >

    Once this is done, all other data looks in good condition, but the new field produces an undefined index error.  Huh?

    There is an inner join in sql, but ClassName appears just above the new field in the page, appears very well, and it's in the same table as the Classification.  When I use the TEST button on the Recordset, the column is here and filled with data.   I don't have the slightest idea where to check.  Can anyone help?

    -CL

    Check the code carefully. Make sure that DW code set of duplicate records, as it is sometimes called do.

  • Error notice question

    Hello

    My website (development) php code now everything works as it should, and tests on the database are all producing correct results, however after you set error_reporting to show all errors, I have several cases of:

    Notice: undefined constant...

    Notice: undefined variable...

    Notice: undefined index...

    I am aware that I can set error_reporting to not display all records, but my concern is that my code is safe.

    How important are these opinions regarding a secure website from php? any information would be greatly appreciated, I don't want to ignore the significant safety issues before going live.

    Thanks in advance for your time.

    Those who are good to get rid of.  Show all is not normally what is shown, but those errors mean that you have not tested whether the variables are defined (isset php - http://php.net/manual/en/function.isset.php ).  It is always good when writing scripts to make sure that the variables are set before trying to use them in the code.  A simple:

    If (isset ($var))

    will do the trick.

  • help with forms

    I'm quite new to Dreamewaver CS4 and I'm currently working my way through the book by Jeffery Bardzell "training from the source. I got to Lesson 5 'crossing of data between pages. I created the fields first name and last name on the form, and then run the form via the server. I works very well and will display the first and last names on the form processor IE "thank you, john smith, to complete my form" the book then tells me to open the form processor and it should look to "thank you for my application, but it displays:

    Thank you, notice: Undefined index: firstName in c:\xampp\htdocs\newland\test_form_processor.php on line 9.

    lastName undefined index in c:\xampp\htdocs\newland\test_form_processor.php on line 9

    for my application.

    Could someone tell me what I did wrong. I followed the book Word for Word and I also checked the code on my page with the code on the lesson of "completed" on the CD. theyr'e the same two.

    Any help would be apreciated

    Thank you much for the help. Both methods work very well.

    Paul

  • In all but the internet Explorer errors

    Hi all

    I've been working on something, and I am puzzled as to why I am getting an error for Firefox, Chrome, etc. ; but don't get not all errors in the browser.  The error is:

    View : Undefined index: start online 47

    The code is:


    <!--  this is the initial setup for breaking the records into pages --!>
    <?php
    
    
    $page_name="index.php?content=all_movie_grid"; 
    $start=$_GET['start'];           // this is line 47
    
    
    if(strlen($start) > 0 and !is_numeric($start)){
    echo "Data Error";
    exit;
    }
    
    
    
    
    $eu = ($start - 0); 
    $limit = $set_cols * 10;                                 // No of records to be shown per page.
    $this1 = $eu + $limit; 
    $back = $eu - $limit; 
    $next = $eu + $limit; 
    
    
    /////////////// WE have to find out the number of records in our table. We will use this to break the pages///////
    $query2=" SELECT * FROM movies
      INNER JOIN family_rating ON movies.movie_star_rating=family_rating.star_id 
      INNER JOIN alias ON movies.alias=alias.alias_id
      INNER JOIN parent_alert ON movies.parent_alert=parent_alert.alert_id
      INNER JOIN rating ON movies.movie_rating=rating.rating_id
      ORDER BY movies.movie_name ASC";
    $result2=mysql_query($query2);
    echo mysql_error();
    $nume=mysql_num_rows($result2);
    /////// The variable nume above will store the total number of records in the table////
    
    
    ?>
    
    
    <!-- end the initial setup to split the records into pages -->
    
    

    And later, to the bottom of the page, I have:

    <div align="center" class="paging">
    
    
    <?php 
    
    
    // Let us display bottom links if sufficient records are there for paging
    if($nume > $limit ){ 
    
    
    /////////////// Start the bottom links with Prev and next link with page numbers /////////////////
    echo "<table style=\"margin: 5px; padding: 5px\"><tr><td  align='left' style=\"width: 150px\">";
    //// if our variable $back is equal to 0 or more then only we will display the link to move back ////////
    if($back >=0) { 
    print "<a href='$page_name&start=$back&series=$search'>Previous Page</a>"; 
    } 
    //////////////// Let us display the page links at  center. We will not display the current page as a link ///////////
    echo "</td><td align=center>";
    $i=0;
    $l=1;
    for($i=0;$i < $nume;$i=$i+$limit){
    if($i <> $eu){
    echo " <a href='$page_name&start=$i&series=$search'><font face='Verdana' size='2'>$l</font>|</a> ";
    }
    else { echo "<font face='Verdana' size='4' color=red>$l</font>|";}        /// Current page is not displayed as link and given font color red
    $l=$l+1;
    }
    
    
    
    
    echo "</td><td  align='right' style=\"width: 150px\">";
    
    
    ///////////// If we are not in the last page then Next link will be displayed. Here we check that /////
    
    
    if($this1 < $nume) { 
    print "<a href='$page_name&start=$next&series=$search' width='140'>Next Page</a>";} 
    echo "</td></tr></table>";
    
    
    }
    // end of if checking sufficient records are there to display bottom navigational link. 
    
    
    ?>
    
    
    </div>
    
    

    Any help to what is why I get the error in all browsers but IE would be appreciated.  Thank you.

    9thReg wrote:

    Thank you very much for your answer.  I tried to set 'start' before line 47, but who seems to do everything does not because it's not redefine what 'start' is.  How to set it on the first page so that it can operate as it does now?

    also, why the error does not appear in IE, but all the others?

    As to why IE, we asked years and nobody knows the answer.

    How do you define start?  It should just be something like:

    If (isset($_GET['start'])) {$start = $_GET ['start'] ;} else {$start = 0 ;}}

  • Flex $_POST does not

    OK, so I'm working on an application that allows users to connect, when they connected it redirects to another page. The page that they are redirected to must however know their ID card, which I suppose can be done safely through the post OFFICE or the SESSION, I prefer the POST.  I have this code so far:

    Flex/AS3:

    <fx:Script>
              <![CDATA[
                   import flash.net.navigateToURL;
                   
                   import mx.controls.Text;
                   import mx.rpc.events.ResultEvent;
                   
                   private var loginID:String;
                   
                   private function checkLogin(event:ResultEvent):void
                   {
                        loginID = event.result.loginsuccess.toString();
                        if(event.result.loginsuccess != "no")
                        {
                             var data:Object = new Object();
                             data.id = loginID;
                             var request:URLRequest = new URLRequest("http://myurl.com/startPage.php");
                             request.contentType = "text";
                             request.data = data;
                             request.method = URLRequestMethod.POST;
                             
                             navigateToURL(request, "_self");
                        }
                        if(event.result.loginsuccess == "no")     
                             navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/incorrectLogin.php"), "_self");
                   }          
                   private function register(evt:ResultEvent):void
                   {
                        if(evt.result.regsuccess == "yes")
                             navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/registerSuccess.php"), "_self");
                        if(evt.result.regsuccess == "no")
                             navigateToURL(new URLRequest("http://mybox.dyndns-web.com/Petty/registerFail.php"), "_self");
                   }
              ]]>
         </fx:Script>
    

    PHP - I want to just display the ID at the moment:

    <?php     
    
    echo $_POST["id"];
    
    ?>
    

    But at the time the user arrives on the PHP page, they see an error:

    Notice: Undefined index: id in C:\xampp\htdocs\startPage.php on line 3

    Where I'm going wrong? Please help, I need this problem as soon as POSSIBLE!

    Try this

    var url:URLRequest = new URLRequest("http://myurl.com/startPage.php");
    var uv:URLVariables = new URLVariables();
    url.method = "POST";
    uv.id = loginID;
    url.data = uv;
    navigateToURL(url,"_self");
    

    Ref:

    http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7FE8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7ea7

  • transmission of data in the url, what happens if no data is transmitted

    I work in php with MySQL.

    Some pages of my site require certain data to be passed in the url. In most cases, it is "data_region". If this is not passed in the url, I get an error of "undefined index". Is there a way to tell:

    If "data_region" exists, use the information that it passes.
    use else '? data_region = ALL'

    Right now I use a web redirector on the index page to the main.php with the correct data_region instead of having main.php as the index. It's OK, but it sometimes takes a while, especially on slower connections.

    Any help appreciated.

    My code:

    deadlyhifi wrote:
    > I don't see what you're trying to do here, but it does not work because it is
    > looking for '? data_region' in the URL. I need to apply
    > 'data_region = ALL' when 'data_region' is not mentioned in the URL.

    In this case, put this at the top of your page:

    If (! isset($_GET['data_region']) $_GET ['data_region'] = 'ALL';)

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Send variables from flash to PHP

    Hello world
    I have a problem when sending variables from flash to PHP
    Here is the code:

    submit.onPress = function)
    {
    c = new LoadVars ();
    c.NME = "Myname"
    c.sendAndLoad ("getVars.php", reply, 'POST');
    }

    PHP code:

    <? PHP
    $name = $_POST ['nme'];
    Print 'your name is. " $name. «. < br / > ';
    ? >

    What I'm doing wrong here.
    I get an error message saying notice: Undefined index: name in \xxx\getVars.php on line 2

    Please help me. Thanks in advance

    2 things that I notice immediately

    1. you never initialize the variable 'Reply' to your sendAndLoad.
    2. you must pass a string encoded in URL variables which is ampersand delimited. Usually the returned string would look like echo ("" & result = 1 & msg = your % 20name % 20is %20 '. ") $name. ». 3rd % 3Cbr % &");

    Your mistake is that the information is not get passed correctly. I usually use $_REQUEST communication flash-php, although this should not make a difference. I've seen people use $_REQUEST for testing purposes and will then to $_POST when finished.

  • Dreamweaver 8 with ASP, Coldfusion, &amp; amp; PHP

    I'm new to php and I'm working in Dreamweaver 8 with ASP, Coldfusion and PHP training from the Source. I have a real simple form. A user enters their name and name and then click on the submit button. The form is then treated with a script using the $_GET [name]; $_GET [name]; and it should display "Thank you, name,." using my form But the page shows the HTML with a notice: Undefined index: first_name in C:\htdocs\newland\test_form_processor.php on line 9. Line 9 is - thank you < p >, <? PHP echo $_GET ['name'];? > <? PHP echo $_GET ['name'];? >, for my application. < /p >. This was accomplished using the link Panel in DW. It is not any kind of troubleshooting in the book. Can someone tell me what this means? It worked as it is supposed to work when I had just the first name.

    Thank you, David. Yes my form looks like as you suggest. The problem is resolved. I have problems with DW not to upload files to the test server on my machine. And the problems with the browser doesn't not refreshing pages. Between the two, I was about to lose my mind.

    I have read and worked through your book "Foundation PHP for DW 8" last year and I just got your new book "PHP Solutions" today. PHP for DW 8 was really easy to follow and everything worked as it should. I hope I like "PHP Solutions" as well.

    Charles Burnell

  • Fatal error: Call to undefined function get_header() in /home/rascal98/public_html/index.php on line 1.

    I received this message: Fatal error: Call to undefined function get_header() in /home/rascal98/public_html/index.php on line 1.  This has happened after that I tried to load a model of Web site using FTP Filezilla.  I asked advice of HostGator support, but offered only man I should have a backup.  Not much help at the moment.  I may be in the last two days charged that more than just a Web site template to the same file or directory public_html, it is called. I tried to reverse all this leaving the Site Manager to erase all files.  That did not help.  I'm stuck because I can't establish a few areas I need.  The terminology "fatal error" was quite worried.

    Hi rascal98,

     

    Welcome to Microsoft Answers Forums.

    The question you have posted is related to the area and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.msdn.Microsoft.com/forums/en-us/category/iedevelopment/

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • nilibddc dll: opening files tdms with the corrupt index files

    Hello

    I have a question about the error handling when using the nilibddc.dll.

    I want to use nilibddc.dll to open the .tdms file. At the time I experimented with some error cases and got stuck in a case:

    When I try to open a file with a corrupted file .tdms_index .tdms I get code error-6211 (DDC_StorageCouldNotBeOpened).

    The file .tdms_index is corrupted due to errors during the copy of the file.

    The problem I've noticed is that I have a lock on the corrupted file .tdms_index file after DDC_OpenFile (...) (I can rename it, but I can't delete the file!).

    As you can see in the code snippet - it is not really special...

    int ddcError = 0, length;
    DDCFileHandle file = 0;

    ddcError = DDC_OpenFile (file_path, NULL, &file);)

    Here, I get ddcError is-6211
    If (ddcError == 0)
    {
    do something with the file...

    ddcError = DDC_CloseFile (leader);

    If (ddcError == 0)
    {
    < "no="" error="" -="" everything="" done"=""><>
    }
    }

    System ("pause");

    I miss something here? Should I use DDC_FreeMemory in somehow to free open handles?

    I also tried to use the DDC_OpenFileEx (...) with readOnly set to true. But that doesn't change anything!

    Thanks in advance for the help,

    Daniel

    You are right. The sample file you attached to your message causes an access violation. If no normal flow program and apllication in undefined state.

    I will direct the file to developers. I tried to generate a file that causes the same by beating some index files, but has failed to create one on my own. It happened to your site more than once?

    What can we do?

    In the first place, simply copy the PDM. The index file will be recreated when the file is accessed. What is lost when the index file is not copied, therefore the time required to create the index file by scanning once the PDM file.

    I hope this helps a little

    Andreas

Maybe you are looking for