User Profile

Collapse

Profile Sidebar

Collapse
ycinar
ycinar
Last Activity: Mar 21 '08, 05:08 PM
Joined: Oct 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ycinar
    started a topic Java project problems at the startup of run
    in Java

    Java project problems at the startup of run

    hey all,

    i am working on a Java project using JBuilder.. when i build my code its fine, but when comes to run, it doesnt run and displays the following logs.. i think there is JDK conflict..

    actually when i build it, it creates a jar file which is totally fine (i can confirm that because i use that jar file in another project)

    any idea on how to get around this? maybe i could try to run it from the command...
    See more | Go to post

  • ycinar
    replied to UnsatisfiedLinkError
    in Java
    i found how to set the path, but didnt help either, still getting same error. googled the problem and it says although it finds the file but if not able to load then it gives the same error.
    See more | Go to post

    Leave a comment:


  • ycinar
    started a topic UnsatisfiedLinkError
    in Java

    UnsatisfiedLinkError

    Hello,

    i have a java project which builds fine but when i come to run it the following error is displayed:

    java.lang.Unsat isfiedLinkError : no FileSystemDll in java.library.pa thjava.lang.Uns atisfiedLinkErr or: no FileSystemDll in java.library.pa th

    i guess the resolution is to get FileSystemDll added to java.library.pa th, correct? if yes, how can i find java.library.pa th and set it again?

    any...
    See more | Go to post

  • ycinar
    started a topic How to convert a string to a PWCHAR
    in C

    How to convert a string to a PWCHAR

    How can I convert a string (or a wstring) to a PWCHAR?
    Code:
    PWCHAR temp;
    
    wstring wstr;
    
    // Basically I want to do 
    // temp = wstr
    // but casting didnt work
    // temp = PWCHAR (wstr) 
    //  error C2440: 'type cast' : cannot convert from 'std::wstring' to 'PWCHAR'
    Any help?

    thanks
    See more | Go to post

  • ycinar
    started a topic Sorting a map
    in C

    Sorting a map

    i have 2 maps like below:

    Code:
    typedef std::map<std::string, ObjA> MapA;
    typedef std::map<ObjA, std::string> MapB;
    
    MapA mapa;
    MapB mapb;
    they are actually pretty same maps, just key and value are swaped.

    i want to find out whether or not a value (which is string) is in the mapB like this
    Code:
    ObjA function (const char * value){
    for (MapB::const_iterator it =
    ...
    See more | Go to post

  • ycinar
    started a topic What is the difference between free and delete?
    in C

    What is the difference between free and delete?

    Say we have a pointer like below

    Code:
    Test * abc = GetValue();
    // do something
    free (abc);
    // or 
    delete abc;
    does it matter if you chose delete or free to avoid memory leaks?

    thanks
    See more | Go to post

  • ycinar
    started a topic How to access to a different project in VS2003?
    in C

    How to access to a different project in VS2003?

    I have several projects for a single application. I want to access from project A to some class in project B. How do I do that? How do I let the code know the paths etc?
    See more | Go to post

  • ycinar
    started a topic Static member
    in C

    Static member

    I have static member in a class, say class A, in class A i have a static bool attribute xyz. Then I have another class, class B. In class B, I wanna set A::xyz=true;

    but compiler gives 2 errors:

    error LNK2001: unresolved external symbol "private: static bool...
    fatal error LNK1120: 1 unresolved externals

    Has anyone got any idea how to get around this?
    See more | Go to post

  • ycinar
    replied to Access violation reading location exception
    in C
    The address doesnt differentiate from one execution to the next. I know best way is not to return this value which seems non-trivial.

    so im still interested in learning how to check the address of pointer?
    Code:
    if (xyz ==0xfeeefeee)
    {
    //do something
    }
    ...
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to Access violation reading location exception
    in C
    Thanks RedSon,

    another quick question

    is there a way to check the address of a pointer? something like:
    Code:
    if (xyz == 0xfeeefeee)
    // do something
    is there a special meaning for the address 0xfeeefeee as it crashes the program for me there?...
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to Access violation reading location exception
    in C
    is there a way to check the address value of a pointer?

    if (xyz == 0xfeeefeee)
    // do something

    i wonder if there is such a thing, if so, what would the syntax for the if statement above?

    thanks!
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to how to open a crash dump in Visual Studio
    in C
    it is appName.exe.dmp...
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to Access violation reading location exception
    in C
    How to check an address of a pointer?

    Can anyone advise on this please?

    I have got a pointer like this

    Code:
    APerson* xyz = NULL;
    
    xyz = abc->Caller();
    abc is initialized somewhere publicly. Sometimes abc->Caller() returns 0xfeeefeee value and which will cause xyz to crush a later line.

    So what I would like to is, I want to

    Code:
    if (xyz = 0xfeeefeee)
    ...
    See more | Go to post

    Leave a comment:


  • ycinar
    started a topic how to open a crash dump in Visual Studio
    in C

    how to open a crash dump in Visual Studio

    Can anyone advise on how to open a crash dump in Visual Studio?
    See more | Go to post

  • ycinar
    replied to Access violation reading location exception
    in C
    the code is really all over the place.. but here is the most relevant part from the header file.

    Code:
    class APerson {
    public:
    APerson(Person* thePerson);
    virtual ~APerson();
    
    void SetPerson(Person* thePerson) 
                       { 
                        xyz = thePerson;
                       }
    
    private:
    	Person* xyz;
    xyz must...
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to Access violation reading location exception
    in C
    I am surprised too that it crashes at if statement.

    it is more understandable crashing at xyz->ID ...

    but it crashes at if statement for some reason. It is definitely initialized by the way....
    See more | Go to post

    Leave a comment:


  • ycinar
    started a topic Access violation reading location exception
    in C

    Access violation reading location exception

    A quick question:

    Why doesn't the following code catch the Access violation reading location exception?

    it crashes on line if ( xyz ) with an Access violation reading location exception. Is not catch supposed to catch it? Practically, it doesnt.
    [code=cpp]
    try
    {
    if ( xyz ) // crashes here
    {
    abc = xyz->ID;
    }
    }

    catch (...)
    {...
    See more | Go to post
    Last edited by sicarie; Nov 1 '07, 01:25 PM. Reason: Code tags are [code=cpp] and (your code here) [/code]. Please use them.

  • ycinar
    started a topic Stack Trace
    in C

    Stack Trace

    Is there a nice and easy way to do stack trace in Visual Studio .Net 2003? I am investigating a crash and would like to know what function is calling what function right before crash?
    See more | Go to post

  • ycinar
    replied to Memory management
    in C
    I am not using malloc. i am using new and free.

    It is an existing code i need to fix so.. Thanks for your all comments.. they all have been helpful.
    See more | Go to post

    Leave a comment:


  • ycinar
    replied to Memory management
    in C
    svlsr2000,

    When u say OS could take care of it, do you mean that i dont need to free the memory myself?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...